/* ============================================================
   ERB Health Screening – style.css
   Dark mode glassmorphism medical UI
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

/* ── CSS Variables ─────────────────────────────────────────── */
:root {
  --bg-primary: #040d1a;
  --bg-secondary: #071428;
  --bg-card: rgba(10, 25, 50, 0.75);
  --bg-card-hover: rgba(14, 35, 70, 0.85);
  --bg-input: rgba(255, 255, 255, 0.06);
  --bg-bubble-bot: rgba(14, 165, 233, 0.15);
  --bg-bubble-user: rgba(6, 182, 212, 0.22);

  --accent-primary: #0ea5e9;
  --accent-secondary: #06b6d4;
  --accent-glow: rgba(14, 165, 233, 0.35);
  --accent-emergency: #ef4444;
  --accent-emergency-glow: rgba(239, 68, 68, 0.4);
  --accent-success: #10b981;
  --accent-warning: #f59e0b;
  --accent-warning-glow: rgba(245, 158, 11, 0.35);

  --text-primary: #e2e8f0;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --text-on-accent: #ffffff;

  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-accent: rgba(14, 165, 233, 0.3);
  --border-emergency: rgba(239, 68, 68, 0.5);

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 9999px;

  --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.4);
  --shadow-glow: 0 0 24px var(--accent-glow);
  --shadow-emergency: 0 0 32px var(--accent-emergency-glow);
  --shadow-button: 0 4px 15px rgba(14, 165, 233, 0.4);

  --transition-fast: 0.15s ease;
  --transition-normal: 0.25s ease;
  --transition-slow: 0.4s ease;

  --header-height: 70px;
  --input-area-height: 90px;
  --progress-height: 6px;
}

/* ── Reset & Base ───────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  height: 100dvh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
}

/* ── Animated Background ────────────────────────────────────── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 20% 10%, rgba(14, 165, 233, 0.12) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 80% 90%, rgba(6, 182, 212, 0.08) 0%, transparent 55%),
    radial-gradient(ellipse 40% 40% at 50% 50%, rgba(4, 13, 26, 0.6) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

/* Floating orbs */
body::after {
  content: '';
  position: fixed;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(14, 165, 233, 0.08) 0%, transparent 70%);
  top: -100px;
  right: -100px;
  animation: floatOrb 8s ease-in-out infinite;
  pointer-events: none;
  z-index: 0;
}

@keyframes floatOrb {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%       { transform: translate(-20px, 30px) scale(1.1); }
  66%       { transform: translate(10px, -20px) scale(0.95); }
}

/* ── App Layout ─────────────────────────────────────────────── */
#app {
  display: flex;
  flex-direction: column;
  height: 100dvh;
  max-width: 820px;
  margin: 0 auto;
  width: 100%;
  position: relative;
  z-index: 1;
}

/* ── Header ─────────────────────────────────────────────────── */
#header {
  height: var(--header-height);
  background: rgba(7, 20, 40, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  padding: 0 20px;
  gap: 14px;
  flex-shrink: 0;
  position: relative;
}

.header-avatar {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 0 16px var(--accent-glow);
  position: relative;
}

.header-avatar svg {
  width: 22px;
  height: 22px;
  fill: white;
}

.avatar-pulse {
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  border: 2px solid var(--accent-primary);
  animation: avatarPulse 2s ease-in-out infinite;
  opacity: 0;
}

@keyframes avatarPulse {
  0%   { opacity: 0.8; transform: scale(1); }
  100% { opacity: 0; transform: scale(1.4); }
}

.header-info {
  flex: 1;
}

.header-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: 0.2px;
}

.header-status {
  font-size: 12px;
  color: var(--accent-success);
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 2px;
}

.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-success);
  animation: statusBlink 2s ease-in-out infinite;
  flex-shrink: 0;
}

@keyframes statusBlink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.4; }
}

.header-badge {
  font-size: 10px;
  font-weight: 700;
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
  color: white;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

/* ── Progress Bar ───────────────────────────────────────────── */
#progress-container {
  padding: 12px 20px 0;
  flex-shrink: 0;
  background: rgba(7, 20, 40, 0.7);
  backdrop-filter: blur(10px);
}

.progress-labels {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
}

.progress-label {
  font-size: 10px;
  font-weight: 500;
  color: var(--text-muted);
  text-align: center;
  flex: 1;
  transition: color var(--transition-normal);
  cursor: default;
  letter-spacing: 0.3px;
}

