/* ========================================
   THEME CONFIGURATION FILE
   ========================================
   
   This file contains all the customizable theme variables.
   Change these values to easily customize the appearance
   without touching the main CSS files.
   
   ======================================== */

:root {
  /* ========================================
     BRAND COLORS - Change these for your brand
     ======================================== */
  
  /* Primary Brand Color */
  --primary-color: #2563eb;
  --primary-dark: #1d4ed8;
  --primary-light: #3b82f6;
  
  /* Secondary Brand Color */
  --secondary-color: #7c3aed;
  --secondary-dark: #6d28d9;
  --secondary-light: #8b5cf6;
  
  /* Accent Colors */
  --accent-color: #10b981;
  --accent-dark: #059669;
  --accent-light: #34d399;
  
  /* Status Colors */
  --success-color: #10b981;
  --warning-color: #f59e0b;
  --danger-color: #ef4444;
  --info-color: #06b6d4;
  
  /* ========================================
     BACKGROUND COLORS
     ======================================== */
  
  --bg-primary: #f8fafc;
  --bg-secondary: #ffffff;
  --bg-tertiary: #f1f5f9;
  --bg-overlay: rgba(255, 255, 255, 0.98);
  --bg-gradient: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%);
  --bg-gradient-hover: linear-gradient(135deg, #1d4ed8 0%, #6d28d9 100%);
  
  /* Additional background colors */
  --bg-card: #ffffff;
  --bg-card-hover: #f8fafc;
  --bg-input: #ffffff;
  --bg-button-primary: var(--primary-color);
  --bg-button-secondary: var(--secondary-color);
  --bg-button-success: var(--accent-color);
  
  /* Table and hover colors */
  --table-row-hover: #f8fafc;
  --table-header-bg: var(--bg-gradient);
  --table-border: var(--border-light);
  
  /* ========================================
     TEXT COLORS
     ======================================== */
  
  --text-primary: #1e293b;
  --text-secondary: #475569;
  --text-light: #ffffff;
  --text-muted: #64748b;
  --text-inverse: #ffffff;
  
  /* ========================================
     BORDER COLORS
     ======================================== */
  
  --border-light: #e2e8f0;
  --border-medium: #cbd5e1;
  --border-dark: #94a3b8;
  --border-focus: var(--primary-color);
  
  /* ========================================
     SHADOW SYSTEM
     ======================================== */
  
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 40px rgba(0, 0, 0, 0.15);
  --shadow-focus: 0 0 0 3px rgba(102, 126, 234, 0.1);
  
  /* ========================================
     BORDER RADIUS
     ======================================== */
  
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-2xl: 24px;
  
  /* ========================================
     SPACING SYSTEM
     ======================================== */
  
  --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-family-base: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --font-family-heading: var(--font-family-base);
  --font-family-mono: 'SF Mono', Monaco, 'Cascadia Code', 'Roboto Mono', Consolas, 'Courier New', monospace;
  
  --font-size-xs: 0.75rem;    /* 12px */
  --font-size-sm: 0.85rem;    /* 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-weight-light: 300;
  --font-weight-normal: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;
  --font-weight-extrabold: 800;
  
  --line-height-tight: 1.25;
  --line-height-snug: 1.375;
  --line-height-normal: 1.5;
  --line-height-relaxed: 1.625;
  --line-height-loose: 2;
  
  /* ========================================
     TRANSITIONS & ANIMATIONS
     ======================================== */
  
  --transition-fast: 0.15s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.5s ease;
  --transition-bounce: cubic-bezier(0.68, -0.55, 0.265, 1.55);
  
  --animation-duration-fast: 0.15s;
  --animation-duration-normal: 0.3s;
  --animation-duration-slow: 0.5s;
  
  /* ========================================
     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;
  --z-toast: 1080;
  
  /* ========================================
     LAYOUT CONSTRAINTS
     ======================================== */
  
  --container-max-width: 1400px;
  --container-padding: var(--spacing-lg);
  --sidebar-width: 250px;
  --header-height: 60px;
  
  /* ========================================
     COMPONENT SPECIFIC
     ======================================== */
  
  /* Button Variants */
  --btn-border-radius: var(--radius-md);
  --btn-padding-x: var(--spacing-lg);
  --btn-padding-y: var(--spacing-md);
  --btn-font-weight: var(--font-weight-semibold);
  --btn-transition: all var(--transition-normal);
  
  /* Input Variants */
  --input-border-radius: var(--radius-md);
  --input-padding-x: var(--spacing-md);
  --input-padding-y: var(--spacing-sm);
  --input-border-width: 2px;
  --input-focus-ring: 0 0 0 3px rgba(102, 126, 234, 0.1);
  
  /* Card Variants */
  --card-border-radius: var(--radius-lg);
  --card-padding: var(--spacing-lg);
  --card-shadow: var(--shadow-md);
  --card-border: 1px solid var(--border-light);
  
  /* Table Variants */
  --table-border-radius: var(--radius-lg);
  --table-header-bg: var(--bg-gradient);
  --table-row-hover: rgba(102, 126, 234, 0.05);
  --table-border: 1px solid var(--border-light);
}

/* ========================================
   DARK THEME VARIABLES
   ======================================== */

@media (prefers-color-scheme: dark) {
  :root {
    /* Dark theme overrides */
    --bg-primary: #1a1a1a;
    --bg-secondary: #2d2d2d;
    --bg-tertiary: #404040;
    --bg-overlay: rgba(45, 45, 45, 0.95);
    
    --text-primary: #ffffff;
    --text-secondary: #b0b0b0;
    --text-muted: #808080;
    
    --border-light: #404040;
    --border-medium: #505050;
    --border-dark: #606060;
    
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.3);
    --shadow-xl: 0 20px 40px rgba(0, 0, 0, 0.4);
  }
}

/* ========================================
   HIGH CONTRAST MODE
   ======================================== */

@media (prefers-contrast: high) {
  :root {
    --border-light: #000000;
    --border-medium: #000000;
    --border-dark: #000000;
    
    --shadow-sm: none;
    --shadow-md: none;
    --shadow-lg: none;
    --shadow-xl: none;
    
    --bg-overlay: #ffffff;
  }
}

/* ========================================
   REDUCED MOTION
   ======================================== */

@media (prefers-reduced-motion: reduce) {
  :root {
    --transition-fast: 0s;
    --transition-normal: 0s;
    --transition-slow: 0s;
    
    --animation-duration-fast: 0s;
    --animation-duration-normal: 0s;
    --animation-duration-slow: 0s;
  }
  
  * {
    animation-duration: 0s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0s !important;
  }
}
