/* ============================================
   DigiSign Theme - Core Color Variables
   ============================================
   
   This file contains ONLY color definitions.
   Change these values to instantly theme the entire app.
   
   Your Brand Colors: "The Prep Table"
   - Primary (Deep Blue): Professional, trustworthy, fresh
   - Secondary (Light Gray): Clean, modern, subtle
   - Background (White): Clean, spacious, pure
*/

:root {
    /* ==================== PRIMARY COLORS ==================== */
    /* Main brand color - Used for buttons, links, focus states */
    --primary: #004a6a;              /* Deep Blue - CORRECT BRAND COLOR */
    --primary-rgb: 0, 74, 106;       /* For rgba() usage */
    --primary-light: #006690;         /* Hover states */
    --primary-dark: #003a52;          /* Active states, dark backgrounds */
    
    /* ==================== SECONDARY COLORS ==================== */
    /* Accent color - Used for secondary buttons, highlights */
    --secondary: #A7A9AC;            /* Light Gray - Matching MudBlazor theme */
    --secondary-rgb: 167, 169, 172;  /* For rgba() usage */
    --secondary-light: #c0c2c4;      /* Hover states */
    --secondary-dark: #888a8d;       /* Active states */
    
    /* ==================== ACCENT COLOR ==================== */
    /* Tertiary accent - Used for CTAs, special highlights */
    --accent: #004a6a;               /* Deep Blue - Consistent branding */
    --accent-rgb: 0, 74, 106;        /* For rgba() usage */
    --accent-light: #006690;         /* Hover states */
    --accent-dark: #003a52;          /* 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;
    
    /* ==================== TYPOGRAPHY ==================== */
    /* Base font settings */
    --font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --font-weight-normal: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    
    /* 
     * FONT SIZES - EASY TO ADJUST
     * Change these variables to adjust text sizes across the entire app
     * All sizes are in rem units (relative to root font-size)
     */
    --font-size-xxs: 0.75rem;   /* 12px - Very small text (captions, links) */
    --font-size-xs: 0.875rem;   /* 14px - Increased from 12px for better readability */
    --font-size-sm: 1rem;       /* 16px - Increased from 14px for better readability */
    --font-size-base: 1.125rem; /* 18px - BODY TEXT: Increased from 16px for better readability */
    --font-size-lg: 1.25rem;    /* 20px */
    --font-size-xl: 1.5rem;     /* 24px */
    --font-size-2xl: 1.75rem;   /* 28px */
    --font-size-3xl: 2rem;      /* 32px */
    --font-size-4xl: 2.5rem;    /* 40px */
    
    /* Line heights */
    --line-height-tight: 1.2;
    --line-height-snug: 1.3;
    --line-height-normal: 1.5;
    --line-height-relaxed: 1.6;
    
    /* Letter spacing */
    --letter-spacing-tight: -0.02em;
    --letter-spacing-normal: 0;
    --letter-spacing-wide: 0.02em;
    --letter-spacing-wider: 0.08em;
}

/* ============================================
   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;
    }
}
