﻿/* Icon color & effects */
i[data-lucide] { stroke-width: 2.5; transition: color 0.15s, filter 0.15s; filter: drop-shadow(0 0 1px rgba(0,0,0,0.05)); }
i[data-lucide]:hover { filter: drop-shadow(0 0 3px currentColor); }
.card-icon[data-lucide], .nav-icon[data-lucide] { stroke-width: 2.5; }
[data-theme="dark"] .status-active, [data-theme="dark"] .sector-mixed { color: #34d399 !important; }
/* ============================================================================
   MINISTRY OF HEALTH PORTAL - GOVERNMENT DESIGN SYSTEM
   ============================================================================ */

/* --- Design Tokens --- */
:root {
  /* Core palette - Navy/Dark Blue Government Theme */
  --bg-primary: #0a0f1e;
  --bg-secondary: #111827;
  --bg-tertiary: #1a2332;
  --bg-card: #151d2e;
  --bg-hover: #1e293b;
  --bg-input: #0f172a;

  /* Borders */
  --border-subtle: rgba(148, 163, 184, 0.12);
  --border-default: rgba(148, 163, 184, 0.18);
  --border-strong: rgba(148, 163, 184, 0.3);

  /* Typography */
  --text-primary: #f1f5f9;
  --text-secondary: #94a3b8;
  --text-muted: #94a3b8;
  --text-inverse: #0a0f1e;

  /* Brand - Navy/Blue */
  --brand-50: #eff6ff;
  --brand-100: #dbeafe;
  --brand-200: #bfdbfe;
  --brand-300: #93c5fd;
  --brand-400: #60a5fa;
  --brand-500: #1e40af;
  --brand-600: #1e3a8a;
  --brand-700: #1d4ed8;

  /* Semantic */
  --success: #10b981;
  --success-bg: rgba(16, 185, 129, 0.1);
  --success-border: rgba(16, 185, 129, 0.25);
  --warning: #f59e0b;
  --warning-bg: rgba(245, 158, 11, 0.1);
  --warning-border: rgba(245, 158, 11, 0.25);
  --danger: #ef4444;
  --danger-bg: rgba(239, 68, 68, 0.1);
  --danger-border: rgba(239, 68, 68, 0.25);
  --info: #3b82f6;
  --info-bg: rgba(59, 130, 246, 0.1);
  --info-border: rgba(59, 130, 246, 0.25);

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.3), 0 2px 4px -2px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.4), 0 4px 6px -4px rgba(0, 0, 0, 0.4);

  /* Radius */
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-full: 9999px;

  /* Transitions */
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 200ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 300ms cubic-bezier(0.4, 0, 0.2, 1);

  /* Sidebar */
  --sidebar-width: 260px;
  --sidebar-collapsed: 72px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  min-height: 100vh;
  display: grid;
  grid-template-columns: var(--sidebar-width) 1fr;
  background: var(--bg-primary);
  color: var(--text-primary);
  font-family: "Inter", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 14px;
  line-height: 1.6;
}

/* --- Sidebar --- */
.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg-secondary);
  border-right: 1px solid var(--border-subtle);
  overflow-y: auto;
  overflow-x: hidden;
}

.sidebar::-webkit-scrollbar {
  width: 4px;
}

.sidebar::-webkit-scrollbar-track {
  background: transparent;
}

.sidebar::-webkit-scrollbar-thumb {
  background: var(--border-default);
  border-radius: var(--radius-full);
}

/* Brand */
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 24px 20px;
  border-bottom: 1px solid var(--border-subtle);
}

.brand-mark {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, #dc2626, #991b1b);
  box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3);
  flex-shrink: 0;
}