.progress-label.active {
  color: var(--accent-primary);
  font-weight: 600;
}

.progress-label.done {
  color: var(--accent-success);
}

.progress-track {
  height: var(--progress-height);
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-full);
  overflow: hidden;
  margin-bottom: 12px;
}

.progress-fill {
  height: 100%;
  border-radius: var(--radius-full);
  background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
  transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 0 12px var(--accent-glow);
  position: relative;
}

.progress-fill::after {
  content: '';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: white;
  box-shadow: 0 0 8px var(--accent-primary);
}

/* ── Chat Window ────────────────────────────────────────────── */
#chat-window {
  flex: 1;
  overflow-y: auto;
  padding: 20px 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  scroll-behavior: smooth;
}

#chat-window::-webkit-scrollbar {
  width: 4px;
}

#chat-window::-webkit-scrollbar-track {
  background: transparent;
}

#chat-window::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-full);
}

/* ── Chat Bubbles ───────────────────────────────────────────── */
.message-row {
  display: flex;
  gap: 10px;
  animation: messageIn 0.35s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

.message-row.bot-row {
  align-items: flex-end;
}

.message-row.user-row {
  flex-direction: row-reverse;
}

@keyframes messageIn {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.bot-avatar-small {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.bot-avatar-small svg {
  width: 16px;
  height: 16px;
  fill: white;
}

.bubble {
  max-width: 72%;
  padding: 11px 16px;
  border-radius: var(--radius-lg);
  font-size: 14px;
  line-height: 1.65;
  position: relative;
  word-break: break-word;
}

.bubble.bot {
  background: var(--bg-bubble-bot);
  border: 1px solid rgba(14, 165, 233, 0.2);
  border-bottom-left-radius: var(--radius-sm);
  color: var(--text-primary);
}

.bubble.user {
  background: var(--bg-bubble-user);
  border: 1px solid rgba(6, 182, 212, 0.25);
  border-bottom-right-radius: var(--radius-sm);
  color: var(--text-primary);
  text-align: right;
}

.bubble.system {
  max-width: 85%;
  text-align: center;
  margin: 0 auto;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.25);
  border-radius: var(--radius-md);
  color: var(--accent-success);
  font-size: 13px;
  font-weight: 500;
}

.bubble.warning-bubble {
  max-width: 85%;
  margin: 0 auto;
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-radius: var(--radius-md);
  color: var(--accent-warning);
  font-size: 12.5px;
  font-style: italic;
}

.message-time {
  font-size: 10px;
  color: var(--text-muted);
  margin-top: 4px;
  padding: 0 4px;
}

.bot-row .message-time { text-align: left; }
.user-row .message-time { text-align: right; }

/* ── Typing Indicator ───────────────────────────────────────── */
.typing-indicator {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 12px 16px;
}

.typing-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-primary);
  animation: typingBounce 1.2s ease-in-out infinite;
}

.typing-dot:nth-child(2) { animation-delay: 0.2s; }
.typing-dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes typingBounce {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.5; }
  30%            { transform: translateY(-8px); opacity: 1; }
}

/* ── Quick Reply Buttons ────────────────────────────────────── */
#quick-replies {
  padding: 8px 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  flex-shrink: 0;
  min-height: 0;
  transition: all var(--transition-normal);
}

#quick-replies:empty {
  padding: 0;
}

.quick-btn {
  padding: 8px 16px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-accent);
  background: var(--bg-input);
  color: var(--accent-primary);
  font-size: 13px;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: nowrap;
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  gap: 6px;
}

.quick-btn:hover {
  background: rgba(14, 165, 233, 0.2);
  border-color: var(--accent-primary);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px var(--accent-glow);
}

.quick-btn:active {
  transform: translateY(0);
}

.quick-btn.selected {
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
  color: white;
  border-color: transparent;
  box-shadow: var(--shadow-button);
}

.quick-btn.stress-btn {
  width: 48px;
  height: 48px;
  padding: 0;
  justify-content: center;
  border-radius: var(--radius-md);
  flex-direction: column;
  gap: 2px;
  font-size: 18px;
}

.stress-label {
  font-size: 10px;
  font-weight: 600;
}

/* ── Input Area ─────────────────────────────────────────────── */
#input-area {
  min-height: var(--input-area-height);
  background: rgba(7, 20, 40, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid var(--border-subtle);
  padding: 14px 16px;
  display: flex;
  align-items: flex-end;
  gap: 10px;
  flex-shrink: 0;
}

