/**
 * Unified Theme Variables for Logistics System
 * Version: 2.0
 * Updated: 2024
 * 
 * This file contains all color variables used across the application
 * Use these variables consistently for better maintainability
 */

:root {
    /* ===== Primary Colors - Company Brand Identity ===== */
    /* Based on company logo colors */
    --primary-color: #E03032;           /* Primary Red from logo */
    --primary-color-rgb: 224, 48, 50;
    --primary-light: #FF4A4C;           /* Lighter Red */
    --primary-lighter: #FF6B6D;         /* Lightest Red */
    --primary-dark: #C82628;            /* Darker Red */
    --primary-darker: #A01D1F;          /* Darkest Red */
    
    /* Secondary Colors - Blue from logo */
    --secondary-blue: #0078BF;          /* Dark Blue from logo */
    --secondary-blue-light: #00A0E3;    /* Light Blue from logo */
    --secondary-blue-lighter: #33B4E8;  /* Lighter Blue */
    --secondary-blue-dark: #005A8F;     /* Darker Blue */
    
    /* ===== Secondary Colors ===== */
    --secondary-color: #2d2d2d;
    --secondary-light: #4a4a4a;
    --secondary-dark: #1a1a1a;
    
    /* ===== Neutral Colors ===== */
    --white: #ffffff;
    --black: #000000;
    --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;
    
    /* ===== Text Colors ===== */
    --text-primary: #1a1a1a;
    --text-secondary: #555555;
    --text-tertiary: #666666;
    --text-light: #999999;
    --text-lighter: #cccccc;
    --text-white: #ffffff;
    
    /* ===== Background Colors ===== */
    --bg-primary: #ffffff;
    --bg-secondary: #f8f9fa;
    --bg-tertiary: #f3f4f6;
    --bg-dark: #1a1a1a;
    --bg-darker: #0d0d0d;
    
    /* ===== Status Colors ===== */
    --success: #10b981;
    --warning: #f59e0b;
    --error: #ef4444;
    --info: #3b82f6;
    
    /* ===== Shadows ===== */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    --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-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    --shadow-primary: 0 10px 30px rgba(224, 48, 50, 0.3);
    --shadow-primary-lg: 0 20px 50px rgba(224, 48, 50, 0.4);
    --shadow-blue: 0 10px 30px rgba(0, 120, 191, 0.3);
    --shadow-blue-lg: 0 20px 50px rgba(0, 120, 191, 0.4);
    
    /* ===== Transitions ===== */
    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition: 300ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 500ms cubic-bezier(0.4, 0, 0.2, 1);
    
    /* ===== Border Radius ===== */
    --radius-sm: 0.375rem;
    --radius: 0.5rem;
    --radius-md: 0.75rem;
    --radius-lg: 1rem;
    --radius-xl: 1.5rem;
    --radius-2xl: 2rem;
    --radius-full: 9999px;
    
    /* ===== Spacing ===== */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2rem;
    --space-xl: 3rem;
    --space-2xl: 4rem;
    
    /* ===== Typography ===== */
    --font-primary: 'Cairo', 'Libre Franklin', 'Martel Sans', sans-serif;
    --font-secondary: 'Martel Sans', sans-serif;
    
    /* ===== Z-Index Scale ===== */
    --z-dropdown: 1000;
    --z-sticky: 1020;
    --z-fixed: 1030;
    --z-modal-backdrop: 1040;
    --z-modal: 1050;
    --z-popover: 1060;
    --z-tooltip: 1070;
}

/* ===== Dark Mode Override (if needed) ===== */
[data-theme="dark"] {
    --bg-primary: #1a1a1a;
    --bg-secondary: #2d2d2d;
    --bg-tertiary: #3a3a3a;
    --text-primary: #ffffff;
    --text-secondary: #e0e0e0;
    --text-tertiary: #cccccc;
}

/* ===== Helper Classes ===== */
.text-primary-color { color: var(--primary-color) !important; }
.text-primary-light { color: var(--primary-light) !important; }
.text-primary-dark { color: var(--primary-dark) !important; }

.bg-primary-color { background-color: var(--primary-color) !important; }
.bg-primary-light { background-color: var(--primary-light) !important; }
.bg-primary-dark { background-color: var(--primary-dark) !important; }

.border-primary-color { border-color: var(--primary-color) !important; }
.border-primary-light { border-color: var(--primary-light) !important; }

/* ===== Gradient Classes ===== */
.gradient-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
}

.gradient-red-blue {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-blue) 100%);
}

.gradient-blue {
    background: linear-gradient(135deg, var(--secondary-blue) 0%, var(--secondary-blue-light) 100%);
}

.gradient-primary-to-dark {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-dark) 100%);
}

.gradient-text-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.gradient-text-red-blue {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-blue) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

