/* public/assets/ui/framework/00_tokens.css
   KomodUI Tokens v0.1
   Single source of truth for design variables.
*/

:root {
  /* =========================
     Brand / semantic colors
     ========================= */
  --color-primary: #4F46E5;
  --color-primary-dark: #4338CA;
  --color-primary-soft: #EEF2FF;

  --color-accent: #F59E0B;
  --color-accent-hover: #D97706;

  --color-danger: #EF4444;
  --color-success: #10B981;
  --color-warning: #F59E0B;
  --color-info: #3B82F6;

  /* =========================
     Text / surfaces
     ========================= */
  --color-text-main: #1F2937;
  --color-text-heading: #111827;
  --color-text-muted: #6B7280;

  --color-bg-body: #F9FAFB;
  --color-bg-white: #FFFFFF;
  --color-border: #E5E7EB;

  /* =========================
     Typography
     ========================= */
  --font-sans: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  --text-xs: 0.75rem;   /* 12 */
  --text-sm: 0.875rem;  /* 14 */
  --text-md: 1rem;      /* 16 */
  --text-lg: 1.125rem;  /* 18 */
  --text-xl: 1.25rem;   /* 20 */

  --font-weight-regular: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;
  --font-weight-black: 800;

  --line-height-tight: 1.15;
  --line-height-normal: 1.5;
  --line-height-relaxed: 1.6;

  /* Headings */
  --h1: 2.0rem;
  --h2: 1.6rem;
  --h3: 1.35rem;
  --h4: 1.15rem;

  /* =========================
     Spacing scale (4/8 system)
     ========================= */
  --space-0: 0;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-7: 32px;
  --space-8: 40px;
  --space-9: 48px;
  --space-10: 64px;

  /* =========================
     Radii
     ========================= */
  --radius-xs: 6px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-pill: 999px;

  /* =========================
     Shadows
     ========================= */
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.06);
  --shadow-md: 0 8px 18px rgba(0,0,0,0.10);
  --shadow-lg: 0 16px 40px rgba(0,0,0,0.14);

  /* =========================
     Layout
     ========================= */
  --container-width: 1440px;
  --container-pad: 24px;
  --header-height: 80px;

  /* Breakpoints (documentation use; in CSS we use raw values) */
  --bp-sm: 576px;
  --bp-md: 768px;
  --bp-lg: 992px;
  --bp-xl: 1200px;

  /* =========================
     Z-index layers
     ========================= */
  --z-base: 0;
  --z-header: 5100;
  --z-overlay: 6000;
  --z-modal: 7000;
  --z-toast: 8000;

  /* =========================
     Motion
     ========================= */
  --dur-1: 120ms;
  --dur-2: 200ms;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --transition: all var(--dur-2) var(--ease);

  /* Focus */
  --focus-ring: 0 0 0 3px rgba(79, 70, 229, 0.18);
}

@media (min-width: 1600px) {
  :root { --container-width: 1600px; }
}

@media (max-width: 576px) {
  :root {
    --container-pad: 16px;
    --header-height: 70px;
  }
} 