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

/* =========================================================
   MediSync Light Theme — Clean, Clinical, Highly Readable
   ========================================================= */
:root {
  --bg-app:        #f8fafc;
  --bg-surface:    #ffffff;
  --bg-subtle:     #f1f5f9;
  --bg-hover:      #e2e8f0;

  --text-main:     #0f172a;
  --text-body:     #334155;
  --text-muted:    #64748b;
  --text-faint:    #94a3b8;

  --border-light:  #e2e8f0;
  --border-medium: #cbd5e1;
  --border-focus:  #0284c7;

  /* Medical Brand Colors */
  --primary:       #0f766e; /* Clinical Teal */
  --primary-hover: #115e59;
  --primary-light: #f0fdfa;
  --primary-border:#99f6e4;

  --brand-blue:    #0284c7;
  --brand-blue-bg: #f0f9ff;

  --success:       #16a34a;
  --success-bg:    #f0fdf4;
  --success-border:#bbf7d0;

  --warning:       #d97706;
  --warning-bg:    #fffbeb;
  --warning-border:#fde68a;

  --danger:        #dc2626;
  --danger-bg:     #fef2f2;
  --danger-border: #fecaca;

  --font-main: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;

  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.04);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.04);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  height: 100%;
  background: var(--bg-app);
  color: var(--text-body);
  font-family: var(--font-main);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5 {
  color: var(--text-main);
  font-weight: 700;
  line-height: 1.25;
}

p { line-height: 1.55; }
.hidden { display: none !important; }
.muted { color: var(--text-muted); font-weight: 400; }
button { font-family: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; font-size: 0.95rem; }

:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* ---------------------------------------------------------
   Buttons
--------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border: 1px solid var(--border-medium);
  background: var(--bg-surface);
  color: var(--text-main);
  padding: 0.6rem 1.1rem;
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  font-weight: 600;
  transition: all 150ms ease;
  box-shadow: var(--shadow-sm);
}

.btn:hover {
  background: var(--bg-subtle);
  border-color: var(--border-medium);
}

.btn-primary {
  background: var(--primary);
  border-color: var(--primary);
  color: #ffffff;
}

.btn-primary:hover {
  background: var(--primary-hover);
  border-color: var(--primary-hover);
  color: #ffffff;
}

.btn-secondary {
  background: #2563eb;
  border-color: #2563eb;
  color: #ffffff;
}

.btn-secondary:hover {
  background: #1d4ed8;
  border-color: #1d4ed8;
}

.btn-success {
  background: var(--success);
  border-color: var(--success);
  color: #ffffff;
}

.btn-success:hover {
  background: #15803d;
}

.btn-danger {
  background: var(--danger);
  border-color: var(--danger);
  color: #ffffff;
}

.btn-danger:hover {
  background: #b91c1c;
}

.btn-ghost {
  background: transparent;
  border-color: transparent;
  color: var(--text-body);
  box-shadow: none;
}

.btn-ghost:hover {
  background: var(--bg-subtle);
  color: var(--text-main);
}

.btn-small {
  padding: 0.38rem 0.75rem;
  font-size: 0.82rem;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ---------------------------------------------------------
   Top Navigation Bar
--------------------------------------------------------- */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 2rem;
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-light);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
  position: sticky;
  top: 0;
  z-index: 40;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.brand-mark {
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary), #0284c7);
  color: #ffffff;
  font-weight: 800;
  font-size: 1.25rem;
  border-radius: var(--radius-sm);
  box-shadow: 0 2px 6px rgba(15, 118, 110, 0.25);
}

.brand h1 {
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  color: var(--text-main);
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.lang-selector-wrap {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--bg-subtle);
  border: 1px solid var(--border-light);
  padding: 0.35rem 0.65rem;
  border-radius: var(--radius-sm);
}

.lang-select {
  border: none;
  background: transparent;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-main);
  outline: none;
  cursor: pointer;
}

.notif-btn {
  position: relative;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--border-light);
  background: var(--bg-surface);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-body);
  transition: all 120ms ease;
}

.notif-btn:hover {
  background: var(--bg-subtle);
  color: var(--primary);
}

.notif-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: var(--danger);
  color: #ffffff;
  font-size: 0.7rem;
  font-weight: 700;
  min-width: 18px;
  height: 18px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  box-shadow: 0 0 0 2px var(--bg-surface);
}

