/* ==========================================================================
   Design Tokens — School Contribution Management System
   ========================================================================== */
:root {
  /* Brand */
  --color-primary-50:  #eef3fb;
  --color-primary-100: #d6e2f4;
  --color-primary-200: #adc5e9;
  --color-primary-300: #7fa3db;
  --color-primary-400: #4c7dc9;
  --color-primary-500: #285cae;
  --color-primary-600: #1c4590;
  --color-primary-700: #163872;
  --color-primary-800: #122c5a;
  --color-primary-900: #0b1c3a;

  --color-secondary-50:  #eafbf7;
  --color-secondary-100: #cdf3e9;
  --color-secondary-500: #0d9488;
  --color-secondary-600: #0b7d73;
  --color-secondary-700: #0a655e;

  /* Semantic */
  --color-success-50:  #ecfdf3;
  --color-success-100: #d1fadf;
  --color-success-500: #16a34a;
  --color-success-600: #15803d;
  --color-success-700: #166534;

  --color-warning-50:  #fffaeb;
  --color-warning-100: #fef0c7;
  --color-warning-500: #d97706;
  --color-warning-600: #b45309;
  --color-warning-700: #92400e;

  --color-danger-50:  #fef2f2;
  --color-danger-100: #fee2e2;
  --color-danger-500: #dc2626;
  --color-danger-600: #b91c1c;
  --color-danger-700: #991b1b;

  --color-info-50:  #eff6ff;
  --color-info-500: #2563eb;

  /* Neutral / Slate */
  --color-slate-25:  #fbfcfe;
  --color-slate-50:  #f6f8fb;
  --color-slate-100: #eef1f6;
  --color-slate-200: #e2e6ee;
  --color-slate-300: #cbd2df;
  --color-slate-400: #98a2b3;
  --color-slate-500: #667085;
  --color-slate-600: #475467;
  --color-slate-700: #344054;
  --color-slate-800: #1d2939;
  --color-slate-900: #101828;

  /* Backgrounds */
  --bg-app: var(--color-slate-50);
  --bg-surface: #ffffff;
  --bg-surface-alt: var(--color-slate-25);
  --bg-sidebar: #ffffff;
  --bg-sidebar-hover: var(--color-slate-100);

  /* Text — no grey text anywhere; secondary/muted map to the same near-black as primary */
  --text-primary: var(--color-slate-900);
  --text-secondary: var(--color-slate-900);
  --text-muted: var(--color-slate-900);
  --text-inverse: #ffffff;

  /* Borders */
  --border-subtle: var(--color-slate-200);
  --border-default: var(--color-slate-300);

  /* Radius */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-xl: 18px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-xs: 0 1px 2px rgba(16, 24, 40, 0.05);
  --shadow-sm: 0 1px 3px rgba(16, 24, 40, 0.08), 0 1px 2px rgba(16, 24, 40, 0.04);
  --shadow-md: 0 4px 10px rgba(16, 24, 40, 0.08), 0 2px 4px rgba(16, 24, 40, 0.04);
  --shadow-lg: 0 12px 24px rgba(16, 24, 40, 0.10);

  /* Spacing scale */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;

  /* Typography */
  --font-sans: 'Inter', 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --fs-xs: 0.75rem;
  --fs-sm: 0.8125rem;
  --fs-base: 0.9375rem;
  --fs-md: 1rem;
  --fs-lg: 1.125rem;
  --fs-xl: 1.375rem;
  --fs-2xl: 1.75rem;
  --fs-3xl: 2.125rem;

  /* Layout */
  --sidebar-width: 268px;
  --sidebar-width-collapsed: 84px;
  --header-height: 68px;
  --bottom-nav-height: 64px;

  --transition-fast: 150ms ease;
  --transition-base: 220ms cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="dark"] {
  --bg-app: #0b1220;
  --bg-surface: #121b2d;
  --bg-surface-alt: #0f1727;
  --bg-sidebar: #070d1a;
  --bg-sidebar-hover: #101c33;

  --text-primary: #eef2f8;
  --text-secondary: #eef2f8;
  --text-muted: #eef2f8;
  --text-inverse: #0b1220;

  --border-subtle: #223049;
  --border-default: #2b3a56;

  --color-slate-50: #101828;
  --color-slate-100: #16223a;

  --shadow-sm: 0 1px 3px rgba(0,0,0,0.35);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.4);
  --shadow-lg: 0 16px 32px rgba(0,0,0,0.45);
}
