/* CAREPULSE HEALTH - Pure Light Theme Design System (Enhanced UX & Connected Trend Telemetry) */

:root {
  /* CRISP HIGH-CONTRAST LIGHT THEME PALETTE */
  --bg-primary: #f8fafc;
  --bg-secondary: #ffffff;
  --bg-card: #ffffff;
  --bg-card-hover: #f1f5f9;
  --bg-input: #f1f5f9;
  --border-color: #e2e8f0;
  --border-highlight: rgba(79, 70, 229, 0.4);
  
  --text-primary: #0f172a;
  --text-secondary: #334155;
  --text-muted: #64748b;
  
  --accent-primary: #4f46e5;
  --accent-primary-hover: #4338ca;
  --accent-cyan: #0284c7;
  --accent-emerald: #059669;
  --accent-rose: #e11d48;
  --accent-amber: #d97706;
  
  --shadow-lg: 0 10px 30px -8px rgba(15, 23, 42, 0.08);
  --shadow-hover: 0 15px 35px -5px rgba(79, 70, 229, 0.12);
  --glass-bg: rgba(255, 255, 255, 0.95);
  --glass-border: 1px solid #e2e8f0;
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-heading: 'Outfit', sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

body {
  font-family: var(--font-family);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  line-height: 1.65;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5 {
  font-family: var(--font-heading);
  letter-spacing: -0.02em;
  line-height: 1.3;
  color: var(--text-primary);
}

/* ACCESSIBILITY & FOCUS VISIBLE STATES */
:focus-visible {
  outline: 2.5px solid var(--accent-primary) !important;
  outline-offset: 2px !important;
}

/* NAVBAR FLEXBOX CONTAINER */
.navbar {
  height: 68px;
  background-color: var(--glass-bg);
  backdrop-filter: blur(20px);
  border-bottom: var(--glass-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  position: sticky;
  top: 0;
  z-index: 100;
  gap: 16px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

.nav-left {
  flex-shrink: 0;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
}

.logo-icon {
  width: 38px;
  height: 38px;
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-cyan));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: #fff;
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.25);
}

.brand-name {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 800;
  color: #0f172a;
}

.brand-accent {
  color: var(--accent-cyan);
}

/* NAV LINKS */
.nav-links {
  display: flex;
  gap: 4px;
  flex-shrink: 0;
  align-items: center;
}

.nav-link {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  padding: 7px 13px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  white-space: nowrap;
  flex-shrink: 0;
}

.nav-link:hover {
  background-color: var(--bg-card-hover);
  color: var(--accent-primary);
  transform: translateY(-1px);
}

.nav-link.active {
  background-color: var(--accent-primary);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.25);
}

/* NAV RIGHT */
.nav-right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  margin-left: auto;
}

/* BULLETPROOF UN-SQUEEZED USER PROFILE BADGE */
.user-profile-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background-color: #ffffff;
  padding: 6px 16px;
  border-radius: 28px;
  border: 1px solid #cbd5e1;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.user-profile-badge:hover {
  border-color: var(--accent-primary);
  background-color: #f8fafc;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.user-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-cyan));
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 12px;
  flex-shrink: 0;
}

.user-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  white-space: nowrap;
  line-height: 1.2;
}

.user-name {
  display: block;
  font-weight: 700;
  font-size: 13px;
  color: #0f172a;
  white-space: nowrap;
}

.user-id {
  display: block;
  font-size: 11px;
  color: var(--text-muted);
  white-space: nowrap;
}

.profile-dropdown-arrow {
  font-size: 10px;
  color: var(--text-muted);
  margin-left: 2px;
  flex-shrink: 0;
}

/* BUTTON HOVER ANIMATIONS */
.btn {
  padding: 10px 20px;
  border-radius: 10px;
  border: none;
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  position: relative;
  overflow: hidden;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(79, 70, 229, 0.25);
}

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

.btn-primary {
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-cyan));
  color: white;
  box-shadow: 0 4px 14px rgba(79, 70, 229, 0.3);
}

.btn-secondary {
  background-color: #f1f5f9;
  color: #0f172a;
  border: 1px solid #cbd5e1;
}

.btn-secondary:hover {
  background-color: #e2e8f0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.btn-sm {
  padding: 6px 12px;
  font-size: 12px;
  border-radius: 8px;
}

.btn-block {
  width: 100%;
  justify-content: center;
}

.badge {
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 700;
}

