/* ==========================================================================
   Legal First Responder — Design System
   Loaded after Tailwind CDN; app.css wins specificity on all components.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. CSS Custom Properties
   -------------------------------------------------------------------------- */
:root {
  /* Brand palette */
  --navy:       #0F1F3D;
  --navy-mid:   #1A3260;
  --navy-soft:  #263D6E;
  --navy-faint: #EEF1F7;

  --accent:      #1A5FBF;
  --accent-soft: #D6E4F7;

  --gold:       #9A7B4F;
  --gold-light: #F0E8D8;

  /* Neutral grays */
  --gray-50:  #F8F9FB;
  --gray-100: #F1F3F7;
  --gray-200: #E3E8F0;
  --gray-300: #C8D0DC;
  --gray-400: #8C98AB;
  --gray-500: #64748B;
  --gray-600: #4A5568;
  --gray-700: #4A566A;

  /* Semantic */
  --border:     #DCE2EC;
  --shadow-sm:  0 1px 3px rgba(15,31,61,.06), 0 1px 2px rgba(15,31,61,.04);
  --shadow-md:  0 4px 12px rgba(15,31,61,.10), 0 2px 4px rgba(15,31,61,.06);

  /* Typography */
  --font-body:    'Inter', system-ui, sans-serif;
  --font-display: 'Playfair Display', Georgia, serif;

  /* Layout */
  --topbar-height: 58px;
}

/* --------------------------------------------------------------------------
   2. Base
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

body {
  font-family: var(--font-body);
  background: var(--gray-50);
  color: var(--navy);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Custom scrollbar */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--gray-300); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--gray-400); }

/* --------------------------------------------------------------------------
   3. Typography
   -------------------------------------------------------------------------- */
.font-display { font-family: var(--font-display); }

/* Uppercase section label — used on all form fields and card section headers */
.label-caps {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gray-500);
  margin-bottom: 6px;
}

/* Card section title with trailing divider line */
.card-section-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--gray-400);
  margin-bottom: 14px;
}
.card-section-title::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* Link */
.link { color: var(--accent); text-decoration: none; }
.link:hover { color: var(--navy); }

/* --------------------------------------------------------------------------
   4. Topbar
   -------------------------------------------------------------------------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--topbar-height);
  background: #fff;
  border-bottom: 2px solid var(--gold);
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  padding: 0 20px;
  gap: 10px;
}

.topbar-brand {
  display: flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--navy);
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.topbar-brand-icon {
  color: var(--gold);
  font-size: 1.1rem;
  line-height: 1;
}

/* Generic action button on the light topbar */
.topbar-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 500;
  padding: 5px 11px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--navy);
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
  white-space: nowrap;
}
.topbar-btn:hover {
  background: var(--gray-50);
  border-color: var(--gray-300);
}
.topbar-btn:active {
  background: var(--gray-100);
}

/* Danger variant (New/Clear) */
.topbar-btn-danger:hover {
  background: rgba(239,68,68,0.07);
  border-color: rgba(239,68,68,0.30);
  color: #DC2626;
}

/* Model toggle pill */
.model-pill {
  display: flex;
  align-items: center;
  background: var(--gray-100);
  border-radius: 9999px;
  padding: 2px;
  border: 1px solid var(--border);
}
.model-pill-btn {
  font-size: 11px;
  font-weight: 500;
  padding: 3px 11px;
  border-radius: 9999px;
  color: var(--gray-400);
  cursor: pointer;
  border: none;
  background: transparent;
  transition: background 0.15s, color 0.15s;
}
.model-pill-btn.active {
  background: var(--navy);
  color: #fff;
  font-weight: 600;
}

/* Separator line on the topbar */
.topbar-sep {
  width: 1px;
  height: 20px;
  background: var(--border);
  flex-shrink: 0;
}

/* User name on topbar */
.topbar-user {
  font-size: 12px;
  color: var(--gray-400);
  white-space: nowrap;
}

/* Dropdown panels that open below the dark topbar */
.topbar-dropdown {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: var(--shadow-md);
  color: var(--navy);
  font-size: 13px;
}
.topbar-dropdown-header {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--gray-400);
  padding: 10px 14px 8px;
  border-bottom: 1px solid var(--border);
}

