

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

  /* ---------- Radius scale ---------- */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-pill: 999px;

  /* ---------- Typography ---------- */
  --font-family-base: "Segoe UI", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-size-xs: 11px;
  --font-size-sm: 12.5px;
  --font-size-base: 14px;
  --font-size-md: 15px;
  --font-size-lg: 17px;
  --font-size-xl: 22px;
  --font-size-2xl: 28px;
  --font-weight-regular: 400;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;
  --font-weight-heavy: 800;

  /* ---------- Motion ---------- */
  --transition-fast: 0.15s ease;
  --transition-base: 0.2s ease;
  --transition-slow: 0.4s ease;
  --theme-transition: background-color 0.25s ease, color 0.25s ease,
    border-color 0.25s ease, box-shadow 0.25s ease;

  /* ---------- Light mode (default) color set ---------- */
  --color-bg: #f1f5f9;
  --color-surface: #ffffff;
  --color-surface-alt: #f8fafc;
  --color-border: #e2e8f0;
  --color-text-primary: #0f172a;
  --color-text-secondary: #64748b;
  --color-text-inverse: #f8fafc;

  --color-accent: #2563eb;
  --color-accent-strong: #1e40af;
  --color-success: #16a34a;
  --color-success-bg: #dcfce7;
  --color-warning: #ea580c;
  --color-warning-bg: #ffedd5;
  --color-danger: #dc2626;
  --color-danger-bg: #fee2e2;

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 5px 15px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.14);
  --overlay-scrim: rgba(15, 23, 42, 0.55);
}


[data-theme="dark"] {
  --color-bg: #0b1120;
  --color-surface: #111827;
  --color-surface-alt: #0f172a;
  --color-border: #1f2937;
  --color-text-primary: #f1f5f9;
  --color-text-secondary: #94a3b8;
  --color-text-inverse: #0f172a;

  --color-accent: #3b82f6;
  --color-accent-strong: #60a5fa;
  --color-success: #22c55e;
  --color-success-bg: #14532d;
  --color-warning: #f59e0b;
  --color-warning-bg: #451a03;
  --color-danger: #ef4444;
  --color-danger-bg: #450a0a;

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.35);
  --shadow-md: 0 5px 18px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 14px 36px rgba(0, 0, 0, 0.5);
  --overlay-scrim: rgba(0, 0, 0, 0.7);
}


.theme-transition,
.theme-transition * {
  transition: var(--theme-transition) !important;
}