.badge-primary { background-color: var(--accent-primary); color: white; }
.badge-accent { background-color: rgba(2, 132, 199, 0.12); color: var(--accent-cyan); border: 1px solid var(--accent-cyan); }

/* CARDS HOVER ANIMATIONS */
.vital-card, .dept-card, .doctor-card, .trial-card, .card-box {
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.25s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.25s ease;
}

.vital-card:hover, .dept-card:hover, .doctor-card:hover, .trial-card:hover, .card-box:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: var(--border-highlight);
}

/* NEURO20 EMR MODAL WITH EXPLICIT SCROLLBAR & VIEWPORT CONSTRAINTS */
.emr-modal-card {
  max-width: 920px !important;
  max-height: 88vh !important;
  overflow-y: auto !important;
  text-align: left !important;
  padding: 32px 36px !important;
  border-radius: 24px !important;
  scrollbar-width: thin;
  scrollbar-color: var(--accent-primary) #f1f5f9;
}

.emr-modal-card::-webkit-scrollbar {
  width: 8px;
}

.emr-modal-card::-webkit-scrollbar-track {
  background: #f1f5f9;
  border-radius: 8px;
}

.emr-modal-card::-webkit-scrollbar-thumb {
  background: var(--accent-primary);
  border-radius: 8px;
}

/* CONNECTED LINE TREND GRAPH CONTAINER */
.trend-graph-container {
  background: #ffffff;
  border-radius: 16px;
  border: 1px solid #e2e8f0;
  padding: 20px 24px;
  margin-top: 14px;
  box-shadow: inset 0 2px 6px rgba(0,0,0,0.02);
}

.trend-svg {
  width: 100%;
  height: 180px;
}

.trend-line {
  fill: none;
  stroke: url(#trend-gradient);
  stroke-width: 4;
  stroke-linecap: round;
}

.trend-point {
  fill: var(--accent-primary);
  stroke: #ffffff;
  stroke-width: 3;
  transition: r 0.2s ease, fill 0.2s ease;
  cursor: pointer;
}

.trend-point:hover {
  r: 8;
  fill: var(--accent-cyan);
}

.trend-labels-row {
  display: flex;
  justify-content: space-between;
  margin-top: 10px;
  padding: 0 10px;
}

.trend-label-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 11px;
}

