:root {
  /* ── Typography ── */
  --font-body: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-md: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 1.875rem;
  --text-4xl: 2.25rem;
  --text-5xl: 3rem;

  --fw-regular: 400;
  --fw-medium: 500;
  --fw-semibold: 600;
  --fw-bold: 700;

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

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

  /* ── Transitions ── */
  --transition-fast: 100ms 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);

  /* ── Z-Indices ── */
  --z-sidebar: 100;
  --z-header: 200;
  --z-overlay: 300;
  --z-modal: 400;
  --z-toast: 500;
  --z-tooltip: 600;

  /* ── Layout Dimensions ── */
  --sidebar-width: 260px;
  --sidebar-collapsed: 68px;
  --header-height: 64px;

  /* ── Status Colors ── */
  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;
  --info: #3b82f6;

  /* ── Priority Colors ── */
  --priority-low: #10b981;
  --priority-medium: #f59e0b;
  --priority-high: #f97316;
  --priority-urgent: #ef4444;

  /* ── DEFAULT THEME (Dark Theme) ── */
  --bg-primary: #0b0f19;
  --bg-secondary: #111827;
  --bg-tertiary: #1f2937;
  --bg-card: #111827;
  --bg-hover: #1f2937;
  --bg-glass: rgba(17, 24, 39, 0.7);
  --text-primary: #f9fafb;
  --text-secondary: #9ca3af;
  --text-muted: #6b7280;
  --border-color: #1f2937;
  --border-light: #374151;
  --shadow-color: rgba(0, 0, 0, 0.5);

  --shadow-sm: 0 1px 2px var(--shadow-color);
  --shadow-md: 0 4px 6px -1px var(--shadow-color), 0 2px 4px -1px var(--shadow-color);
  --shadow-lg: 0 10px 15px -3px var(--shadow-color), 0 4px 6px -2px var(--shadow-color);
  --shadow-xl: 0 20px 25px -5px var(--shadow-color), 0 10px 10px -5px var(--shadow-color);

  --accent-primary: #6366f1;
  --accent-hover: #4f46e5;
  --accent-light: rgba(99, 102, 241, 0.15);

  /* Note Custom Colors (Dark Mode Specifics) */
  --note-default: #111827;
  --note-red: #451a1a;
  --note-orange: #432115;
  --note-yellow: #3e3215;
  --note-green: #143525;
  --note-teal: #113430;
  --note-blue: #172d4c;
  --note-indigo: #202454;
  --note-purple: #2d1b4e;
  --note-pink: #3f1832;
  --note-brown: #33251e;
  --note-gray: #1e293b;
}

/* ── Light Theme Override ── */
[data-theme='light'] {
  --bg-primary: #f8fafc;
  --bg-secondary: #ffffff;
  --bg-tertiary: #f1f5f9;
  --bg-card: #ffffff;
  --bg-hover: #f1f5f9;
  --bg-glass: rgba(255, 255, 255, 0.85);
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #94a3b8;
  --border-color: #e2e8f0;
  --border-light: #f1f5f9;
  --shadow-color: rgba(15, 23, 42, 0.08);

  --shadow-sm: 0 1px 2px var(--shadow-color);
  --shadow-md: 0 4px 6px -1px var(--shadow-color), 0 2px 4px -1px var(--shadow-color);
  --shadow-lg: 0 10px 15px -3px var(--shadow-color), 0 4px 6px -2px var(--shadow-color);
  --shadow-xl: 0 20px 25px -5px var(--shadow-color), 0 10px 10px -5px var(--shadow-color);

  --accent-primary: #4f46e5;
  --accent-hover: #3730a3;
  --accent-light: rgba(79, 70, 229, 0.08);

  /* Note Custom Colors (Light Mode Specifics) */
  --note-default: #ffffff;
  --note-red: #fee2e2;
  --note-orange: #ffedd5;
  --note-yellow: #fef9c3;
  --note-green: #dcfce7;
  --note-teal: #ccfbf1;
  --note-blue: #dbeafe;
  --note-indigo: #e0e7ff;
  --note-purple: #f3e8ff;
  --note-pink: #fce7f3;
  --note-brown: #f5ebe6;
  --note-gray: #f1f5f9;
}
