/**
 * CNPA Design Tokens
 *
 * CSS custom properties for consistent design across the app.
 * Mobile-first approach with Inter font family.
 */

:root {
   /* ========================================
       Color Palette
       ======================================== */

   /* Primary Colors */
   --primary: #10B981;
   --primary-light: #34D399;
   --primary-dark: #059669;
   --primary-hover: #6EE7B7;
   --primary-rgb: 16, 185, 129;

   /* Secondary Colors */
   --secondary: #7F3BA0;
   --secondary-light: #9B4EC0;
   --secondary-dark: #652F80;
   --secondary-hover: #702C90;

   /* Neutral Colors */
   --gray-50: #f9fafb;
   --gray-100: #f3f4f6;
   --gray-200: #e5e7eb;
   --gray-300: #d1d5db;
   --gray-400: #9ca3af;
   --gray-500: #6b7280;
   --gray-600: #4b5563;
   --gray-700: #374151;
   --gray-800: #1f2937;
   --gray-900: #111827;

   /* Semantic Colors */
   --success: #10b981;
   --success-light: #d1fae5;
   --success-dark: #065F46;
   --warning: #F59E0B;
   --warning-light: #FEF3C7;
   --warning-dark: #D97706;
   --error: #EF4444;
   --error-light: #FEE2E2;
   --error-dark: #DC2626;
   --info: #3b82f6;
   --info-light: #dbeafe;

   /* Background & Surface */
   --bg-body: #f5f5f5;
   --bg-surface: #ffffff;
   --bg-elevated: #ffffff;

   /* Text Colors */
   --text-primary: #2f2f2f;
   --text-secondary: #6b7280;
   --text-muted: #9ca3af;
   --text-inverse: #ffffff;

   /* ========================================
       Typography
       ======================================== */

   --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
   --font-family-mono: 'SF Mono', Monaco, Consolas, monospace;

   /* Font Sizes (Mobile-first) */
   --text-xs: 0.75rem;
   /* 12px */
   --text-sm: 0.875rem;
   /* 14px */
   --text-base: 1rem;
   /* 16px */
   --text-lg: 1.125rem;
   /* 18px */
   --text-xl: 1.25rem;
   /* 20px */
   --text-2xl: 1.5rem;
   /* 24px */
   --text-3xl: 1.875rem;
   /* 30px */
   --text-4xl: 2.25rem;
   /* 36px */

   /* Font Weights */
   --font-light: 300;
   --font-normal: 400;
   --font-medium: 500;
   --font-semibold: 600;
   --font-bold: 700;

   /* Line Heights */
   --leading-tight: 1.25;
   --leading-normal: 1.5;
   --leading-relaxed: 1.625;

   /* ========================================
       Spacing
       ======================================== */

   --space-1: 0.25rem;
   /* 4px */
   --space-2: 0.5rem;
   /* 8px */
   --space-3: 0.75rem;
   /* 12px */
   --space-4: 1rem;
   /* 16px */
   --space-5: 1.25rem;
   /* 20px */
   --space-6: 1.5rem;
   /* 24px */
   --space-8: 2rem;
   /* 32px */
   --space-10: 2.5rem;
   /* 40px */
   --space-12: 3rem;
   /* 48px */
   --space-16: 4rem;
   /* 64px */

   /* ========================================
       Layout
       ======================================== */

   --container-sm: 640px;
   --container-md: 768px;
   --container-lg: 1024px;
   --container-xl: 1280px;

   /* Border Radius */
   --radius-sm: 4px;
   --radius-md: 8px;
   --radius-lg: 12px;
   --radius-xl: 16px;
   --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);

   /* ========================================
       Transitions
       ======================================== */

   --transition-fast: 150ms ease;
   --transition-normal: 200ms ease;
   --transition-slow: 300ms ease;
   --easing: cubic-bezier(0.165, 0.84, 0.44, 1);

   /* ========================================
       Z-Index Scale
       ======================================== */

   --z-dropdown: 100;
   --z-sticky: 200;
   --z-modal: 300;
   --z-tooltip: 400;
}

/* ========================================
   Dark Mode (Future)
   ======================================== */

@media (prefers-color-scheme: dark) {
   :root {
      /* Override for dark mode when implemented */
   }
}