#message-input {
  flex: 1;
  min-height: 44px;
  max-height: 120px;
  padding: 11px 16px;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-subtle);
  background: var(--bg-input);
  color: var(--text-primary);
  font-size: 14px;
  font-family: inherit;
  resize: none;
  outline: none;
  transition: border-color var(--transition-normal), box-shadow var(--transition-normal);
  line-height: 1.5;
  backdrop-filter: blur(8px);
}

#message-input::placeholder {
  color: var(--text-muted);
}

#message-input:focus {
  border-color: var(--border-accent);
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.12);
}

#send-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: all var(--transition-fast);
  box-shadow: var(--shadow-button);
}

#send-btn:hover:not(:disabled) {
  transform: scale(1.1);
  box-shadow: 0 6px 20px var(--accent-glow);
}

#send-btn:active:not(:disabled) {
  transform: scale(0.95);
}

#send-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  box-shadow: none;
}

#send-btn svg {
  width: 18px;
  height: 18px;
  fill: white;
}

/* ── Summary Card ───────────────────────────────────────────── */
.summary-card {
  background: var(--bg-card);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-lg);
  padding: 20px;
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow-card), 0 0 30px rgba(14, 165, 233, 0.1);
  max-width: 85%;
  width: 100%;
}

.summary-card h3 {
  font-size: 15px;
  font-weight: 700;
  color: var(--accent-primary);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.summary-row {
  display: flex;
  gap: 10px;
  margin-bottom: 10px;
  align-items: flex-start;
}

.summary-key {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  min-width: 110px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding-top: 1px;
}

.summary-val {
  font-size: 13.5px;
  color: var(--text-primary);
  font-weight: 500;
  flex: 1;
}

.summary-divider {
  height: 1px;
  background: var(--border-subtle);
  margin: 12px 0;
}

.summary-actions {
  display: flex;
  gap: 10px;
  margin-top: 16px;
  flex-wrap: wrap;
}

.btn-confirm {
  flex: 1;
  padding: 11px 20px;
  border-radius: var(--radius-full);
  border: none;
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
  color: white;
  font-weight: 700;
  font-size: 13.5px;
  font-family: inherit;
  cursor: pointer;
  transition: all var(--transition-fast);
  box-shadow: var(--shadow-button);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.btn-confirm:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px var(--accent-glow);
}

.btn-edit {
  padding: 11px 20px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-accent);
  background: transparent;
  color: var(--accent-primary);
  font-weight: 600;
  font-size: 13.5px;
  font-family: inherit;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-edit:hover {
  background: rgba(14, 165, 233, 0.1);
}

/* ── Health Status Card ────────────────────────────────────────── */
.patient-card {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.15), rgba(6, 182, 212, 0.1));
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: var(--radius-lg);
  padding: 18px 20px;
  max-width: 85%;
}

.patient-id-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--accent-success);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 6px;
}

.patient-id-value {
  font-size: 22px;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: 1.5px;
  font-variant-numeric: tabular-nums;
}

.risk-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 700;
  margin-top: 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.risk-badge.low  { background: rgba(16, 185, 129, 0.2);  color: #34d399; border: 1px solid rgba(16, 185, 129, 0.3); }
.risk-badge.medium { background: rgba(245, 158, 11, 0.2); color: #fbbf24; border: 1px solid rgba(245, 158, 11, 0.3); }
.risk-badge.high { background: rgba(239, 68, 68, 0.2);   color: #f87171; border: 1px solid rgba(239, 68, 68, 0.3); }

/* ── Emergency Modal ────────────────────────────────────────── */
#emergency-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
  animation: modalIn 0.25s ease both;
}

#emergency-modal.hidden {
  display: none;
}

@keyframes modalIn {
  from { opacity: 0; transform: scale(0.9); }
  to   { opacity: 1; transform: scale(1); }
}

.emergency-box {
  background: linear-gradient(135deg, rgba(30, 10, 10, 0.98), rgba(20, 5, 5, 0.98));
  border: 2px solid var(--border-emergency);
  border-radius: var(--radius-xl);
  padding: 36px 28px;
  max-width: 380px;
  width: 100%;
  text-align: center;
  box-shadow: var(--shadow-emergency), 0 25px 50px rgba(0,0,0,0.6);
  position: relative;
  overflow: hidden;
}

.emergency-box::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(239, 68, 68, 0.15) 0%, transparent 60%);
  pointer-events: none;
}