.brand-icon {
  width: 24px;
  height: 24px;
  color: white;
  stroke-width: 2.5;
  filter: drop-shadow(0 0 2px rgba(255,255,255,0.3));
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-text strong {
  font-family: "Poppins", "Inter", ui-sans-serif, system-ui, sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.brand-text .brand-360 {
  font-weight: 800;
  background: linear-gradient(135deg, #dc2626, #ef4444);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-size: 20px;
}

.brand-text span {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* Nav Sections */
.nav-section {
  padding: 16px 12px 8px;
}

.nav-label {
  display: block;
  padding: 0 8px;
  margin-bottom: 8px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  font-size: 14px;
  transition: all var(--transition-fast);
  position: relative;
}

.nav-item i {
  width: 18px;
  height: 18px;
  stroke-width: 2;
  flex-shrink: 0;
  transition: color var(--transition-fast);
}

.nav-item:hover {
  background: var(--bg-hover);
  color: var(--text-primary);
}

.nav-item:hover i {
  color: var(--brand-400);
}

.nav-item.active {
  background: rgba(30, 64, 175, 0.1);
  color: var(--brand-400);
}

.nav-item.active::before {
  content: "";
  position: absolute;
  left: -12px;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 24px;
  border-radius: 0 var(--radius-full) var(--radius-full) 0;
  background: var(--brand-500);
}

.nav-item.active i {
  color: var(--brand-400);
}

/* Sidebar Footer */
.sidebar-footer {
  margin-top: auto;
  padding: 16px 12px;
  border-top: 1px solid var(--border-subtle);
}

.sidebar-footer-info {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border-radius: var(--radius-md);
  background: var(--bg-tertiary);
}

.footer-icon {
  width: 16px;
  height: 16px;
  color: var(--text-muted);
  stroke-width: 2;
}

.sidebar-footer-info > div {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.footer-label {
  font-size: 11px;
  font-weight: 500;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.footer-value {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
}

/* --- Main Shell --- */
.shell {
  padding: 28px 32px;
  min-height: 100vh;
  overflow-y: auto;
}

/* --- Topbar --- */
.topbar {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border-subtle);
}

.topbar-left h1 {
  font-size: 26px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.topbar-subtitle {
  margin-top: 4px;
  font-size: 14px;
  color: var(--text-secondary);
  font-weight: 400;
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.topbar-clock {
  font-size: 14px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--text-secondary);
  padding: 8px 14px;
  border-radius: var(--radius-md);
  background: var(--bg-tertiary);
  border: 1px solid var(--border-subtle);
}

/* Status Pill */
.status-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 600;
  border: 1px solid var(--border-subtle);
  background: var(--bg-tertiary);
  transition: all var(--transition-base);
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: var(--radius-full);
  background: var(--warning);
  transition: background var(--transition-base);
}

.status-pill-warning .status-dot {
  background: var(--warning);
  box-shadow: 0 0 8px rgba(245, 158, 11, 0.4);
}

.status-pill-warning {
  color: var(--warning);
}

.status-pill.connected {
  color: var(--success);
  border-color: var(--success-border);
  background: var(--success-bg);
}

.status-pill.connected .status-dot {
  background: var(--success);
  box-shadow: 0 0 8px rgba(16, 185, 129, 0.4);
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

/* --- Page Sections --- */
.page-section {
  animation: fade-in var(--transition-slow);
}

@keyframes fade-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* --- KPI Cards --- */
.kpi-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.kpi-row-sm {
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.kpi-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  background: var(--bg-card);
  transition: all var(--transition-base);
}

.kpi-card:hover {
  border-color: var(--border-default);
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}

.kpi-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: var(--radius-md);
  flex-shrink: 0;
}

.kpi-icon i {
  width: 22px;
  height: 22px;
  stroke-width: 2;
}

.kpi-content {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.kpi-value {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.kpi-label {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-top: 2px;
}

/* --- Cards --- */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: border-color var(--transition-base);
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 24px;
}

.card-header-left {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.card-icon {
  width: 20px;
  height: 20px;
  color: var(--brand-400);
  stroke-width: 2;
  margin-top: 2px;
  flex-shrink: 0;
}

.card-header h2 {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.01em;
  line-height: 1.3;
}

.card-header p {
  margin-top: 2px;
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border: none;
  border-radius: var(--radius-md);
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.btn i {
  width: 16px;
  height: 16px;
  stroke-width: 2;
}

.btn-primary {
  background: linear-gradient(135deg, var(--brand-500), var(--brand-600));
  color: white;
  box-shadow: 0 2px 8px rgba(30, 64, 175, 0.25);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--brand-400), var(--brand-500));
  box-shadow: 0 4px 12px rgba(30, 64, 175, 0.35);
  transform: translateY(-1px);
}

.btn-primary:active {
  transform: translateY(0);
  box-shadow: 0 1px 4px rgba(30, 64, 175, 0.2);
}

.btn-lg {
  padding: 12px 24px;
  font-size: 14px;
}

.btn-lg i {
  width: 18px;
  height: 18px;
}

/* --- Chart Placeholder --- */
.chart-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 24px;
  border: 2px dashed var(--border-default);
  border-radius: var(--radius-lg);
  background: var(--bg-tertiary);
  text-align: center;
  margin: 16px 0;
  min-height: 200px;
}

.chart-icon {
  width: 48px;
  height: 48px;
  color: var(--text-muted);
  stroke-width: 1.5;
  margin-bottom: 16px;
}

.chart-placeholder p {
  font-size: 13px;
  color: var(--text-muted);
  max-width: 300px;
}

/* --- Grids --- */
.national-grid,
.alerts-grid,
.disease-grid,
.facilities-grid,
.occupancy-grid,
.equipment-grid,
.workforce-grid,
.vacancy-grid,
.nhi-grid,
.immunization-grid,
.maternal-grid,
.tbhiv-grid,
.reports-grid,
.compliance-grid,
.deadlines-grid {
  display: grid;
  gap: 16px;
  margin-top: 16px;
}

.national-grid {
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.alerts-grid {
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
}

.disease-grid {
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}

.facilities-grid {
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

.occupancy-grid,
.equipment-grid {
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}

.workforce-grid,
.vacancy-grid {
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}

.nhi-grid,
.immunization-grid,
.maternal-grid,
.tbhiv-grid {
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}

.reports-grid {
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}

.compliance-grid,
.deadlines-grid {
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}

/* --- Grid Cards --- */
.grid-card {
  padding: 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  background: var(--bg-tertiary);
  transition: all var(--transition-fast);
}

.grid-card:hover {
  border-color: var(--border-default);
  background: var(--bg-hover);
}

.grid-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.grid-card-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
}

.grid-card-badge {
  padding: 2px 8px;
  border-radius: var(--radius-full);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
}

/* --- Status Badges --- */
.status-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.status-badge-critical {
  background: var(--danger-bg);
  color: var(--danger);
  border: 1px solid var(--danger-border);
}

.status-badge-high {
  background: var(--warning-bg);
  color: var(--warning);
  border: 1px solid var(--warning-border);
}

.status-badge-medium {
  background: var(--info-bg);
  color: var(--info);
  border: 1px solid var(--info-border);
}

.status-badge-low {
  background: var(--success-bg);
  color: var(--success);
  border: 1px solid var(--success-border);
}

/* --- Progress Bars --- */
.progress-bar {
  height: 8px;
  background: var(--bg-hover);
  border-radius: var(--radius-full);
  overflow: hidden;
  margin-top: 8px;
}

.progress-bar-fill {
  height: 100%;
  border-radius: var(--radius-full);
  transition: width 0.6s ease;
}

/* --- Data Tables --- */
.data-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin-top: 16px;
  font-size: 13px;
}

.data-table thead th {
  padding: 12px 16px;
  text-align: left;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  background: var(--bg-tertiary);
  border-bottom: 1px solid var(--border-default);
}

.data-table thead th:first-child {
  border-radius: var(--radius-md) 0 0 0;
}

.data-table thead th:last-child {
  border-radius: 0 var(--radius-md) 0 0;
}

.data-table tbody tr {
  transition: background var(--transition-fast);
}

.data-table tbody tr:hover {
  background: var(--bg-hover);
}

.data-table tbody td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-subtle);
  color: var(--text-secondary);
}

.data-table tbody td:first-child {
  color: var(--text-primary);
  font-weight: 500;
}

/* --- Empty State --- */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 24px;
  text-align: center;
}

.empty-state .empty-icon {
  width: 48px;
  height: 48px;
  color: var(--text-muted);
  stroke-width: 1.5;
  margin-bottom: 16px;
}

.empty-state h3 {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.empty-state p {
  font-size: 13px;
  color: var(--text-muted);
  max-width: 320px;
  line-height: 1.5;
}

/* --- Loading Spinner --- */
.loading {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
}

.spinner {
  width: 24px;
  height: 24px;
  border: 2px solid var(--border-default);
  border-top-color: var(--brand-500);
  border-radius: var(--radius-full);
  animation: spin 0.6s linear infinite;
}

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

/* --- Dashboard Grid --- */
.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(300px, 1fr));
  gap: 24px;
  margin-top: 24px;
}

.dashboard-grid .full-width {
  grid-column: 1 / -1;
}

/* --- Responsive --- */
@media (max-width: 1024px) {
  .kpi-row {
    grid-template-columns: repeat(2, minmax(200px, 1fr));
  }

  .dashboard-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  body {
    grid-template-columns: 1fr;
  }

  .sidebar {
    display: none;
  }

  .shell {
    padding: 20px 16px;
  }

  .topbar {
    flex-direction: column;
    gap: 16px;
  }

  .topbar-right {
    align-self: flex-end;
  }

  .kpi-row {
    grid-template-columns: 1fr;
  }

  .card-header {
    flex-direction: column;
  }
}

.location-toggle-btn {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 6px 10px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--text-secondary);
  transition: all 0.2s;
}
.location-toggle-btn:hover {
  background: var(--hover);
}
.location-toggle-btn.active {
  background: #dcfce7;
  border-color: #22c55e;
  color: #22c55e;
}

