/**
 * NaKarnataka Design System Tokens — Master Civic & Regional Palette
 * Calibrated specifically with the official NaKarnataka Brand Identity:
 *   - Dark Green: #06632f (Deep Forest Green of Karnataka map & text)
 *   - River/Sky Blue: #0084c7 (Vibrant Karavali & .com Accent)
 *   - Light Green: #eaf6ef (Pastoral Sage for Surface & Pills)
 *   - Obsidian Slate: #0f172a (High-Contrast Crisp Typography)
 *   - Pure White Canvas: #ffffff / Clean Neutral Background: #f6f9f7
 */
:root {
  /* 1. Brand Primary Green (Deep Forest Green of Karnataka) */
  --color-darkgreen: #065f46;
  --color-darkgreen-deep: #064e3b;
  --color-darkgreen-hover: #047857;
  --color-brand-green: #065f46;
  --color-brand-green-dark: #064e3b;
  --color-brand-green-light: #047857;
  --color-brand-green-surface: #f0fdf4;

  /* 2. Brand Light Green (Pastoral Sage for Highlights & Selected States) */
  --color-lightgreen: #f0fdf4;
  --color-lightgreen-border: #bbf7d0;
  --color-lightgreen-text: #065f46;
  --color-lightgreen-hover: #dcfce7;

  /* 3. Soft Sky & River Blue (Secondary Information, Codes & Badges) */
  --color-blue: #0284c7;
  --color-blue-deep: #0369a1;
  --color-blue-hover: #38bdf8;
  --color-blue-surface: #f0f9ff;
  --color-blue-border: #bae6fd;
  --color-blue-text: #0369a1;

  /* 4. Slate / Dark Charcoal Inks (Crisp, High-Contrast Typography) */
  --color-black: #0f172a;
  --color-charcoal: #1e293b;
  --color-brand-navy: #1e293b;
  --color-brand-navy-dark: #0f172a;
  --color-brand-navy-light: #334155;
  --color-brand-navy-surface: #f8fafc;

  /* 5. Restrained Status & Warm Accents (Subtle, Muted) */
  --color-gold: #b45309;
  --color-gold-dark: #92400e;
  --color-gold-light: #d97706;
  --color-gold-surface: #fffbeb;
  --color-gold-border: #fde68a;
  --color-brand-gold: #b45309;
  --color-brand-gold-dark: #92400e;
  --color-brand-gold-light: #d97706;
  --color-brand-gold-surface: #fffbeb;

  /* 6. Clean Semantic Accents */
  --color-rose: #be123c;
  --color-rose-dark: #9f1239;
  --color-rose-surface: #fff1f2;
  --color-rose-border: #fecdd3;
  --color-rose-text: #9f1239;

  --color-teal: #0f766e;
  --color-teal-dark: #115e59;
  --color-teal-surface: #f0fdfa;
  --color-teal-border: #99f6e4;
  --color-teal-text: #115e59;

  /* Canvas & Neutral Backgrounds (Clean, Trustworthy, Modern) */
  --color-bg-page: #f8fafc;
  --color-bg-surface: #ffffff;
  --color-bg-subtle: #f1f5f9;
  --color-bg-muted: #e2e8f0;
  --color-bg-ink: #0f172a;

  /* Typography Colors */
  --color-text-primary: #0f172a;
  --color-text-secondary: #334155;
  --color-text-muted: #64748b;
  --color-text-light: #94a3b8;
  --color-text-inverse: #ffffff;
  --color-text-kannada: #065f46;

  /* Borders & Dividers */
  --color-border: #e2e8f0;
  --color-border-subtle: #f1f5f9;
  --color-border-hover: #cbd5e1;
  --color-border-brand: #065f46;
  --color-border-gold: #fde68a;
  --color-border-blue: #bae6fd;

  /* Status Indicators */
  --color-status-success: #065f46;
  --color-status-success-bg: #f0fdf4;
  --color-status-warning: #b45309;
  --color-status-warning-bg: #fffbeb;
  --color-status-info: #0284c7;
  --color-status-info-bg: #f0f9ff;
  --color-status-danger: #dc2626;
  --color-status-danger-bg: #fef2f2;
  --color-status-danger: #dc2626;
  --color-status-danger-bg: #fef2f2;

  /* Backwards-compatibility aliases */
  --color-primary: var(--color-brand-green);
  --color-primary-dark: var(--color-brand-green-dark);
  --color-primary-light: var(--color-brand-green-light);
  --color-primary-surface: var(--color-brand-green-surface);
  --color-secondary: var(--color-blue);
  --color-secondary-dark: var(--color-blue-deep);
  --color-secondary-light: var(--color-blue-surface);
  --color-accent: var(--color-gold);
  --color-accent-dark: var(--color-gold-dark);
  --color-accent-light: var(--color-gold-surface);
  --color-bg-body: var(--color-bg-page);
  --color-text-main: var(--color-text-primary);

  /* Typography */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-kannada: 'Noto Sans Kannada', 'Tunga', 'Kedage', sans-serif;
  --font-display: 'Inter', var(--font-sans);

  --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: 2.75rem;
  --text-kn-lg: 1.2rem;
  --text-kn-xl: 1.45rem;

  --leading-tight: 1.2;
  --leading-snug: 1.35;
  --leading-normal: 1.6;
  --leading-relaxed: 1.75;

  /* Layout */
  --max-width: 1240px;
  --max-width-narrow: 960px;
  --max-width-content: 840px;

  /* 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;

  /* Radii */
  --radius-xs: 3px;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-xl: 20px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-xs: 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.07), 0 1px 2px rgba(15, 23, 42, 0.03);
  --shadow-md: 0 6px 16px -4px rgba(15, 23, 42, 0.08), 0 2px 6px -1px rgba(15, 23, 42, 0.04);
  --shadow-lg: 0 12px 28px -6px rgba(15, 23, 42, 0.10), 0 4px 10px -2px rgba(15, 23, 42, 0.04);
  --shadow-brand: 0 10px 25px -5px rgba(6, 99, 47, 0.18), 0 3px 8px -2px rgba(6, 99, 47, 0.08);
  --shadow-blue: 0 10px 25px -5px rgba(0, 132, 199, 0.18), 0 3px 8px -2px rgba(0, 132, 199, 0.08);

  /* Focus States */
  --focus-ring: 0 0 0 3px rgba(6, 99, 47, 0.28);
  --focus-outline: 2px solid var(--color-darkgreen);
  --focus-offset: 2px;

  /* Transitions */
  --transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