.emergency-icon {
  font-size: 60px;
  margin-bottom: 16px;
  animation: emergencyPulse 0.8s ease-in-out infinite alternate;
  display: block;
}

@keyframes emergencyPulse {
  from { transform: scale(1); }
  to   { transform: scale(1.1); }
}

.emergency-title {
  font-size: 22px;
  font-weight: 800;
  color: var(--accent-emergency);
  margin-bottom: 10px;
  letter-spacing: 0.5px;
}

.emergency-msg {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 28px;
  line-height: 1.7;
}

.btn-emergency-call {
  width: 100%;
  padding: 16px;
  border-radius: var(--radius-xl);
  border: none;
  background: linear-gradient(135deg, #ef4444, #dc2626);
  color: white;
  font-weight: 800;
  font-size: 16px;
  font-family: inherit;
  cursor: pointer;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 6px 24px rgba(239, 68, 68, 0.5);
  transition: all var(--transition-fast);
  letter-spacing: 0.5px;
}

.btn-emergency-call:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(239, 68, 68, 0.6);
}

.btn-emergency-dismiss {
  width: 100%;
  padding: 12px;
  border-radius: var(--radius-xl);
  border: 1px solid rgba(239, 68, 68, 0.3);
  background: transparent;
  color: var(--text-muted);
  font-size: 13px;
  font-family: inherit;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-emergency-dismiss:hover {
  color: var(--text-secondary);
  background: rgba(239, 68, 68, 0.08);
}

/* ── Loading Spinner (saat save) ────────────────────────────── */
.save-spinner {
  display: inline-block;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  vertical-align: middle;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ── Chatbot mode indicator ─────────────────────────────────── */
.chatbot-header {
  text-align: center;
  padding: 10px 20px;
  font-size: 12px;
  font-weight: 600;
  color: var(--accent-secondary);
  background: rgba(6, 182, 212, 0.06);
  border-top: 1px solid rgba(6, 182, 212, 0.15);
  border-bottom: 1px solid rgba(6, 182, 212, 0.15);
  letter-spacing: 0.8px;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

/* ── Date divider ───────────────────────────────────────────── */
.date-divider {
  text-align: center;
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 500;
  position: relative;
  padding: 0 20px;
  letter-spacing: 0.5px;
}

.date-divider::before,
.date-divider::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 30%;
  height: 1px;
  background: var(--border-subtle);
}

.date-divider::before { left: 0; }
.date-divider::after  { right: 0; }

/* ── Multiselect chips (riwayat penyakit) ────────────────────── */
.multiselect-container {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 4px 0;
}

.chip-btn {
  padding: 7px 14px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-subtle);
  background: var(--bg-input);
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  transition: all var(--transition-fast);
  display: flex;
  align-items: center;
  gap: 6px;
}

.chip-btn:hover {
  border-color: var(--border-accent);
  color: var(--accent-primary);
}

.chip-btn.selected {
  background: rgba(14, 165, 233, 0.18);
  border-color: var(--accent-primary);
  color: var(--accent-primary);
}

.chip-btn.selected::before {
  content: '✓ ';
}

.chip-confirm-btn {
  margin-top: 4px;
  width: 100%;
  padding: 10px;
  border-radius: var(--radius-md);
  border: none;
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
  color: white;
  font-weight: 700;
  font-size: 13px;
  font-family: inherit;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.chip-confirm-btn:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-button);
}

/* ── Disclaimer box ─────────────────────────────────────────── */
.disclaimer-box {
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.25);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  font-size: 12px;
  color: var(--accent-warning);
  line-height: 1.6;
  max-width: 85%;
}

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 600px) {
  :root {
    --header-height: 62px;
    --input-area-height: 80px;
  }

  #app {
    max-width: 100%;
  }

  .bubble {
    max-width: 85%;
    font-size: 13.5px;
  }

  .summary-card,
  .patient-card {
    max-width: 95%;
  }

  .header-badge {
    display: none;
  }

  .quick-btn {
    font-size: 12px;
    padding: 7px 12px;
  }

  .progress-label {
    font-size: 9px;
  }
}

@media (min-width: 821px) {
  #app {
    border-left: 1px solid var(--border-subtle);
    border-right: 1px solid var(--border-subtle);
  }
}

/* ── Utility ─────────────────────────────────────────────────── */
.hidden { display: none !important; }

.text-center { text-align: center; }

strong {
  font-weight: 700;
  color: var(--accent-primary);
}

em {
  font-style: italic;
  color: var(--text-secondary);
}
