/* Design System Variables - Professional DVP Automation Brand Colors */
/* Inspired by BatteryManager.de and Evanax.io aesthetic */

:root {
  /* Brand Colors - Exact specification */
  --brand-volt-navy: #0B1C33;    /* Primary brand color */
  --brand-pulse-orange: #FF5C00; /* Accent brand color */
  --brand-rce-white: #FFFFFF;    /* Clean white */
  
  /* Primary Colors - Built on Volt Navy */
  --color-primary: #0B1C33;      /* Volt Navy - headers, navigation */
  --color-primary-light: #1E2A3F; /* Lighter navy for hover states */
  --color-primary-dark: #051120;  /* Darker navy for active states */
  --color-primary-alpha: rgba(11, 28, 51, 0.9); /* Semi-transparent navy */
  
  /* Secondary Colors - Professional supporting palette */
  --color-secondary: #4A5D73;     /* Professional blue-gray */
  --color-secondary-light: #6B7F94; /* Lighter blue-gray */
  --color-secondary-dark: #2F3E4F; /* Darker blue-gray */
  
  /* Accent Colors - Built on Pulse Orange */
  --color-accent: #FF5C00;        /* Pulse Orange - CTAs, highlights */
  --color-accent-light: #FF7A2B;  /* Lighter orange for hover */
  --color-accent-dark: #E64F00;   /* Darker orange for active */
  --color-accent-alpha: rgba(255, 92, 0, 0.1); /* Subtle orange tint */
  
  /* Surface Colors - Professional light theme */
  --color-background: #FFFFFF;    /* RCE White background */
  --color-surface: #F8F9FB;      /* Very light gray for cards */
  --color-surface-light: #FFFFFF; /* Pure white for elevated cards */
  --color-surface-dark: #E8EBF0;  /* Subtle gray for sections */
  --color-border: #E1E5EA;       /* Light borders */
  --color-border-light: #F1F3F6; /* Very light borders */
  
  /* Text Colors - Professional hierarchy */
  --color-text-primary: #0B1C33;  /* Volt Navy for primary text */
  --color-text-secondary: #4A5D73; /* Blue-gray for secondary text */
  --color-text-muted: #6B7F94;   /* Lighter gray for muted text */
  --color-text-inverse: #FFFFFF; /* White text for dark backgrounds */
  
  /* Semantic Colors - Brand-aligned */
  --color-success: #16A34A;      /* Professional green */
  --color-success-light: #22C55E;
  --color-success-alpha: rgba(22, 163, 74, 0.1);
  --color-warning: #F59E0B;      /* Amber warning */
  --color-warning-light: #FCD34D;
  --color-warning-alpha: rgba(245, 158, 11, 0.1);
  --color-error: #DC2626;        /* Professional red */
  --color-error-light: #EF4444;
  --color-error-alpha: rgba(220, 38, 38, 0.1);
  --color-info: #0EA5E9;         /* Sky blue */
  --color-info-light: #38BDF8;
  --color-info-alpha: rgba(14, 165, 233, 0.1);
  
  /* State Colors - Brand-aligned interactions */
  --color-hover: rgba(11, 28, 51, 0.05);     /* Subtle navy hover */
  --color-hover-strong: rgba(11, 28, 51, 0.1); /* Stronger hover effect */
  --color-active: rgba(11, 28, 51, 0.15);    /* Navy active state */
  --color-focus: rgba(255, 92, 0, 0.2);      /* Orange focus ring */
  --color-disabled: #9CA3AF;                 /* Professional gray */
  --color-disabled-background: #F3F4F6;      /* Disabled background */
  
  /* Typography */
  --font-family-primary: 'Inter', 'Helvetica Neue', 'Arial', sans-serif;
  --font-family-secondary: 'Raleway', sans-serif;
  --font-family-mono: 'SF Mono', 'Monaco', 'Inconsolata', monospace;
  
  /* Font Sizes */
  --font-size-xs: 0.75rem;       /* 12px */
  --font-size-sm: 0.875rem;      /* 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-size-5xl: 3rem;         /* 48px */
  --font-size-6xl: 3.75rem;      /* 60px */
  
  /* Font Weights */
  --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 Heights */
  --line-height-tight: 1.25;
  --line-height-snug: 1.375;
  --line-height-normal: 1.5;
  --line-height-relaxed: 1.625;
  --line-height-loose: 2;
  
  /* Spacing Scale (4px base) */
  --space-px: 1px;
  --space-0: 0;
  --space-1: 0.25rem;    /* 4px */
  --space-2: 0.5rem;     /* 8px */
  --space-3: 0.75rem;    /* 12px */
  --space-4: 1rem;       /* 16px */
  --space-5: 1.25rem;    /* 20px */
  --space-6: 1.5rem;     /* 24px */
  --space-8: 2rem;       /* 32px */
  --space-10: 2.5rem;    /* 40px */
  --space-12: 3rem;      /* 48px */
  --space-16: 4rem;      /* 64px */
  --space-20: 5rem;      /* 80px */
  --space-24: 6rem;      /* 96px */
  --space-32: 8rem;      /* 128px */
  
  /* Border Radius */
  --radius-none: 0;
  --radius-sm: 0.125rem;  /* 2px */
  --radius-base: 0.25rem; /* 4px */
  --radius-md: 0.375rem;  /* 6px */
  --radius-lg: 0.5rem;    /* 8px */
  --radius-xl: 0.75rem;   /* 12px */
  --radius-2xl: 1rem;     /* 16px */
  --radius-full: 9999px;
  
  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-base: 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-glow: 0 0 0 3px var(--color-focus);
  
  /* Layout */
  --container-sm: 640px;
  --container-md: 768px;
  --container-lg: 1024px;
  --container-xl: 1280px;
  --container-2xl: 1536px;
  
  /* Header/Navigation */
  --header-height: 140px;
  --sidebar-width: 280px;
  --sidebar-collapsed-width: 64px;
  
  /* 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;
  --z-header: 9999;
  
  /* Transitions */
  --transition-fast: 150ms ease-in-out;
  --transition-base: 250ms ease-in-out;
  --transition-slow: 350ms ease-in-out;
  
  /* Breakpoints for media queries */
  --breakpoint-sm: 640px;
  --breakpoint-md: 768px;
  --breakpoint-lg: 1024px;
  --breakpoint-xl: 1280px;
  --breakpoint-2xl: 1536px;

    /* table theme tokens (inherit your palette) */
  --tbl-panel:            var(--volt-navy, #0B1C33);
  --tbl-panel-light:      var(--navy-700, #1F2E3F);
  --tbl-header:           #1b3350;                 /* sticky header bg */
  --tbl-stroke:           #24364b;                 /* borders */
  --tbl-row:              #0f2640;                 /* zebra odd */
  --tbl-row-alt:          #0e223a;                 /* zebra even */
  --tbl-row-hover:        #17314e;                 /* hover */
  --tbl-text:             #FFFFFF;                 /* body text */
  --tbl-text-weak:        #FFFFFF;                 /* header text (white as requested) */
  --tbl-orange:           var(--pulse-orange, #FF5C00);
  --tbl-orange-soft:      #ffb580;                 /* selected wash */
  --tbl-orange-soft-2:    #ffa04d;                 /* selected wash alt */
}

/* Dark theme color adjustments for better contrast */
@media (prefers-color-scheme: dark) {
  :root {
    --color-border: #404040;
    --color-surface: #1e1e1e;
    --color-text-secondary: #d1d5db;
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  :root {
    --color-border: #666666;
    --color-text-secondary: #ffffff;
    --color-text-muted: #cccccc;
  }
}