.user-profile-badge {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--bg-subtle);
  border: 1px solid var(--border-light);
  padding: 0.35rem 0.85rem;
  border-radius: 20px;
}

.user-role-pill {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.15rem 0.5rem;
  border-radius: 12px;
}

.role-doctor { background: #ccfbf1; color: #0f766e; }
.role-patient { background: #e0f2fe; color: #0284c7; }
.role-admin { background: #ede9fe; color: #6d28d9; }

/* ---------------------------------------------------------
   Auth Screen & Quick Demo Accounts
--------------------------------------------------------- */
.auth-screen {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2.5rem 1.5rem;
  background: radial-gradient(circle at top right, #e0f2fe 0%, #f8fafc 60%);
}

.auth-container {
  width: 100%;
  max-width: 680px;
}

.auth-card {
  background: var(--bg-surface);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-xl);
}

.auth-header {
  text-align: center;
  margin-bottom: 1.75rem;
}

.auth-header .brand {
  justify-content: center;
  margin-bottom: 0.75rem;
}

.auth-header .tagline {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Quick Demo Fill Box */
.demo-accounts-box {
  background: var(--bg-subtle);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-md);
  padding: 1.1rem;
  margin-bottom: 1.5rem;
}

.demo-title {
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.demo-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
}

.demo-card-btn {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 0.75rem 0.6rem;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  transition: all 150ms ease;
  box-shadow: var(--shadow-sm);
}

.demo-card-btn:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.demo-role {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
}

.demo-name {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.demo-email {
  font-size: 0.75rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.auth-tabs {
  display: flex;
  border-bottom: 2px solid var(--border-light);
  margin-bottom: 1.5rem;
}

.auth-tab {
  flex: 1;
  background: none;
  border: none;
  padding: 0.75rem 0;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-muted);
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: all 120ms ease;
}

.auth-tab.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.auth-form label {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-main);
}

.auth-form input,
.auth-form select,
.auth-form textarea {
  padding: 0.65rem 0.85rem;
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-sm);
  background: var(--bg-surface);
  color: var(--text-main);
  font-size: 0.95rem;
  transition: border-color 150ms ease;
}

.auth-form input:focus,
.auth-form select:focus,
.auth-form textarea:focus {
  border-color: var(--primary);
}

.languages-checkbox-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  background: var(--bg-subtle);
  padding: 0.75rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-light);
  font-size: 0.85rem;
}

.checkbox-label {
  display: flex !important;
  flex-direction: row !important;
  align-items: center;
  gap: 0.4rem;
  font-weight: 500 !important;
  color: var(--text-body) !important;
  cursor: pointer;
}

.kyc-upload-box {
  border: 2px dashed var(--border-medium);
  border-radius: var(--radius-sm);
  padding: 1rem;
  background: var(--bg-subtle);
  text-align: center;
}

.error-text {
  background: var(--danger-bg);
  border: 1px solid var(--danger-border);
  color: var(--danger);
  padding: 0.65rem 0.9rem;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  font-weight: 500;
}

/* ---------------------------------------------------------
   App Layout & Role Views
--------------------------------------------------------- */
.main-app {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.app-container {
  flex: 1;
  max-width: 1400px;
  width: 100%;
  margin: 0 auto;
  padding: 1.75rem 2rem;
}

/* Nav Subtabs */
.role-nav-tabs {
  display: flex;
  gap: 1rem;
  border-bottom: 1px solid var(--border-light);
  margin-bottom: 1.5rem;
}

.role-nav-btn {
  background: none;
  border: none;
  padding: 0.65rem 0.5rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-muted);
  border-bottom: 3px solid transparent;
  margin-bottom: -1px;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.role-nav-btn.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

/* Banner Notices */
.notice-banner {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.9rem 1.25rem;
  border-radius: var(--radius-sm);
  margin-bottom: 1.5rem;
  font-size: 0.92rem;
  font-weight: 500;
}

.notice-banner.pending {
  background: var(--warning-bg);
  border: 1px solid var(--warning-border);
  color: var(--warning);
}

.notice-banner.verified {
  background: var(--success-bg);
  border: 1px solid var(--success-border);
  color: var(--success);
}

/* ---------------------------------------------------------
   Doctor Matchmaking Grid
--------------------------------------------------------- */
.matchmaker-filter-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-sm);
}

