/* ============================================
   DigiSign Theme - Core Color Variables
   ============================================
   
   This file contains ONLY color definitions.
   Change these values to instantly theme the entire app.
   
   Your Brand Colors: "Target Red"
   - Primary (Target Red): Bold, energetic, trustworthy
   - Secondary (Gray): Modern, clean, sophisticated
   - Accent (Dark Red): Strong, confident
   - Background (White): Clean, spacious, pure
*/

:root {
    /* ==================== PRIMARY COLORS ==================== */
    /* Main brand color - Used for buttons, links, focus states */
    --primary: #CC0000;              /* Target Red - Bold & Energetic */
    --primary-rgb: 204, 0, 0;        /* For rgba() usage */
    --primary-light: #E50000;        /* Hover states */
    --primary-dark: #A00000;         /* Active states, dark backgrounds */
    
    /* ==================== SECONDARY COLORS ==================== */
    /* Accent color - Used for secondary buttons, highlights */
    --secondary: #666666;            /* Modern Gray - Clean & Sophisticated */
    --secondary-rgb: 102, 102, 102;  /* For rgba() usage */
    --secondary-light: #808080;      /* Hover states */
    --secondary-dark: #333333;       /* Active states */
    
    /* ==================== ACCENT COLOR ==================== */
    /* Tertiary accent - Used for CTAs, special highlights */
    --accent: #CC0000;               /* Target Red - Consistent branding */
    --accent-rgb: 204, 0, 0;         /* For rgba() usage */
    --accent-light: #E50000;         /* Hover states */
    --accent-dark: #A00000;          /* Active states */
    
    /* ==================== NEUTRAL COLORS ==================== */
    /* Backgrounds, surfaces, borders, text */
    --background: #FFFFFF;           /* White - Clean & Spacious */
    --surface: #FFFFFF;              /* Card/paper background */
    --surface-hover: #F8F9FA;        /* Hover state for surfaces */
    
    --border: #E0E5EA;               /* Default borders */
    --border-light: #F0F2F5;         /* Subtle borders */
    --border-dark: #CBD2D9;          /* Emphasized borders */
    
    --neutral-100: #F8F9FA;          /* Lightest neutral */
    --neutral-200: #E9ECEF;          /* Light neutral */
    --neutral-300: #DEE2E6;          /* Mid-tone */
    --neutral-400: #ADB5BD;          /* Medium neutral */
    --neutral-500: #6C757D;          /* Dark neutral */
    --neutral-600: #495057;          /* Darker neutral */
    --neutral-700: #343A40;          /* Very dark neutral */
    
    /* ==================== TEXT COLORS ==================== */
    --text-primary: #212529;         /* Main text color */
    --text-secondary: #6C757D;       /* Secondary text, labels */
    --text-disabled: #ADB5BD;        /* Disabled text */
    --text-inverse: #FFFFFF;         /* Text on dark backgrounds */
    
    /* ==================== SEMANTIC COLORS ==================== */
    /* Status and feedback colors */
    --success: #28A745;              /* Success states, confirmations */
    --success-light: #6FD188;        /* Light success background */
    --success-dark: #1E7E34;         /* Dark success */
    
    --error: #DC3545;                /* Errors, destructive actions */
    --error-light: #F1818E;          /* Light error background */
    --error-dark: #BD2130;           /* Dark error */
    
    --warning: #FFC107;              /* Warnings, cautions */
    --warning-light: #FFD659;        /* Light warning background */
    --warning-dark: #E0A800;         /* Dark warning */
    
    --info: #17A2B8;                 /* Information, neutral notices */
    --info-light: #5DBECC;           /* Light info background */
    --info-dark: #117A8B;            /* Dark info */
    
    /* ==================== COMPONENT COLORS ==================== */
    /* Pre-defined colors for common components */
    --button-primary: var(--primary);
    --button-primary-hover: var(--primary-light);
    --button-primary-active: var(--primary-dark);
    
    --button-secondary: var(--secondary);
    --button-secondary-hover: var(--secondary-light);
    
    --link-color: var(--primary);
    --link-hover: var(--primary-light);
    
    --appbar-bg: var(--primary);
    --drawer-bg: var(--primary-dark);
    
    /* ==================== SHADOWS ==================== */
    /* Consistent shadow values using primary color */
    --shadow-sm: 0 2px 4px rgba(var(--primary-rgb), 0.08);
    --shadow-md: 0 4px 12px rgba(var(--primary-rgb), 0.12);
    --shadow-lg: 0 8px 24px rgba(var(--primary-rgb), 0.15);
    --shadow-xl: 0 20px 60px rgba(var(--primary-rgb), 0.3);
    
    /* ==================== TRANSITIONS ==================== */
    --transition-fast: 150ms ease;
    --transition-base: 200ms ease;
    --transition-slow: 300ms ease;
    
    /* ==================== BORDER RADIUS ==================== */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-full: 9999px;
    
    /* ==================== SPACING ==================== */
    --spacing-xs: 4px;
    --spacing-sm: 8px;
    --spacing-md: 16px;
    --spacing-lg: 24px;
    --spacing-xl: 32px;
}

/* ============================================
   DARK THEME (Optional - Ready for Future)
   ============================================
   Uncomment to enable dark mode support
*/

/*
[data-theme="dark"] {
    --primary: #4A90E2;
    --secondary: #6ba5e9;
    --accent: #f9a84b;
    
    --background: #0A1929;
    --surface: #132F4C;
    --surface-hover: #1A4570;
    
    --border: #1A4570;
    --border-light: #132F4C;
    --border-dark: #2E5A8A;
    
    --text-primary: #F8F9FA;
    --text-secondary: #DEE2E6;
    --text-disabled: #6C757D;
    
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.5);
}
*/

/* ============================================
   ACCESSIBILITY & REDUCED MOTION
   ============================================ */

@media (prefers-reduced-motion: reduce) {
    :root {
        --transition-fast: 0ms;
        --transition-base: 0ms;
        --transition-slow: 0ms;
    }
    
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ============================================
   HIGH CONTRAST MODE
   ============================================ */

@media (prefers-contrast: high) {
    :root {
        --border: #000000;
        --text-primary: #000000;
        --text-secondary: #1a1a1a;
    }
}