.login-overlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(10, 15, 30, 0.95);
  backdrop-filter: blur(8px);
}

.login-modal {
  background: var(--bg-card);
  border: 1px solid var(--border-default);
  border-radius: 16px;
  padding: 40px;
  width: 380px;
  max-width: 90vw;
  display: grid;
  gap: 14px;
  text-align: center;
}

.login-modal h2 { margin: 0; font-size: 22px; }
.login-modal p { margin: 0; color: var(--text-muted); font-size: 14px; }

.login-modal input {
  padding: 12px 14px;
  border-radius: 8px;
  border: 1px solid var(--border-default);
  background: var(--bg-input);
  color: var(--text-primary);
  font-size: 14px;
  outline: none;
}

.login-modal input:focus { border-color: var(--brand-500); }

.login-modal button {
  padding: 12px;
  border-radius: 8px;
  border: 0;
  background: linear-gradient(90deg, var(--brand-500), var(--brand-600));
  color: white;
  font-weight: 700;
  cursor: pointer;
  font-size: 14px;
}

/* â”€â”€ Community Profile â”€â”€ */
.community-risk-section {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 8px 0;
}

.community-risk-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.community-risk-label {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 140px;
  flex-shrink: 0;
}

.community-risk-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
}

.community-risk-count {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
  margin-left: auto;
}