/* --------------------------------------------------------------------------
   5. Cards / Surfaces
   -------------------------------------------------------------------------- */
.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 24px 28px;
  box-shadow: var(--shadow-sm);
}

.card-sm {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 14px 18px;
  box-shadow: var(--shadow-sm);
}

/* Tinted background — used for pre-flight, progress, info areas */
.card-tint {
  background: var(--gray-50);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 16px 18px;
}

/* Card that wraps the tab bar + content (no padding — panels handle their own) */
.card-tabs {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

/* --------------------------------------------------------------------------
   6. Tab Bar
   -------------------------------------------------------------------------- */
.tab-bar {
  display: flex;
  align-items: stretch;
  border-bottom: 1px solid var(--border);
  background: var(--gray-50);
  padding: 0 4px;
  overflow-x: auto;
  scrollbar-width: none;
}
.tab-bar::-webkit-scrollbar { display: none; }

.nav-tab {
  padding: 10px 15px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--gray-400);
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  cursor: pointer;
  white-space: nowrap;
  background: transparent;
  border-top: none;
  border-left: none;
  border-right: none;
  transition: color 0.15s, border-color 0.15s;
  flex-shrink: 0;
}
.nav-tab:hover {
  color: var(--navy);
}
.nav-tab.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
  font-weight: 600;
}

.tab-divider {
  width: 1px;
  background: var(--border);
  margin: 7px 4px;
  align-self: stretch;
  flex-shrink: 0;
}

/* --------------------------------------------------------------------------
   7. Form Elements
   -------------------------------------------------------------------------- */
.form-input {
  width: 100%;
  font-size: 13px;
  font-family: var(--font-body);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 9px 12px;
  color: var(--navy);
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
  line-height: 1.5;
}
.form-input::placeholder {
  color: var(--gray-300);
  font-style: italic;
}
.form-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
textarea.form-input {
  resize: vertical;
}

/* Upload drop zone */
.upload-zone {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1.5px dashed var(--border);
  border-radius: 8px;
  padding: 12px 14px;
  cursor: pointer;
  background: var(--gray-50);
  transition: border-color 0.15s, background 0.15s;
}
.upload-zone:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
}
.upload-zone-icon {
  color: var(--gray-300);
  transition: color 0.15s;
  flex-shrink: 0;
}
.upload-zone:hover .upload-zone-icon {
  color: var(--accent);
}
.upload-zone-label {
  font-size: 13px;
  color: var(--gray-400);
  transition: color 0.15s;
}
.upload-zone:hover .upload-zone-label {
  color: var(--accent);
}

/* Toggle switch active state (replaces bg-indigo-600) */
.toggle-on {
  background-color: var(--accent) !important;
}

/* --------------------------------------------------------------------------
   8. Buttons
   -------------------------------------------------------------------------- */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  padding: 8px 18px;
  border-radius: 6px;
  background: var(--navy);
  color: #fff;
  border: 1px solid var(--navy);
  cursor: pointer;
  transition: background 0.15s, box-shadow 0.15s;
  white-space: nowrap;
}
.btn-primary:hover {
  background: var(--navy-mid);
  border-color: var(--navy-mid);
}
.btn-primary:active {
  background: var(--navy-soft);
}
.btn-primary:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  font-size: 13px;
  font-weight: 500;
  padding: 7px 14px;
  border-radius: 6px;
  background: #fff;
  color: var(--navy);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
  white-space: nowrap;
}
.btn-secondary:hover {
  background: var(--gray-50);
  border-color: var(--gray-300);
}

/* Full-width Run Analysis button */
.btn-run {
  width: 100%;
  padding: 11px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: var(--navy);
  color: #fff;
  border-radius: 7px;
  border: none;
  cursor: pointer;
  transition: background 0.15s;
}
.btn-run:hover { background: var(--navy-mid); }
.btn-run:disabled { opacity: 0.4; cursor: not-allowed; }

/* Save button transient states */
.btn-saved {
  color: #065F46 !important;
  border-color: #6EE7B7 !important;
}
.btn-error-state {
  color: #9F1239 !important;
  border-color: #FCA5A5 !important;
}

/* --------------------------------------------------------------------------
   9. Badges — Confidence levels
   -------------------------------------------------------------------------- */