.matchmaker-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 1.25rem;
}

.doctor-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 1.4rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  transition: all 150ms ease;
}

.doctor-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
}

.doc-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.doc-name {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-main);
}

.doc-spec {
  font-size: 0.88rem;
  color: var(--primary);
  font-weight: 600;
}

.doc-clinic {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.match-score-badge {
  background: var(--primary-light);
  border: 1px solid var(--primary-border);
  color: var(--primary);
  padding: 0.25rem 0.6rem;
  border-radius: 20px;
  font-size: 0.82rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.tag-lang {
  background: var(--bg-subtle);
  color: var(--text-body);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.2rem 0.55rem;
  border-radius: 12px;
  border: 1px solid var(--border-light);
}

.tag-lang.highlight {
  background: #ccfbf1;
  color: #0f766e;
  border-color: #99f6e4;
}

/* ---------------------------------------------------------
   Video Consultation Modal & Live Room
--------------------------------------------------------- */
.video-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  z-index: 100;
}

.video-modal-content {
  background: var(--bg-surface);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 1100px;
  max-height: 92vh;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-xl);
  overflow: hidden;
}

.video-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--border-light);
  background: var(--bg-surface);
}

.video-room-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  min-height: 480px;
  max-height: calc(92vh - 120px);
}

.video-stage {
  background: #0f172a;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.remote-video-feed {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 420px;
}

.remote-simulation-card {
  text-align: center;
  color: #ffffff;
  padding: 2rem;
}

.remote-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin: 0 auto 1rem auto;
  box-shadow: 0 0 20px rgba(15, 118, 110, 0.5);
}

.local-pip-box {
  position: absolute;
  bottom: 1.25rem;
  right: 1.25rem;
  width: 180px;
  height: 135px;
  background: #1e293b;
  border: 2px solid #ffffff;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  z-index: 10;
}

.local-pip-box video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scaleX(-1); /* Mirror view */
}

.call-timer-pill {
  position: absolute;
  top: 1.25rem;
  left: 1.25rem;
  background: rgba(15, 23, 42, 0.75);
  color: #ffffff;
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  font-size: 0.82rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  z-index: 10;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 8px #22c55e;
}

.video-controls-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 0.85rem;
  background: var(--bg-surface);
  border-top: 1px solid var(--border-light);
}

.control-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--border-medium);
  background: var(--bg-subtle);
  color: var(--text-main);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  transition: all 120ms ease;
}

.control-btn:hover {
  background: var(--bg-hover);
}

.control-btn.active-off {
  background: #fee2e2;
  color: #dc2626;
  border-color: #fca5a5;
}

.control-btn.end-call-btn {
  background: #dc2626;
  color: #ffffff;
  border-color: #dc2626;
  width: auto;
  border-radius: 22px;
  padding: 0 1.25rem;
  font-size: 0.9rem;
  font-weight: 600;
}

.control-btn.end-call-btn:hover {
  background: #b91c1c;
}

/* In-Call Clinical Notes Drawer */
.video-clinical-drawer {
  border-left: 1px solid var(--border-light);
  background: var(--bg-surface);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  padding: 1.25rem;
  gap: 1rem;
}

.drawer-header h3 {
  font-size: 1rem;
  color: var(--text-main);
  margin-bottom: 0.25rem;
}

.medication-entry-row {
  background: var(--bg-subtle);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

/* ---------------------------------------------------------
   Prescriptions & Medical Records View
--------------------------------------------------------- */
.rx-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-sm);
}

.rx-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  border-bottom: 2px solid var(--border-light);
  padding-bottom: 1rem;
  margin-bottom: 1.25rem;
}

.rx-symbol {
  font-size: 1.75rem;
  font-family: serif;
  font-weight: 700;
  color: var(--primary);
}

.rx-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
  font-size: 0.9rem;
}

.rx-table th {
  background: var(--bg-subtle);
  color: var(--text-muted);
  text-align: left;
  padding: 0.65rem 0.85rem;
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-bottom: 1px solid var(--border-medium);
}

.rx-table td {
  padding: 0.75rem 0.85rem;
  border-bottom: 1px solid var(--border-light);
  color: var(--text-main);
}

/* ---------------------------------------------------------
   Admin Console & Verification
--------------------------------------------------------- */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-bottom: 1.75rem;
}

