* {
  box-sizing: border-box;
  font-family: Arial, sans-serif;
}

body {
  margin: 0;
  background: #f4f6f8;
  color: #1f2937;
}

.container {
  max-width: 980px;
  margin: 24px auto;
  padding: 0 16px;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 12px;
}

.api-config {
  display: flex;
  align-items: center;
  gap: 8px;
}

.card {
  background: #fff;
  border-radius: 8px;
  padding: 16px;
  margin-top: 16px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

.demo-banner {
  border-left: 5px solid #0ea5e9;
  background: #f0f9ff;
}

.demo-banner p {
  margin-top: 4px;
}

.grid-form {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr)) auto;
  gap: 8px;
}

input,
button {
  padding: 8px;
  border-radius: 6px;
  border: 1px solid #d1d5db;
}

button {
  cursor: pointer;
  background: #2563eb;
  color: #fff;
  border: none;
}

button:hover {
  background: #1d4ed8;
}

.status-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
}

.pill {
  padding: 4px 8px;
  border-radius: 12px;
  background: #e5e7eb;
  font-size: 12px;
}

.patients-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 12px;
}

th,
td {
  border-bottom: 1px solid #e5e7eb;
  text-align: left;
  padding: 8px;
}

.actions {
  display: flex;
  gap: 6px;
}

.message {
  margin-top: 12px;
  min-height: 20px;
  font-weight: 600;
}