.badge {
  display: inline-flex;
  align-items: center;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 9999px;
}
.badge-HIGH   { background: #D1FAE5; color: #065F46; border: 1px solid #6EE7B7; }
.badge-MEDIUM { background: var(--gold-light); color: var(--gold); border: 1px solid #D4B896; }
.badge-LOW    { background: #FFE4E6; color: #9F1239; border: 1px solid #FCA5A5; }

/* --------------------------------------------------------------------------
   10. Section Chips (statutory sections)
   -------------------------------------------------------------------------- */
.section-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 500;
  background: var(--navy-faint);
  color: var(--accent);
  border: 1px solid var(--accent-soft);
  border-radius: 9999px;
  padding: 3px 10px;
}
.section-chip-remove {
  color: var(--accent);
  opacity: 0.5;
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
  transition: opacity 0.15s;
}
.section-chip-remove:hover { opacity: 1; }

/* --------------------------------------------------------------------------
   11. Status / Notification Banners
   -------------------------------------------------------------------------- */
.status-success {
  background: #D1FAE5;
  color: #065F46;
  border: 1px solid #6EE7B7;
  border-radius: 7px;
  font-size: 12px;
  padding: 8px 14px;
}
.status-error {
  background: #FFE4E6;
  color: #9F1239;
  border: 1px solid #FCA5A5;
  border-radius: 7px;
  font-size: 12px;
  padding: 8px 14px;
}
.status-info {
  background: var(--accent-soft);
  color: var(--accent);
  border: 1px solid #93C5FD;
  border-radius: 7px;
  font-size: 12px;
  padding: 8px 14px;
}

/* --------------------------------------------------------------------------
   12. Progress Track (stages)
   -------------------------------------------------------------------------- */
/* Supplement the existing .stage / .stage.active / .stage.done rules in base.html */
.stage.active {
  color: var(--navy) !important;
  opacity: 1 !important;
}
.stage.done {
  color: var(--gray-500) !important;
  opacity: 1 !important;
}

/* Step indicator circle */
.step-circle {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid var(--border);
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 700;
  color: var(--gray-400);
  flex-shrink: 0;
  transition: all 0.15s;
}
.stage.active .step-circle {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-soft);
}
.stage.done .step-circle {
  border-color: var(--navy);
  background: var(--navy);
  color: #fff;
}

/* --------------------------------------------------------------------------
   13. IRAC Accordion — colour overrides
   -------------------------------------------------------------------------- */
.issue-card {
  border-color: var(--border) !important;
}
.issue-card.open .issue-card-header {
  background: var(--navy-faint) !important;
}
.issue-card-header:hover {
  background: var(--gray-50) !important;
}

/* IRAC action links (expand/collapse all) */
.irac-action-btn {
  color: var(--accent);
  font-size: 12px;
  font-weight: 500;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  transition: color 0.15s;
}
.irac-action-btn:hover { color: var(--navy); }

/* --------------------------------------------------------------------------
   13b. Hybrid IRAC — exposure banner, top-3 emphasis, risks card, other-issues
   -------------------------------------------------------------------------- */
.exposure-banner {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0.85rem 1rem;
  margin: 0 0 1rem 0;
  border-left: 4px solid var(--border);
  border-radius: 0.5rem;
  background: var(--gray-50);
  font-family: 'Inter', sans-serif;
}
.exposure-banner-band {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--navy);
}
.exposure-banner-thesis {
  font-size: 14px;
  color: var(--navy);
  line-height: 1.4;
}
.exposure-banner-high {
  border-left-color: #9F1239;
  background: #FFF1F2;
}
.exposure-banner-high .exposure-banner-band { color: #9F1239; }

.exposure-banner-medium {
  border-left-color: var(--gold);
  background: var(--gold-light);
}
.exposure-banner-medium .exposure-banner-band { color: #92400E; }

.exposure-banner-low {
  border-left-color: var(--accent);
  background: var(--accent-soft);
}
.exposure-banner-low .exposure-banner-band { color: var(--accent); }

/* --------------------------------------------------------------------------
   13c. Critic badge (Sprint 3 adversarial review)
   -------------------------------------------------------------------------- */
.critic-badge-details {
  margin: 0 0 0.75rem 0;
  padding: 0.55rem 0.85rem;
  border-left: 3px solid #B45309;
  border-radius: 0.375rem;
  background: #FFFBEB;
  font-size: 12px;
  color: #78350F;
}
.critic-badge-details summary {
  cursor: pointer;
  font-weight: 600;
  letter-spacing: 0.02em;
  list-style: none;
  user-select: none;
}
.critic-badge-details summary::-webkit-details-marker { display: none; }
.critic-patch-list {
  margin: 0.5rem 0 0 0;
  padding: 0 0 0 1.1rem;
  line-height: 1.6;
  color: #92400E;
}

/* Top 3 issue emphasis — slightly heavier left border and darker frame */
.issue-card.top-three {
  border-width: 2px !important;
  border-left-width: 4px !important;
  border-left-color: var(--navy) !important;
}
.issue-card.top-three .issue-card-header {
  font-weight: 600;
}

/* "What could go wrong for us?" card */
.risks-card {
  margin: 1rem 0 0 0;
  padding: 1rem 1.1rem;
  border: 1px solid var(--gold);
  background: var(--gold-light);
  border-radius: 0.75rem;
  color: var(--navy);
  font-size: 14px;
  line-height: 1.55;
}
.risks-card h3,
.risks-card h4 {
  margin: 0 0 0.5rem 0;
  font-size: 15px;
  font-weight: 600;
  color: #92400E;
}
.risks-card ol,
.risks-card ul {
  margin: 0.25rem 0 0 1.25rem;
  padding: 0;
}
.risks-card li { margin: 0.35rem 0; }

/* Other Issues list (default/collapsed mode) */
.other-issues-list {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin: 0.5rem 0 1rem 0;
  padding: 0;
  list-style: none;
}
.other-issue-row {
  padding: 0.55rem 0.75rem;
  border-left: 3px solid var(--border);
  background: var(--gray-50);
  border-radius: 0 0.4rem 0.4rem 0;
}
.other-issue-heading {
  font-size: 13px;
  color: var(--navy);
  font-weight: 500;
  line-height: 1.35;
}
.other-issue-rationale {
  font-size: 12px;
  color: var(--gray-500);
  margin-top: 3px;
  line-height: 1.4;
}

/* Section headers inside hybrid IRAC accordion */
.irac-section-heading {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--gray-500);
  margin: 1rem 0 0.5rem 0;
}

/* --------------------------------------------------------------------------
   14. Sidebar
   -------------------------------------------------------------------------- */
.sidebar {
  width: 220px;
  flex-shrink: 0;
  background: var(--navy);
  position: fixed;
  top: var(--topbar-height);
  left: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: none;
  z-index: 40;
}
.sidebar::-webkit-scrollbar { display: none; }

/* Shift main content right */
.sidebar-layout {
  margin-left: 220px;
}

.sidebar-section-label {
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.30);
  padding: 0 20px 8px;
  display: block;
}

