﻿/* === tokens === */
/* ════════ Design Tokens (light + dark) ════════ */
:root {
  /* ── Brand colors ── */
  --primary: #4F46E5;
  --primary-dark: #3730A3;
  --primary-light: #EEF2FF;
  --primary-mid: #6366F1;
  --secondary: #7C3AED;

  /* ── Semantic colors ── */
  --success: #10B981;
  --success-light: #D1FAE5;
  --success-text: #065F46;
  --warning: #F59E0B;
  --warning-light: #FEF3C7;
  --warning-text: #92400E;
  --danger: #EF4444;
  --danger-light: #FEE2E2;
  --danger-text: #991B1B;
  --info: #3B82F6;
  --info-light: #DBEAFE;
  --info-text: #1D4ED8;

  /* ── Surface & border ── */
  --bg: #F1F5F9;
  --surface: #F8FAFC;
  --card: #FFFFFF;
  --border: #E2E8F0;
  --border-light: #F1F5F9;

  /* ── Text ── */
  --text: #1E293B;
  --text-muted: #64748B;
  --text-secondary: #64748B;
  --text-light: #94A3B8;
  --text-white: #FFFFFF;

  /* ── Semi-transparent whites ── */
  --white-10: rgba(255, 255, 255, 0.10);
  --white-20: rgba(255, 255, 255, 0.20);
  --white-95: rgba(255, 255, 255, 0.95);

  /* ── Shadows ── */
  --shadow-xs: 0 1px 2px rgba(0, 0, 0, .06);
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, .1), 0 1px 2px rgba(0, 0, 0, .06);
  --shadow: 0 4px 6px rgba(0, 0, 0, .07), 0 2px 4px rgba(0, 0, 0, .05);
  --shadow-lg: 0 10px 25px rgba(0, 0, 0, .12), 0 4px 10px rgba(0, 0, 0, .07);
  --shadow-xl: 0 20px 50px rgba(0, 0, 0, .18), 0 8px 20px rgba(0, 0, 0, .08);

  /* ── Border radius ── */
  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-pill: 999px;

  /* ── Spacing scale (8px grid) ── */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-7: 28px;
  --space-8: 32px;

  /* ── Typography ── */
  --text-xs: 0.72rem;
  --text-sm: 0.85rem;
  --text-base: 1rem;
  --text-lg: 1.1rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.75rem;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;

  /* ── Motion ── */
  --transition: all 0.18s ease;

  /* ── Layout ── */
  --nav-h: 64px;
}

/* ══════════════════════════════════════════ DARK MODE ══ */
[data-theme="dark"] {
  --bg: #0F172A;
  --surface: #1A2540;
  --card: #1E293B;
  --border: #334155;
  --border-light: #293548;

  --text: #F1F5F9;
  --text-muted: #94A3B8;
  --text-secondary: #94A3B8;
  --text-light: #64748B;

  --primary-light: #1E1B4B;
  --success-light: #064E3B;
  --warning-light: #451A03;
  --danger-light: #450A0A;
  --info-light: #0C1A3A;

  /* ── Semantic text in dark mode ── */
  --success-text: #6EE7B7;
  --warning-text: #FCD34D;
  --danger-text: #FCA5A5;
  --info-text: #93C5FD;

  /* ── Shadows (stronger in dark) ── */
  --shadow-xs: 0 1px 2px rgba(0, 0, 0, .4);
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, .5);
  --shadow: 0 4px 12px rgba(0, 0, 0, .4);
  --shadow-lg: 0 10px 30px rgba(0, 0, 0, .5), 0 4px 12px rgba(0, 0, 0, .3);
  --shadow-xl: 0 20px 50px rgba(0, 0, 0, .6);
}