.trend-week { font-weight: 700; color: #0f172a; }
.trend-val { color: var(--accent-cyan); font-weight: 600; font-size: 10px; }

/* SKELETON SHIMMER PLACEHOLDERS */
.skeleton-box {
  background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 50%, #f1f5f9 75%);
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.5s infinite ease-in-out;
  border-radius: 12px;
  height: 140px;
}

@keyframes skeleton-shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* TOAST NOTIFICATION BANNERS */
.toast-container {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: 12px;
  pointer-events: none;
}

.toast-banner {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 22px;
  border-radius: 14px;
  font-size: 13.5px;
  font-weight: 600;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
  animation: slideInRight 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  min-width: 300px;
}

@keyframes slideInRight {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

.toast-success { background-color: #ecfdf5; color: #065f46; border: 1px solid #a7f3d0; }
.toast-error { background-color: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }
.toast-info { background-color: #f0f9ff; color: #075985; border: 1px solid #bae6fd; }

/* IMPROVED EMPTY STATES */
.empty-state-box {
  text-align: center;
  padding: 56px 32px;
  background-color: #ffffff;
  border: 2px dashed #cbd5e1;
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 20px 0;
}

.empty-state-icon {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: rgba(79, 70, 229, 0.1);
  color: var(--accent-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  margin-bottom: 18px;
}

.empty-state-box h3 {
  font-size: 20px;
  margin-bottom: 8px;
}

.empty-state-box p {
  color: var(--text-muted);
  font-size: 14px;
  max-width: 440px;
  margin-bottom: 20px;
}

/* ROLE SELECTION ONBOARDING MODAL */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(15, 23, 42, 0.5);
  backdrop-filter: blur(8px);
  z-index: 1000;
  align-items: center;
  justify-content: center;
}

.modal-overlay.active {
  display: flex;
}

.role-modal-card {
  background-color: #ffffff;
  border: var(--glass-border);
  border-radius: 24px;
  padding: 40px;
  max-width: 820px;
  width: 90%;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.15);
  text-align: center;
}

.role-modal-header h2 {
  font-size: 28px;
  margin: 16px 0 8px 0;
}

.role-modal-header p {
  color: var(--text-secondary);
  font-size: 15px;
}

.role-options-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin: 32px 0;
}

.role-card {
  background-color: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: 20px;
  padding: 32px 24px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  text-align: center;
}

.role-card:hover {
  border-color: var(--accent-primary);
  transform: translateY(-4px);
  background-color: #ffffff;
  box-shadow: 0 10px 25px rgba(79, 70, 229, 0.1);
}

.role-card-icon {
  width: 64px;
  height: 64px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  margin-bottom: 16px;
}

.patient-icon { background: rgba(2, 132, 199, 0.12); color: var(--accent-cyan); }
.doctor-icon { background: rgba(79, 70, 229, 0.12); color: var(--accent-primary); }

.role-card h3 {
  font-size: 20px;
  margin-bottom: 8px;
}

.role-card p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
}

.role-modal-footer {
  font-size: 12px;
  color: var(--text-muted);
  border-top: var(--glass-border);
  padding-top: 16px;
}

.justify-center {
  justify-content: center;
}

/* MAIN CONTENT CONTAINER */
.main-content {
  flex: 1;
  padding: 32px 36px;
  max-width: 1320px;
  width: 100%;
  margin: 0 auto;
}

.content-view {
  display: none;
}

.content-view.active {
  display: block;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* HERO BANNER */
.dashboard-hero {
  background: linear-gradient(135deg, rgba(79, 70, 229, 0.08), rgba(2, 132, 199, 0.08));
  border-radius: 20px;
  border: 1px solid #cbd5e1;
  padding: 32px 36px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 28px;
  box-shadow: var(--shadow-lg);
}

.hero-text h2 {
  font-size: 26px;
  margin: 8px 0;
  color: #0f172a;
}

.hero-text p {
  color: var(--text-secondary);
  max-width: 600px;
  font-size: 14px;
}

.hero-actions {
  display: flex;
  gap: 12px;
}

/* DOCTOR ANALYTICS CHARTS */
.chart-container {
  height: 200px;
  display: flex;
  align-items: flex-end;
  padding-top: 20px;
}

.bar-chart {
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 14px;
  border-bottom: 2px solid #cbd5e1;
  padding-bottom: 8px;
}

.chart-bar-group {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
  justify-content: flex-end;
}

.chart-bar {
  width: 100%;
  max-width: 40px;
  background: linear-gradient(180deg, var(--accent-cyan), var(--accent-primary));
  border-radius: 8px 8px 0 0;
  position: relative;
  display: flex;
  justify-content: center;
}

.bar-val {
  position: absolute;
  top: -22px;
  font-size: 11px;
  font-weight: 700;
  color: #0f172a;
}

.bar-label {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 6px;
}

.symptom-distribution-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.symptom-info {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  font-weight: 600;
}

.symptom-pct {
  color: var(--accent-cyan);
}

/* DOCTOR QUEUE TABLE */
.queue-table-container {
  overflow-x: auto;
}

.queue-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.queue-table th {
  padding: 12px 16px;
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  border-bottom: 2px solid #cbd5e1;
}

.queue-table td {
  padding: 14px 16px;
  border-bottom: 1px solid #e2e8f0;
  font-size: 13px;
}

/* CLINICAL TRIALS GRID */
.trials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}

.trial-card {
  background-color: #ffffff;
  border-radius: 20px;
  border: 1px solid #cbd5e1;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-lg);
}

.trial-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 10px;
}

.trial-title {
  font-size: 17px;
  font-weight: 700;
}

.trial-stipend {
  font-weight: 700;
  color: var(--accent-emerald);
  font-size: 14px;
}

.trial-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 10px;
  background-color: #f8fafc;
  padding: 10px 14px;
  border-radius: 10px;
}

/* VITALS GRID */
.section-title-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

.vitals-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.vital-card {
  background-color: #ffffff;
  border-radius: 20px;
  border: 1px solid #cbd5e1;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-lg);
}

.vital-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.vital-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.vital-icon.heart { background: rgba(225, 29, 72, 0.1); color: var(--accent-rose); }
.vital-icon.bp { background: rgba(79, 70, 229, 0.1); color: var(--accent-primary); }
.vital-icon.oxygen { background: rgba(2, 132, 199, 0.1); color: var(--accent-cyan); }
.vital-icon.glucose { background: rgba(5, 150, 105, 0.1); color: var(--accent-emerald); }

.vital-status {
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 10px;
}