.community-risk-bar {
  flex: 1;
  height: 10px;
  background: var(--bg-hover);
  border-radius: var(--radius-full);
  overflow: hidden;
  min-width: 100px;
}

.community-risk-fill {
  height: 100%;
  border-radius: var(--radius-full);
  transition: width 0.6s ease;
}

.community-risk-pct {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  min-width: 48px;
  text-align: right;
  flex-shrink: 0;
}

.community-caregaps {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 8px 0;
}

.care-gap-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.care-gap-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.care-gap-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
}

.care-gap-value {
  font-size: 12px;
  font-weight: 600;
  color: var(--danger);
}

.care-gap-detail {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--text-muted);
}

.community-demographics {
  padding: 8px 0;
}

.demographics-summary {
  display: flex;
  gap: 24px;
  padding: 12px 16px;
  margin-top: 12px;
  border-radius: var(--radius-md);
  background: var(--bg-tertiary);
  font-size: 13px;
  color: var(--text-secondary);
}

.demographics-summary strong {
  color: var(--text-primary);
  font-weight: 700;
}

[data-theme="light"] {
  --bg-primary: #f8fafc;
  --bg-secondary: #ffffff;
  --bg-tertiary: #f1f5f9;
  --bg-card: #ffffff;
  --bg-hover: #e2e8f0;
  --bg-input: #ffffff;
  --border-subtle: rgba(0, 0, 0, 0.08);
  --border-default: rgba(0, 0, 0, 0.12);
  --border-strong: rgba(0, 0, 0, 0.2);
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #94a3b8;
  --text-inverse: #f8fafc;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.06), 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.05);
}

/* Mobile: keep sidebar as an off-canvas drawer instead of hiding it */
@media (max-width: 768px) {
  body.mobile-layout .sidebar { display: flex !important; flex-direction: column; }
}
