/**
 * CSS Variables (Design System)
 * Centralized design tokens for consistent styling across the application
 */

:root {
    /* ========== Colors ========== */
    /* Primary Colors */
    --color-primary: #007bff;
    --color-primary-dark: #0056b3;
    --color-primary-light: #66b3ff;
    
    /* Secondary Colors */
    --color-secondary: #6c757d;
    --color-secondary-dark: #545b62;
    --color-secondary-light: #adb5bd;
    
    /* Success/Info/Danger/Warning */
    --color-success: #198754;
    --color-info: #0dcaf0;
    --color-danger: #dc3545;
    --color-warning: #ffc107;
    
    /* Background Colors */
    --bg-primary: #242424;
    --bg-secondary: #363636;
    --bg-tertiary: #484848;
    --bg-light: #f8f9fa;
    --bg-white: #ffffff;
    --bg-dark: #212529;
    
    /* Text Colors */
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.7);
    --text-muted: rgba(255, 255, 255, 0.5);
    --text-dark: #212529;
    --text-light: #f8f9fa;
    
    /* Border Colors */
    --border-color: #484848;
    --border-color-light: rgba(255, 255, 255, 0.1);
    --border-color-dark: #363636;
    
    /* Link Colors */
    --link-color: #007bff;
    --link-hover: #0056b3;
    
    /* ========== Spacing System (8px base) ========== */
    --spacing-xs: 0.25rem;   /* 4px */
    --spacing-sm: 0.5rem;   /* 8px */
    --spacing-md: 1rem;     /* 16px */
    --spacing-lg: 1.5rem;   /* 24px */
    --spacing-xl: 2rem;     /* 32px */
    --spacing-2xl: 3rem;    /* 48px */
    --spacing-3xl: 4rem;    /* 64px */
    
    /* ========== Typography ========== */
    /* Font Families */
    --font-family-base: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --font-family-heading: var(--font-family-base);
    --font-family-monospace: "Courier New", Courier, monospace;
    
    /* Font Sizes */
    --font-size-xs: 0.75rem;    /* 12px */
    --font-size-sm: 0.875rem;   /* 14px */
    --font-size-base: 1rem;     /* 16px */
    --font-size-lg: 1.125rem;   /* 18px */
    --font-size-xl: 1.25rem;    /* 20px */
    --font-size-2xl: 1.5rem;    /* 24px */
    --font-size-3xl: 1.875rem;  /* 30px */
    --font-size-4xl: 2.25rem;   /* 36px */
    
    /* Font Weights */
    --font-weight-light: 300;
    --font-weight-normal: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;
    
    /* Line Heights */
    --line-height-tight: 1.25;
    --line-height-normal: 1.5;
    --line-height-relaxed: 1.75;
    
    /* ========== Shadows ========== */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-card: 0 0 1rem 0 rgba(0, 0, 0, 0.2);
    --shadow-card-hover: 0 4px 12px rgba(0, 0, 0, 0.3);
    
    /* ========== Borders ========== */
    --border-radius-sm: 0.25rem;   /* 4px */
    --border-radius-md: 0.5rem;    /* 8px */
    --border-radius-lg: 0.75rem;   /* 12px */
    --border-radius-xl: 1rem;      /* 16px */
    --border-radius-full: 9999px;
    
    --border-width-thin: 1px;
    --border-width-medium: 2px;
    --border-width-thick: 3px;
    
    /* ========== Transitions & Animations ========== */
    --transition-fast: 0.15s ease;
    --transition-base: 0.2s ease;
    --transition-slow: 0.3s ease;
    
    /* ========== Z-Index Scale ========== */
    --z-index-dropdown: 1000;
    --z-index-sticky: 1020;
    --z-index-fixed: 1030;
    --z-index-modal-backdrop: 1040;
    --z-index-modal: 1050;
    --z-index-popover: 1060;
    --z-index-tooltip: 1070;
    --z-index-toast: 1080;
    
    /* ========== Card System ========== */
    --card-bg: var(--bg-primary);
    --card-border: var(--border-color);
    --card-border-radius: var(--border-radius-md);
    --card-padding: var(--spacing-md);
    --card-shadow: var(--shadow-card);
    --card-shadow-hover: var(--shadow-card-hover);
    
    /* Card Hierarchy Levels */
    --card-elevation-1: var(--shadow-sm);
    --card-elevation-2: var(--shadow-md);
    --card-elevation-3: var(--shadow-lg);
    --card-elevation-4: var(--shadow-xl);
    
    /* ========== Focus States ========== */
    --focus-ring-width: 3px;
    --focus-ring-color: var(--color-primary);
    --focus-ring-offset: 2px;
    --focus-ring: 0 0 0 var(--focus-ring-width) var(--focus-ring-color);
    
    /* ========== Touch Targets (Accessibility) ========== */
    --touch-target-min: 44px; /* Minimum touch target size for mobile */
}

/* Dark theme is the default */
@media (prefers-color-scheme: light) {
    /* Light theme overrides can be added here if needed */
}