.vital-status.normal { background: rgba(5, 150, 105, 0.15); color: var(--accent-emerald); }
.vital-status.optimal { background: rgba(79, 70, 229, 0.15); color: var(--accent-primary); }

.vital-value {
  font-family: var(--font-heading);
  font-size: 26px;
  font-weight: 700;
  color: #0f172a;
}

.vital-unit {
  font-size: 13px;
  color: var(--text-muted);
}

.vital-label {
  display: block;
  color: var(--text-secondary);
  font-size: 12px;
  margin-top: 4px;
}

.ecg-svg {
  width: 100%;
  height: 24px;
  margin-top: 10px;
}

.vital-progress-bar {
  height: 5px;
  background-color: #e2e8f0;
  border-radius: 3px;
  margin-top: 14px;
  overflow: hidden;
}

.progress-fill { height: 100%; border-radius: 3px; }
.bp-fill { background: var(--accent-primary); }
.oxygen-fill { background: var(--accent-cyan); }
.glucose-fill { background: var(--accent-emerald); }

/* DASHBOARD COLUMNS */
.dashboard-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.card-box {
  background-color: #ffffff;
  border-radius: 20px;
  border: 1px solid #cbd5e1;
  padding: 24px;
  box-shadow: var(--shadow-lg);
}

.box-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.link-btn {
  background: transparent;
  border: none;
  color: var(--accent-cyan);
  font-weight: 600;
  cursor: pointer;
}

/* WIZARD STEPS */
.wizard-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin: 24px 0 32px 0;
}

.wizard-step {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-muted);
}

.wizard-step.active {
  color: var(--accent-cyan);
  font-weight: 700;
}

.step-num {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
}

.wizard-step.active .step-num {
  background: var(--accent-cyan);
  color: white;
}

.wizard-line {
  height: 2px;
  width: 60px;
  background-color: #cbd5e1;
}

/* DEPARTMENT GRID */
.department-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
}

.dept-card {
  background-color: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 20px;
  padding: 20px;
  cursor: pointer;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: var(--shadow-lg);
}

.dept-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: rgba(79, 70, 229, 0.1);
  color: var(--accent-primary);
  font-size: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}

/* DOCTORS GRID */
.doctors-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

.doctor-card {
  background-color: #ffffff;
  border-radius: 20px;
  border: 1px solid #cbd5e1;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-lg);
}

.doc-top {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.doc-name {
  font-size: 17px;
  font-weight: 700;
  color: #0f172a;
}

.doc-specialty {
  color: var(--accent-cyan);
  font-size: 13px;
  font-weight: 600;
}

.doc-meta {
  display: flex;
  gap: 10px;
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 6px;
}

/* CALENDAR DAYS GRID */
.custom-calendar-box {
  background-color: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 20px;
  padding: 20px;
}

.calendar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

.calendar-days-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px;
}

.day-card {
  background-color: #f1f5f9;
  border: 1px solid transparent;
  border-radius: 10px;
  padding: 10px 4px;
  text-align: center;
  cursor: pointer;
}

.day-card.selected {
  background-color: var(--accent-cyan);
  color: white;
}

.day-name {
  font-size: 10px;
  color: var(--text-muted);
  text-transform: uppercase;
}

.day-num {
  font-size: 15px;
  font-weight: 700;
}

/* SLOT PICKER */
.slot-picker-container {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 24px;
}

.slots-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 10px;
}

.time-slot {
  background-color: #f1f5f9;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  padding: 10px;
  text-align: center;
  font-size: 13px;
  cursor: pointer;
  font-weight: 600;
}

.time-slot.selected {
  background-color: var(--accent-cyan);
  color: white;
  border-color: var(--accent-cyan);
}

/* TICKET SLIP */
.ticket-slip {
  background: white;
  color: #0f172a;
  border-radius: 20px;
  padding: 28px;
  max-width: 460px;
  margin: 24px auto;
  box-shadow: 0 15px 35px rgba(15, 23, 42, 0.12);
  border: 1px solid #e2e8f0;
  text-align: left;
}

.ticket-header {
  display: flex;
  justify-content: space-between;
  border-bottom: 2px solid #e2e8f0;
  padding-bottom: 14px;
  margin-bottom: 16px;
}

.ticket-brand {
  font-weight: 800;
  font-size: 18px;
  color: #4f46e5;
}

.ticket-id {
  font-family: monospace;
  font-weight: 700;
  background-color: #f1f5f9;
  padding: 4px 8px;
  border-radius: 6px;
}

.ticket-row {
  display: flex;
  justify-content: space-between;
}