.sidebar-nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 20px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 400;
  color: rgba(255,255,255,0.55);
  border-left: 2px solid transparent;
  transition: all 0.15s;
  text-decoration: none;
  width: 100%;
  background: transparent;
  border-top: none;
  border-right: none;
  border-bottom: none;
  text-align: left;
}
.sidebar-nav-item:hover {
  color: rgba(255,255,255,0.85);
  background: rgba(255,255,255,0.04);
}
.sidebar-nav-item.active {
  color: #fff;
  border-left-color: #4A90D9;
  background: rgba(255,255,255,0.07);
  font-weight: 500;
}
.sidebar-nav-item svg {
  width: 15px;
  height: 15px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.75;
  flex-shrink: 0;
}
.sidebar-nav-item .sidebar-badge {
  margin-left: auto;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.05em;
  background: rgba(74,144,217,0.18);
  color: #7AB8F5;
  border: 1px solid rgba(74,144,217,0.28);
  padding: 1px 6px;
  border-radius: 20px;
  white-space: nowrap;
}

.sidebar-divider {
  height: 1px;
  background: rgba(255,255,255,0.07);
  margin: 12px 20px;
}

/* User block at top of sidebar */
.sidebar-user-block {
  padding: 20px 20px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.sidebar-user-name {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  color: rgba(255,255,255,0.85);
  overflow: hidden;
}
.sidebar-user-name span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.sidebar-user-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.14);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 600;
  color: rgba(255,255,255,0.70);
  flex-shrink: 0;
}