.stat-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  box-shadow: var(--shadow-sm);
}

.stat-val {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--text-main);
  margin-top: 0.25rem;
}

.stat-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.admin-table th {
  background: var(--bg-subtle);
  color: var(--text-muted);
  text-align: left;
  padding: 0.85rem 1rem;
  font-weight: 700;
  font-size: 0.82rem;
  text-transform: uppercase;
  border-bottom: 1px solid var(--border-medium);
}

.admin-table td {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--border-light);
  font-size: 0.9rem;
}

.admin-table tr:hover td {
  background: var(--bg-subtle);
}

/* ---------------------------------------------------------
   Notification Drawer
--------------------------------------------------------- */
.notif-drawer {
  position: absolute;
  top: 60px;
  right: 2rem;
  width: 360px;
  max-height: 480px;
  background: var(--bg-surface);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xl);
  z-index: 50;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.notif-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--border-light);
}

.notif-list {
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.notif-item {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--border-light);
  transition: background 120ms ease;
  cursor: pointer;
}

.notif-item:hover {
  background: var(--bg-subtle);
}

.notif-item.unread {
  background: #f0fdfa;
  border-left: 3px solid var(--primary);
}

.notif-item-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.2rem;
}

.notif-item-msg {
  font-size: 0.82rem;
  color: var(--text-body);
  line-height: 1.4;
}

.notif-item-time {
  font-size: 0.72rem;
  color: var(--text-faint);
  margin-top: 0.3rem;
}

/* ---------------------------------------------------------
   Toast Alerts
--------------------------------------------------------- */
.toast {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: var(--text-main);
  color: #ffffff;
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 500;
  box-shadow: var(--shadow-lg);
  z-index: 200;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: opacity 200ms ease;
}

.toast.toast-error {
  background: var(--danger);
}

.toast.toast-success {
  background: var(--success);
}

/* ---------------------------------------------------------
   Responsive Tweaks
--------------------------------------------------------- */
@media (max-width: 900px) {
  .video-room-layout { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .demo-cards-grid { grid-template-columns: 1fr; }
  .form-row-2 { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .topbar { padding: 0.75rem 1rem; }
  .app-container { padding: 1rem; }
  .stats-grid { grid-template-columns: 1fr; }
  .languages-checkbox-grid { grid-template-columns: 1fr 1fr; }
}

/* ---------------------------------------------------------
   Brand Logo Image
--------------------------------------------------------- */
.brand-logo-img {
  height: 40px;
  width: auto;
  max-width: 160px;
  object-fit: contain;
  border-radius: var(--radius-sm);
  display: block;
}

/* ---------------------------------------------------------
   Doctor Availability Card
--------------------------------------------------------- */
.availability-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-left: 4px solid var(--primary);
  border-radius: var(--radius-md);
  padding: 0.9rem 1.25rem;
  margin-bottom: 1.25rem;
  box-shadow: var(--shadow-sm);
}
.availability-card-left {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

/* ---------------------------------------------------------
   AI Chatbot Widget (FAB & Window)
--------------------------------------------------------- */
.ai-chatbot-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 999;
}

.ai-fab-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, #0f766e, #0284c7);
  color: #ffffff;
  border: none;
  padding: 0.75rem 1.2rem;
  border-radius: 9999px;
  font-weight: 700;
  font-size: 0.95rem;
  box-shadow: 0 4px 14px rgba(15, 118, 110, 0.4);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ai-fab-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(15, 118, 110, 0.5);
}

.ai-fab-icon {
  font-size: 1.25rem;
}

.ai-chat-window {
  position: absolute;
  bottom: 60px;
  right: 0;
  width: 380px;
  max-width: calc(100vw - 32px);
  height: 520px;
  max-height: calc(100vh - 120px);
  background: var(--bg-surface);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-lg);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: fadeIn 0.2s ease;
}

.ai-chat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1rem;
  background: linear-gradient(135deg, #0f766e, #0284c7);
  color: #ffffff;
}

.ai-status-pulse {
  font-size: 0.72rem;
  color: #a7f3d0;
  font-weight: 600;
  display: block;
}

.ai-quick-chips {
  display: flex;
  gap: 0.4rem;
  padding: 0.5rem 0.75rem;
  background: var(--bg-subtle);
  border-bottom: 1px solid var(--border-light);
  overflow-x: auto;
  white-space: nowrap;
}

