/* ═══════════════════════════════════════════════════════════════════════════
   BAYLINK DESIGN TOKENS
   Modern Professional Design System - Light Theme
   ═══════════════════════════════════════════════════════════════════════════ */

:root {
  /* ─────────────────────────────────────────────────────────────────────────
     COLOR SYSTEM — Clean Professional Palette
     ───────────────────────────────────────────────────────────────────────── */

  /* Backgrounds - Light, clean, professional */
  --color-bg-void: #ffffff;
  --color-bg-primary: #ffffff;
  --color-bg-secondary: #f9fafb;
  --color-bg-elevated: #ffffff;
  --color-bg-surface: #f3f4f6;
  --color-bg-hover: #e5e7eb;
  --color-bg-dark: #1f2937;
  --color-bg-dark-elevated: #374151;

  /* Accent - Professional Green (like Upwork) */
  --color-accent-primary: #14a800;
  --color-accent-primary-hover: #108a00;
  --color-accent-primary-muted: rgba(20, 168, 0, 0.1);
  --color-accent-primary-glow: rgba(20, 168, 0, 0.2);

  /* Accent Secondary - Professional Blue */
  --color-accent-secondary: #3b82f6;
  --color-accent-secondary-hover: #2563eb;
  --color-accent-secondary-muted: rgba(59, 130, 246, 0.1);

  /* Accent Tertiary - Warm Orange for technician side */
  --color-accent-tertiary: #f97316;
  --color-accent-tertiary-hover: #ea580c;
  --color-accent-tertiary-muted: rgba(249, 115, 22, 0.1);

  /* Text Hierarchy - Dark on light */
  --color-text-primary: #111827;
  --color-text-secondary: #4b5563;
  --color-text-tertiary: #6b7280;
  --color-text-muted: #9ca3af;
  --color-text-accent: var(--color-accent-primary);
  --color-text-inverse: #ffffff;

  /* Borders & Dividers */
  --color-border-subtle: #e5e7eb;
  --color-border-default: #d1d5db;
  --color-border-strong: #9ca3af;
  --color-border-accent: var(--color-accent-primary);

  /* Status Colors */
  --color-success: #22c55e;
  --color-warning: #eab308;
  --color-error: #ef4444;

  /* ─────────────────────────────────────────────────────────────────────────
     TYPOGRAPHY — Clean Professional (Inter like Upwork)
     ───────────────────────────────────────────────────────────────────────── */

  --font-display: 'Inter', system-ui, -apple-system, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

  /* Font Sizes */
  --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: 1.875rem;
  --text-4xl: 2.25rem;
  --text-5xl: 3rem;
  --text-6xl: 3.75rem;
  --text-7xl: 4.5rem;

  /* Font Weights */
  --weight-regular: 400;
  --weight-medium: 500;
  --weight-semibold: 600;
  --weight-bold: 700;
  --weight-extrabold: 800;

  /* Line Heights */
  --leading-none: 1;
  --leading-tight: 1.15;
  --leading-snug: 1.25;
  --leading-normal: 1.5;
  --leading-relaxed: 1.625;

  /* Letter Spacing */
  --tracking-tighter: -0.03em;
  --tracking-tight: -0.015em;
  --tracking-normal: 0;
  --tracking-wide: 0.025em;
  --tracking-wider: 0.05em;
  --tracking-widest: 0.1em;

  /* ─────────────────────────────────────────────────────────────────────────
     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-24: 6rem;
  --space-32: 8rem;

  /* ─────────────────────────────────────────────────────────────────────────
     LAYOUT
     ───────────────────────────────────────────────────────────────────────── */

  --container-xl: 1280px;
  --container-2xl: 1440px;
  --gutter: var(--space-6);

  /* ─────────────────────────────────────────────────────────────────────────
     BORDERS & RADIUS
     ───────────────────────────────────────────────────────────────────────── */

  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-2xl: 24px;
  --radius-full: 9999px;

  /* ─────────────────────────────────────────────────────────────────────────
     SHADOWS
     ───────────────────────────────────────────────────────────────────────── */

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
  --shadow-card: 0 2px 8px rgba(0, 0, 0, 0.08);
  --shadow-card-hover: 0 8px 25px rgba(0, 0, 0, 0.12);

  --glow-accent: 0 0 40px var(--color-accent-primary-glow);

  /* ─────────────────────────────────────────────────────────────────────────
     MOTION
     ───────────────────────────────────────────────────────────────────────── */

  --duration-fast: 150ms;
  --duration-normal: 250ms;
  --duration-slow: 400ms;
  --duration-slower: 600ms;

  --ease-standard: cubic-bezier(0.2, 0, 0, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-spring-soft: cubic-bezier(0.22, 1.2, 0.36, 1);

  /* ─────────────────────────────────────────────────────────────────────────
     Z-INDEX
     ───────────────────────────────────────────────────────────────────────── */

  --z-base: 0;
  --z-elevated: 10;
  --z-fixed: 300;
  --z-max: 9999;
}

@media (prefers-reduced-motion: reduce) {
  :root {
    --duration-fast: 0ms;
    --duration-normal: 0ms;
    --duration-slow: 0ms;
    --duration-slower: 0ms;
  }
}
