/* ==============================================
   variables.css — Design System Tokens
   Proofito Dashboard
   ============================================== */

:root {
  /* ========== DARK THEME (default) ========== */

  /* Background hierarchy */
  --bg-primary: #0f1117;
  --bg-secondary: #1a1d27;
  --bg-tertiary: #15171f;
  --bg-surface: #232733;
  --bg-surface-hover: #2a2e3d;
  --bg-hover: #2a2e3d;
  --bg-elevated: #2d3142;

  /* Text */
  --text-primary: #f0f1f5;
  --text-secondary: #a0a4b8;
  --text-tertiary: #6b7084;
  --text-inverse: #0f1117;

  /* Brand / Primary — green/teal per design reference */
  --primary: #00D68F;
  --primary-hover: #00f5a0;
  --primary-subtle: rgba(0, 214, 143, 0.12);
  --primary-text: #00f5a0;

  /* Accent (teal-green) */
  --accent: #00D68F;
  --accent-hover: #00f5a0;
  --accent-alpha: rgba(0, 214, 143, 0.12);

  /* Success */
  --success: #22c55e;
  --success-subtle: rgba(34, 197, 94, 0.12);
  --success-text: #86efac;

  /* Danger */
  --danger: #ef4444;
  --danger-subtle: rgba(239, 68, 68, 0.12);
  --danger-text: #fca5a5;

  /* Warning */
  --warning: #f59e0b;
  --warning-subtle: rgba(245, 158, 11, 0.12);
  --warning-text: #fcd34d;

  /* Info */
  --info: #06b6d4;
  --info-subtle: rgba(6, 182, 212, 0.12);
  --info-text: #67e8f9;

  /* Borders */
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.15);
  --border-focus: var(--primary);

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 20px rgba(0, 214, 143, 0.15);

  /* Chart palette */
  --chart-1: #00D68F;
  --chart-2: #22c55e;
  --chart-3: #f59e0b;
  --chart-4: #06b6d4;
  --chart-5: #ec4899;
  --chart-6: #8b5cf6;
  --chart-7: #14b8a6;

  /* Sizing */
  --sidebar-width: 260px;
  --sidebar-collapsed: 72px;
  --header-height: 64px;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-full: 9999px;

  /* Typography */
  --font-main: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
  --font-size-xs: 0.75rem;
  --font-size-sm: 0.8125rem;
  --font-size-base: 0.875rem;
  --font-size-md: 1rem;
  --font-size-lg: 1.125rem;
  --font-size-xl: 1.5rem;
  --font-size-2xl: 2rem;
  --font-size-3xl: 2.5rem;
  --font-size-hero: 3.5rem;

  /* Spacing */
  --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;
  --space-16: 64px;

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;
  --transition-slow: 400ms ease;

  /* Z-index layers */
  --z-sidebar: 100;
  --z-header: 200;
  --z-modal-backdrop: 500;
  --z-modal: 600;
  --z-toast: 700;
}

/* ========== LIGHT THEME ========== */
[data-theme="light"] {
  --bg-primary: #f8f9fc;
  --bg-secondary: #ffffff;
  --bg-tertiary: #f1f3f9;
  --bg-surface: #ffffff;
  --bg-surface-hover: #f1f3f9;
  --bg-hover: #f1f3f9;
  --bg-elevated: #ffffff;

  --text-primary: #1a1d2d;
  --text-secondary: #5a5f7a;
  --text-tertiary: #9498b0;
  --text-inverse: #ffffff;

  --primary: #00b377;
  --primary-hover: #00995e;
  --primary-subtle: rgba(0, 179, 119, 0.10);
  --primary-text: #00b377;

  --accent: #00b377;
  --accent-hover: #00995e;
  --accent-alpha: rgba(0, 179, 119, 0.10);

  --success: #16a34a;
  --success-subtle: rgba(22, 163, 74, 0.08);
  --success-text: #16a34a;

  --danger: #dc2626;
  --danger-subtle: rgba(220, 38, 38, 0.08);
  --danger-text: #dc2626;

  --warning: #d97706;
  --warning-subtle: rgba(217, 119, 6, 0.08);
  --warning-text: #d97706;

  --info: #0891b2;
  --info-subtle: rgba(8, 145, 178, 0.08);
  --info-text: #0891b2;

  --border: rgba(0, 0, 0, 0.08);
  --border-strong: rgba(0, 0, 0, 0.15);

  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);
  --shadow-glow: 0 0 20px rgba(0, 179, 119, 0.1);
}