/* Load order 1/5 — design tokens (must load first). */

/* ============================================================================
   DESIGN TOKENS - CSS Custom Properties
   ============================================================================ */

:root {
    /* Colors - Primary */
    --color-primary: #007bff;
    --color-primary-hover: #0056b3;
    --color-primary-active: #004085;
    --color-primary-turkish: #C8102E;
    --color-primary-turkish-hover: #A00D25;
    --color-primary-turkish-active: #8A0A1A;
    
    /* Colors - Neutral */
    --color-white: #ffffff;
    --color-gray-50: #fafafa;
    --color-gray-100: #f8f9fa;
    --color-gray-200: #e9ecef;
    --color-gray-300: #dee2e6;
    --color-gray-400: #ced4da;
    --color-gray-500: #adb5bd;
    --color-gray-600: #6c757d;
    --color-gray-700: #495057;
    --color-gray-800: #343a40;
    --color-gray-900: #212529;
    --color-black: #000000;
    
    /* Colors - Semantic */
    --color-success: #28a745;
    --color-success-hover: #218838;
    --color-warning: #ffc107;
    --color-warning-hover: #e0a800;
    --color-error: #dc3545;
    --color-error-hover: #c82333;
    --color-info: #17a2b8;
    --color-info-hover: #138496;
    
    /* Colors - Backgrounds */
    --bg-primary: #ffffff;
    --bg-secondary: #f8f9fa;
    --bg-tertiary: #f1f5ff;
    --bg-hover: #e7f3ff;
    --bg-active: #cfe0ff;
    
    /* Colors - Text */
    --text-primary: #333333;
    --text-secondary: #666666;
    --text-tertiary: #999999;
    --text-disabled: #7a848f;
    --text-inverse: #ffffff;
    
    /* Colors - Borders */
    --border-color-light: #e0e0e0;
    --border-color-medium: #ddd;
    --border-color-dark: #ccc;
    --border-color-focus: #007bff;
    
    /* Spacing Scale (4px base unit) */
    --spacing-xs: 4px;
    --spacing-sm: 8px;
    --spacing-md: 16px;
    --spacing-lg: 24px;
    --spacing-xl: 32px;
    --spacing-2xl: 40px;
    --spacing-3xl: 48px;
    
    /* Typography - Font Sizes */
    --font-size-xs: 12px;
    --font-size-sm: 14px;
    --font-size-base: 16px;
    --font-size-lg: 18px;
    --font-size-xl: 20px;
    --font-size-2xl: 24px;
    --font-size-3xl: 32px;
    
    /* Typography - Font Weights */
    --font-weight-normal: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;
    
    /* Typography - Line Heights */
    --line-height-tight: 1.2;
    --line-height-normal: 1.5;
    --line-height-relaxed: 1.6;
    --line-height-loose: 1.8;
    
    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 6px;
    --radius-lg: 8px;
    --radius-xl: 12px;
    --radius-full: 9999px;
    
    /* Shadows - Elevation System */
    --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.03);
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.15);
    
    /* Transitions */
    --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-token-popup: 10000;

    /* Fixed main-view rail (left dock) */
    --main-view-rail-width: 12.5rem;
}