.ai-chip {
  padding: 0.25rem 0.6rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-medium);
  border-radius: 9999px;
  font-size: 0.75rem;
  color: var(--text-body);
  cursor: pointer;
  transition: background 0.15s;
}

.ai-chip:hover {
  background: var(--primary-light);
  border-color: var(--primary);
  color: var(--primary);
}

.ai-chat-messages {
  flex: 1;
  padding: 1rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  background: #f8fafc;
}

.ai-bubble {
  max-width: 85%;
  padding: 0.65rem 0.9rem;
  border-radius: var(--radius-md);
  font-size: 0.88rem;
  line-height: 1.45;
}

.ai-bubble-bot {
  background: var(--bg-surface);
  color: var(--text-main);
  border: 1px solid var(--border-light);
  border-top-left-radius: 2px;
  align-self: flex-start;
  box-shadow: var(--shadow-sm);
}

.ai-bubble-user {
  background: var(--primary);
  color: #ffffff;
  border-top-right-radius: 2px;
  align-self: flex-end;
}

.ai-match-card {
  background: #ffffff;
  border: 1.5px solid var(--primary-border);
  border-radius: var(--radius-md);
  padding: 0.85rem;
  margin-top: 0.4rem;
  box-shadow: var(--shadow-sm);
}

.ai-chat-form {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem;
  background: var(--bg-surface);
  border-top: 1px solid var(--border-light);
}

.ai-chat-form input {
  flex: 1;
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-sm);
  padding: 0.5rem 0.75rem;
  font-size: 0.88rem;
}

.doc-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-sm);
  font-size: 0.76rem;
  font-weight: 600;
}

.doc-tag.verified {
  background: var(--success-bg);
  color: var(--success);
  border: 1px solid var(--success-border);
}

.doc-tag.pending {
  background: var(--warning-bg);
  color: var(--warning);
  border: 1px solid var(--warning-border);
}

/* ---------------------------------------------------------
   Embedded AI Hero Card (Patient View Starting Guide)
--------------------------------------------------------- */
.ai-hero-card {
  background: linear-gradient(135deg, #f0fdfa 0%, #f0f9ff 100%);
  border: 1.5px solid #99f6e4;
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s ease;
}

.ai-hero-card:hover {
  box-shadow: var(--shadow-md);
}

.ai-hero-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.ai-hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: linear-gradient(135deg, #0f766e, #0284c7);
  color: #ffffff;
  padding: 0.3rem 0.8rem;
  border-radius: 9999px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.ai-hero-status {
  font-size: 0.8rem;
  color: #0f766e;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.ai-hero-search-row {
  display: flex;
  gap: 0.6rem;
  margin-bottom: 0.85rem;
}

.ai-hero-search-row input {
  flex: 1;
  padding: 0.75rem 1rem;
  border: 1.5px solid var(--border-medium);
  border-radius: var(--radius-md);
  font-size: 0.92rem;
  background: #ffffff;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.ai-hero-search-row input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.15);
}

.ai-hero-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.hero-chip {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  color: #1e293b;
  padding: 0.35rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
  box-shadow: 0 1px 2px rgba(0,0,0,0.03);
}

.hero-chip:hover {
  background: #0f766e;
  color: #ffffff;
  border-color: #0f766e;
  transform: translateY(-1px);
}

.ai-hero-match-box {
  margin-top: 1.25rem;
  background: #ffffff;
  border: 1.5px solid #0f766e;
  border-radius: var(--radius-md);
  padding: 1.25rem;
  box-shadow: var(--shadow-md);
  animation: fadeIn 0.25s ease;
}

/* ---------------------------------------------------------
   Requested Documents Cards (Patient View)
--------------------------------------------------------- */
.request-doc-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  margin-bottom: 1rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.request-doc-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.request-doc-doctor {
  font-weight: 700;
  font-size: 1rem;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.request-doc-note-box {
  background: #fffbeb;
  border-left: 4px solid #f59e0b;
  padding: 0.65rem 0.85rem;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 0.88rem;
  color: #92400e;
}

.request-doc-uploaded-list {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-top: 0.4rem;
}

.request-doc-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-subtle);
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.84rem;
}

/* ---------------------------------------------------------
   Emergency Tele-Triage Banner & Panel
--------------------------------------------------------- */
.patient-emergency-banner {
  background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
  border: 1.5px solid #f87171;
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.1);
}

