/* ============================================================
   Design Tokens — Projob Support Center
   Inspired by cursor.com/docs: clean, spacious, readable
   ============================================================ */

:root {
  /* ---- Colors: Light ---- */
  --color-bg: #ffffff;
  --color-bg-secondary: #f9fafb;
  --color-bg-tertiary: #f3f4f6;
  --color-bg-hover: #f3f4f6;
  --color-text: #111827;
  --color-text-secondary: #6b7280;
  --color-text-tertiary: #9ca3af;
  --color-border: #e5e7eb;
  --color-border-light: #f3f4f6;
  --color-brand: #0f766e;
  --color-brand-hover: #0d6560;
  --color-brand-light: #f0fdfa;
  --color-brand-subtle: rgba(15, 118, 110, 0.08);
  --color-link: #0f766e;
  --color-link-hover: #0d6560;
  --color-success: #059669;
  --color-warning: #d97706;
  --color-error: #dc2626;
  --color-info: #2563eb;
  --color-code-bg: #f3f4f6;
  --color-card-shadow: rgba(0, 0, 0, 0.04);
  --color-overlay: rgba(0, 0, 0, 0.5);

  /* ---- Typography ---- */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', 'Consolas', monospace;

  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 2rem;
  --text-4xl: 2.5rem;

  --weight-normal: 400;
  --weight-medium: 500;
  --weight-semibold: 600;
  --weight-bold: 700;

  --leading-tight: 1.3;
  --leading-snug: 1.5;
  --leading-normal: 1.7;
  --leading-relaxed: 1.8;

  --tracking-tight: -0.01em;
  --tracking-normal: 0;
  --tracking-wide: 0.02em;

  /* ---- Spacing ---- */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-paragraph: 1.25em;
  --space-section: 3rem;

  /* ---- Layout ---- */
  --sidebar-width: 260px;
  --content-max-width: 680px;
  --page-max-width: 1200px;
  --header-height: 56px;

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

  /* ---- Shadows ---- */
  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.03);
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 2px 8px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 4px 16px rgba(0, 0, 0, 0.08);
  --shadow-xl: 0 8px 32px rgba(0, 0, 0, 0.1);

  /* ---- Transitions ---- */
  --transition-fast: 150ms ease;
  --transition-base: 200ms ease;
  --transition-slow: 300ms ease;

  /* ---- Z-index ---- */
  --z-sidebar: 40;
  --z-header: 50;
  --z-overlay: 60;
  --z-modal: 70;
  --z-tooltip: 80;
}

/* ---- Dark Theme ---- */
[data-theme="dark"] {
  --color-bg: #0f1117;
  --color-bg-secondary: #1a1d27;
  --color-bg-tertiary: #252836;
  --color-bg-hover: #252836;
  --color-text: #e5e7eb;
  --color-text-secondary: #9ca3af;
  --color-text-tertiary: #6b7280;
  --color-border: #2d3140;
  --color-border-light: #1f2231;
  --color-brand: #2dd4bf;
  --color-brand-hover: #5eead4;
  --color-brand-light: #0d2d2a;
  --color-brand-subtle: rgba(45, 212, 191, 0.08);
  --color-link: #2dd4bf;
  --color-link-hover: #5eead4;
  --color-success: #34d399;
  --color-warning: #fbbf24;
  --color-error: #f87171;
  --color-info: #60a5fa;
  --color-code-bg: #1a1d27;
  --color-card-shadow: rgba(0, 0, 0, 0.2);
  --color-overlay: rgba(0, 0, 0, 0.7);
}