.ticket-label {
  display: block;
  font-size: 11px;
  color: #64748b;
  text-transform: uppercase;
}

.ticket-val {
  font-weight: 700;
  font-size: 14px;
}

.ticket-footer {
  margin-top: 20px;
  border-top: 2px dashed #cbd5e1;
  padding-top: 16px;
  text-align: center;
  font-size: 12px;
  color: #64748b;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.qr-code-icon {
  font-size: 48px;
  color: #0f172a;
}

/* CHATBOT UI */
.rag-chat-container {
  background-color: #ffffff;
  border-radius: 24px;
  border: 1px solid #cbd5e1;
  height: 75vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.chat-header {
  padding: 16px 28px;
  border-bottom: 1px solid #e2e8f0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #f8fafc;
}

.chat-bot-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.bot-avatar {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-cyan));
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.bot-status {
  font-size: 12px;
  color: var(--text-muted);
}

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  background-color: #ffffff;
}

.chat-bubble {
  max-width: 80%;
  border-radius: 18px;
  padding: 16px 20px;
  font-size: 14px;
  line-height: 1.6;
}

.bot-bubble {
  background-color: #f1f5f9;
  border: 1px solid #e2e8f0;
  color: #0f172a;
  align-self: flex-start;
}

.user-bubble {
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-cyan));
  color: white;
  align-self: flex-end;
}

.citation-box {
  margin-top: 12px;
  background-color: #f8fafc;
  border-radius: 10px;
  padding: 8px 14px;
  font-size: 12px;
  color: var(--accent-cyan);
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid #e2e8f0;
}

.suggested-prompts {
  padding: 12px 28px;
  border-top: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  gap: 10px;
  overflow-x: auto;
  background-color: #f8fafc;
}

.prompts-label {
  font-size: 12px;
  color: var(--text-muted);
  white-space: nowrap;
}

.chip-btn {
  background-color: #ffffff;
  border: 1px solid #cbd5e1;
  color: #0f172a;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 12px;
  white-space: nowrap;
  cursor: pointer;
}

.chip-btn:hover {
  background-color: var(--accent-primary);
  color: white;
  border-color: var(--accent-primary);
  transform: translateY(-1px);
}

.chat-input-container {
  padding: 16px 28px;
  border-top: 1px solid #e2e8f0;
  display: flex;
  gap: 12px;
  background-color: #ffffff;
}

.chat-input-container input {
  flex: 1;
  background-color: #f1f5f9;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  padding: 0 16px;
  color: #0f172a;
  outline: none;
  font-size: 14px;
}

/* SEARCH & FILTER BAR */
.filter-bar {
  display: flex;
  gap: 14px;
  background-color: #ffffff;
  padding: 14px;
  border-radius: 16px;
  border: 1px solid #cbd5e1;
  box-shadow: var(--shadow-lg);
}

.search-input-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  background-color: #f1f5f9;
  border-radius: 10px;
  padding: 0 14px;
  color: var(--text-muted);
}

.search-input-wrap input {
  background: transparent;
  border: none;
  color: #0f172a;
  width: 100%;
  height: 38px;
  outline: none;
}

.filter-select {
  background-color: #f1f5f9;
  border: 1px solid #cbd5e1;
  color: #0f172a;
  border-radius: 10px;
  padding: 0 14px;
  height: 38px;
  outline: none;
}

/* FORM CONTROLS */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 14px;
}

.form-group label {
  display: block;
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.form-group input, .form-group select {
  width: 100%;
  height: 38px;
  background-color: #f1f5f9;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 0 14px;
  color: #0f172a;
  outline: none;
}

/* UTILITY CLASSES */
.hidden { display: none !important; }
.margin-top-sm { margin-top: 6px; }
.margin-top-md { margin-top: 14px; }
.margin-top-lg { margin-top: 24px; }
.margin-bottom-md { margin-bottom: 16px; }
.text-muted { color: var(--text-muted); }
.text-sm { font-size: 12px; }
.text-accent { color: var(--accent-cyan); }
.text-left { text-align: left !important; }
.emergency-box { background: rgba(225, 29, 72, 0.06); border-color: rgba(225, 29, 72, 0.2); }
.emergency-content { display: flex; align-items: center; gap: 16px; }
.emergency-icon { width: 44px; height: 44px; border-radius: 50%; background: var(--accent-rose); color: white; display: flex; align-items: center; justify-content: center; font-size: 20px; }