.emergency-badge {
  display: inline-block;
  background: #dc2626;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
}

.emergency-hotlines {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.hotline-pill {
  background: #fff;
  border: 1px solid #fca5a5;
  color: #991b1b;
  font-size: 0.78rem;
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-sm);
}

.btn-emergency {
  background: #dc2626 !important;
  color: #ffffff !important;
  border: none !important;
  font-weight: 700 !important;
  padding: 0.75rem 1.25rem !important;
  font-size: 0.92rem !important;
  box-shadow: 0 4px 10px rgba(220, 38, 38, 0.3) !important;
  cursor: pointer;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.2s ease;
}

.btn-emergency:hover {
  background: #b91c1c !important;
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(220, 38, 38, 0.4) !important;
}

.pulse-animation {
  animation: redPulse 2s infinite;
}

@keyframes redPulse {
  0% { box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.5); }
  70% { box-shadow: 0 0 0 10px rgba(220, 38, 38, 0); }
  100% { box-shadow: 0 0 0 0 rgba(220, 38, 38, 0); }
}

.emergency-portal-box {
  background: #fff;
  border: 1.5px solid #fca5a5;
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-md);
}

.emergency-portal-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid #fee2e2;
  margin-bottom: 1.5rem;
}

.emergency-chips-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 0.6rem;
  margin-top: 0.5rem;
}

.emergency-chip {
  background: #fff5f5;
  border: 1px solid #fecaca;
  color: #991b1b;
  padding: 0.6rem 0.85rem;
  border-radius: var(--radius-sm);
  font-size: 0.84rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  transition: all 0.15s ease;
}

.emergency-chip:hover, .emergency-chip.active {
  background: #dc2626;
  color: #fff;
  border-color: #dc2626;
}

.emergency-doctor-card {
  margin-top: 1.5rem;
  background: #f8fafc;
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.emergency-guidelines-box {
  margin-top: 1.5rem;
  background: #fef2f2;
  border-left: 4px solid #dc2626;
  padding: 0.85rem 1rem;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

/* ---------------------------------------------------------
   Doctor Reviews, Ratings & Card Badges
--------------------------------------------------------- */
.doc-rating-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  background: #fef9c3;
  color: #854d0e;
  border: 1px solid #fef08a;
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
}

.doc-rating-badge:hover {
  background: #fef08a;
}

.doc-fee-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 700;
}

.doctor-rating-summary-box {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  background: var(--bg-subtle);
  padding: 1rem 1.25rem;
  border-radius: var(--radius-md);
  margin-bottom: 1.25rem;
}

.write-review-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  margin-bottom: 1.25rem;
  box-shadow: var(--shadow-sm);
}

.star-rating-select {
  display: inline-flex;
  gap: 0.25rem;
}

.star-pick {
  font-size: 1.4rem;
  color: #cbd5e1;
  cursor: pointer;
  transition: color 0.15s ease;
}

.star-pick.active, .star-pick:hover {
  color: #eab308;
}

.doctor-reviews-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.review-item-card {
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 0.85rem 1rem;
}

.review-item-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.35rem;
}

/* ---------------------------------------------------------
   Digital Pharmacy & Medicine Delivery
--------------------------------------------------------- */
.pharmacy-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 1.5rem;
  align-items: start;
}

@media (max-width: 900px) {
  .pharmacy-layout {
    grid-template-columns: 1fr;
  }
}

.pharmacy-section-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  box-shadow: var(--shadow-sm);
}

.pharmacy-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border-light);
}

.pharmacy-rx-card {
  background: #f8fafc;
  border: 1.5px solid var(--border-medium);
  border-radius: var(--radius-md);
  padding: 1rem;
  margin-bottom: 0.75rem;
  transition: border-color 0.2s ease;
}

.pharmacy-rx-card:hover {
  border-color: var(--primary);
}

.pharmacy-items-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 0.85rem;
}

.pharmacy-catalog-card {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 0.85rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-sm);
}

.pharmacy-checkout-card {
  background: #ffffff;
  border: 1.5px solid var(--border-medium);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  box-shadow: var(--shadow-md);
  position: sticky;
  top: 1rem;
}

.pharmacy-cart-list {
  max-height: 220px;
  overflow-y: auto;
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 0.75rem;
}