/* Sessions list inside sidebar */
.sidebar-sessions-list {
  max-height: 240px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.12) transparent;
}
.sidebar-sessions-list::-webkit-scrollbar { width: 4px; }
.sidebar-sessions-list::-webkit-scrollbar-track { background: transparent; }
.sidebar-sessions-list::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.12); border-radius: 2px; }

.sidebar-session-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 7px 20px;
  gap: 8px;
  cursor: pointer;
  transition: background 0.15s;
}
.sidebar-session-item:hover { background: rgba(255,255,255,0.04); }
.sidebar-session-title {
  font-size: 12px;
  color: rgba(255,255,255,0.55);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1;
  min-width: 0;
  transition: color 0.15s;
}
.sidebar-session-item:hover .sidebar-session-title {
  color: rgba(255,255,255,0.85);
}
.sidebar-session-date {
  font-size: 10px;
  color: rgba(255,255,255,0.25);
  white-space: nowrap;
  flex-shrink: 0;
}
.sidebar-session-delete {
  opacity: 0;
  font-size: 12px;
  color: rgba(255,255,255,0.30);
  flex-shrink: 0;
  transition: opacity 0.15s, color 0.15s;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0 2px;
}
.sidebar-session-item:hover .sidebar-session-delete { opacity: 1; }
.sidebar-session-delete:hover { color: #FCA5A5; }

/* Settings collapsible sections inside sidebar */
.sidebar-settings-block {
  padding: 0 14px;
}
.sidebar-setting-row {
  padding: 10px 6px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.sidebar-setting-row:last-child { border-bottom: none; }
.sidebar-setting-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.30);
  display: block;
  margin-bottom: 6px;
}
.sidebar-input {
  width: 100%;
  font-size: 11px;
  font-family: var(--font-body);
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 5px;
  padding: 6px 9px;
  color: rgba(255,255,255,0.80);
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.sidebar-input::placeholder { color: rgba(255,255,255,0.22); font-style: italic; }
.sidebar-input:focus {
  border-color: rgba(74,144,217,0.60);
  box-shadow: 0 0 0 2px rgba(74,144,217,0.15);
}

/* Radio option inside sidebar */
.sidebar-radio-option {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 5px 6px;
  border-radius: 5px;
  cursor: pointer;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.04);
  transition: background 0.15s;
}
.sidebar-radio-option:hover { background: rgba(255,255,255,0.08); }
.sidebar-radio-option input { accent-color: #4A90D9; }

/* Sign-out button at bottom of sidebar */
.sidebar-footer {
  margin-top: auto;
  padding: 16px 20px 20px;
  border-top: 1px solid rgba(255,255,255,0.07);
}
.sidebar-signout-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  font-size: 12px;
  font-weight: 500;
  color: rgba(255,255,255,0.40);
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 6px 0;
  transition: color 0.15s;
  text-align: left;
}
.sidebar-signout-btn:hover { color: rgba(255,255,255,0.75); }
.sidebar-signout-btn svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  flex-shrink: 0;
}

/* Status dot at footer */
.sidebar-status {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  color: rgba(255,255,255,0.25);
  margin-bottom: 10px;
}
.sidebar-status .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #4CAF82;
  flex-shrink: 0;
}

/* --------------------------------------------------------------------------
   15. Auth Pages
   -------------------------------------------------------------------------- */
.auth-page {
  min-height: 100vh;
  background: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.auth-card {
  width: 100%;
  max-width: 390px;
  background: #fff;
  border-radius: 12px;
  padding: 36px 40px;
  box-shadow: var(--shadow-md);
}

.auth-brand {
  text-align: center;
  margin-bottom: 28px;
}
.auth-brand-icon {
  font-size: 2rem;
  color: var(--gold);
  display: block;
}
.auth-brand-name {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 500;
  font-style: italic;
  color: var(--navy);
  margin-top: 6px;
  display: block;
  letter-spacing: -0.01em;
}

.auth-card-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 20px;
}
