/* All design tokens live here. Change the look in one place. Dark is the default; light follows the phone or the toggle. */
:root {
  --bg: #0B0B0F;
  --bg-glow: radial-gradient(1200px 500px at 85% -10%, rgba(189, 163, 247, .10), transparent 60%);
  --surface: #141418;
  --surface-2: #1B1B21;
  --border: #26262E;
  --text: #F2F2F5;
  --text-2: #9A9AA8;
  --accent: #BDA3F7;
  --accent-contrast: #1A1030;
  --accent-2: #F5D36B;
  --success: #4ADE80;
  --warning: #FBBF24;
  --danger: #F87171;
  --info: #60A5FA;

  /* Old names, kept so every page keeps working */
  --brand: var(--accent);
  --brand-contrast: var(--accent-contrast);

  /* Status colors shared by beds, tenants, bills, documents */
  --st-vacant: #4ADE80;
  --st-occupied: #60A5FA;
  --st-reserved: #BDA3F7;
  --st-notice: #FBBF24;
  --st-maintenance: #8B8B99;
  --st-blocked: #5B5B68;
  --st-shortstay: #2DD4BF;

  --radius: 20px;
  --radius-sm: 12px;
  --shadow: 0 1px 0 rgba(255, 255, 255, .03) inset, 0 8px 24px rgba(0, 0, 0, .35);
  --shadow-lg: 0 24px 60px rgba(0, 0, 0, .55);
  --hatch: repeating-linear-gradient(135deg, transparent 0 4px, rgba(255, 255, 255, .07) 4px 5px);

  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px; --s7: 48px;
  --fs-xs: 12px; --fs-sm: 14px; --fs-md: 16px; --fs-lg: 20px; --fs-xl: 26px; --fs-xxl: 34px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: dark;
}

@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --bg: #F4F3F8; --bg-glow: radial-gradient(1200px 500px at 85% -10%, rgba(109, 74, 224, .10), transparent 60%);
    --surface: #FFFFFF; --surface-2: #F1EFF8; --border: #E4E1EE; --text: #14121C; --text-2: #6B6880;
    --accent: #6D4AE0; --accent-contrast: #FFFFFF; --accent-2: #B7791F;
    --success: #15803D; --warning: #B45309; --danger: #DC2626; --info: #2563EB;
    --st-vacant: #15803D; --st-occupied: #2563EB; --st-reserved: #6D4AE0; --st-notice: #B45309; --st-maintenance: #6B6880; --st-blocked: #3F3C52;
    --shadow: 0 1px 2px rgba(20, 18, 28, .06), 0 8px 24px rgba(20, 18, 28, .07); --shadow-lg: 0 24px 60px rgba(20, 18, 28, .2);
    --hatch: repeating-linear-gradient(135deg, transparent 0 4px, rgba(20, 18, 28, .08) 4px 5px);
    color-scheme: light;
  }
}
:root[data-theme="light"] {
  --bg: #F4F3F8; --bg-glow: radial-gradient(1200px 500px at 85% -10%, rgba(109, 74, 224, .10), transparent 60%);
  --surface: #FFFFFF; --surface-2: #F1EFF8; --border: #E4E1EE; --text: #14121C; --text-2: #6B6880;
  --accent: #6D4AE0; --accent-contrast: #FFFFFF; --accent-2: #B7791F;
  --success: #15803D; --warning: #B45309; --danger: #DC2626; --info: #2563EB;
  --st-vacant: #15803D; --st-occupied: #2563EB; --st-reserved: #6D4AE0; --st-notice: #B45309; --st-maintenance: #6B6880; --st-blocked: #3F3C52;
  --shadow: 0 1px 2px rgba(20, 18, 28, .06), 0 8px 24px rgba(20, 18, 28, .07); --shadow-lg: 0 24px 60px rgba(20, 18, 28, .2);
  --hatch: repeating-linear-gradient(135deg, transparent 0 4px, rgba(20, 18, 28, .08) 4px 5px);
  color-scheme: light;
}