.cart-item-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.4rem 0;
  font-size: 0.84rem;
}

.pharmacy-price-breakdown {
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.price-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.84rem;
  color: var(--text-muted);
}

.price-row.total-row {
  border-top: 1.5px solid var(--border-medium);
  padding-top: 0.6rem;
  margin-top: 0.4rem;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-main);
}

.delivery-tracker-card {
  background: #f8fafc;
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-sm);
  padding: 1rem;
  margin-top: 0.75rem;
}

.delivery-steps {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 0.8rem;
  position: relative;
}

.step-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 600;
}

.step-node.completed {
  color: var(--primary);
}

.step-circle {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  color: #64748b;
}

.step-node.completed .step-circle {
  background: var(--primary);
  color: #fff;
}

/* ---------------------------------------------------------
   Sample Documents & Patient Medical Records Upload
--------------------------------------------------------- */
.sample-docs-banner {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: var(--radius-md);
  padding: 1.15rem 1.25rem;
}

.sample-docs-buttons-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.sample-upload-btn {
  background: #ffffff !important;
  border: 1px solid #86efac !important;
  color: #166534 !important;
  font-weight: 600 !important;
  font-size: 0.82rem !important;
}

.sample-upload-btn:hover {
  background: #dcfce7 !important;
}

.upload-dropzone-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  box-shadow: var(--shadow-sm);
}

.form-row-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}

.patient-docs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
}

.patient-doc-card {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 1rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-sm);
}

.ocr-raw-text-box {
  background: #0f172a;
  color: #e2e8f0;
  font-family: monospace;
  font-size: 0.82rem;
  padding: 1rem;
  border-radius: var(--radius-sm);
  white-space: pre-wrap;
  max-height: 350px;
  overflow-y: auto;
}

/* ---------------------------------------------------------
   Dummy Payment Gateway Modal
--------------------------------------------------------- */
.payment-modal-header {
  background: linear-gradient(135deg, #0f766e 0%, #0d9488 100%);
  color: #fff;
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.payment-modal-body {
  padding: 1.5rem;
  position: relative;
}

.payment-summary-strip {
  background: var(--bg-subtle);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 0.85rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}

.payment-method-tabs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  gap: 0.4rem;
  margin-bottom: 1.25rem;
}

.pay-tab-btn {
  background: var(--bg-subtle);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-sm);
  padding: 0.6rem 0.5rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-main);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  transition: all 0.15s ease;
}

.pay-tab-btn.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.upi-qr-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: var(--bg-subtle);
  border: 1px dashed var(--border-medium);
  border-radius: var(--radius-md);
  padding: 1rem;
}

.upi-apps-row {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.35rem;
}

.upi-app-badge {
  background: #fff;
  border: 1px solid var(--border-light);
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--text-main);
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
}

.btn-pay-now {
  font-size: 1rem !important;
  font-weight: 700 !important;
  padding: 0.85rem !important;
}

.payment-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  z-index: 10;
}

.payment-spinner-box {
  text-align: center;
  padding: 1.5rem;
}

.pay-spinner {
  width: 44px;
  height: 44px;
  border: 4px solid var(--border-light);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto;
}

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

/* ---------------------------------------------------------
   Interactive Chatbot Bubbles & Action Cards
--------------------------------------------------------- */
.chat-action-btn-row {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-top: 0.6rem;
}

.chat-quick-btn {
  background: #fff;
  border: 1px solid var(--primary);
  color: var(--primary);
  font-weight: 600;
  font-size: 0.8rem;
  padding: 0.45rem 0.75rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  text-align: left;
  transition: all 0.15s ease;
}

.chat-quick-btn:hover {
  background: var(--primary);
  color: #fff;
}

.chat-emergency-alert {
  background: #fef2f2;
  border: 1.5px solid #f87171;
  border-radius: var(--radius-sm);
  padding: 0.75rem;
  margin-top: 0.5rem;
  color: #991b1b;
  font-size: 0.84rem;
}

.ai-welcome-interactive-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 0.75rem;
  margin-top: 0.4rem;
}

.ai-interactive-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 0.75rem;
  margin-top: 0.5rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.emergency-ai-card {
  background: #fef2f2;
  border-color: #f87171;
}

.pharmacy-ai-card {
  background: #f0f9ff;
  border-color: #7dd3fc;
}

