:root {
    /* ============================================
       CAPOBIZ PALETTE — BLUE
       #2755C2  royal blue  -> main (header, buttons)
       #5B94F5  sky blue    -> secondary (accents, gradients, scrollbar)
       ============================================ */

    /* Primary Colors - Royal Blue (MAIN COLOR) */
    --cb-primary: #2755C2;
    --cb-primary-rgb: 39 85 194;
    --cb-primary-dark: #1B3F96;
    --cb-primary-light: #5B94F5;
    --cb-primary-50: #EEF4FE;
    --cb-primary-50-rgb: 238 244 254;
    --cb-primary-100: #D6E4FC;
    --cb-primary-100-rgb: 214 228 252;
    --cb-primary-200: #A9C6F9;

    /* Secondary Colors - Sky Blue */
    --cb-secondary: #5B94F5;
    --cb-secondary-rgb: 91 148 245;
    --cb-secondary-dark: #3F78DC;
    --cb-secondary-light: #8DB5F8;
    --cb-secondary-50: #F0F6FE;
    --cb-secondary-50-rgb: 240 246 254;
    --cb-secondary-100: #D9E7FD;
    --cb-secondary-100-rgb: 217 231 253;

    /* Backgrounds */
    --cb-background: rgb(244, 247, 253);
    --cb-background-rgb: 244 247 253;
    --cb-surface: #ffffff;
    --cb-surface-hover: #EEF4FE;

    /* Text Colors */
    --cb-text: #0F1D3D;
    --cb-text-rgb: 15 29 61;
    --cb-text-secondary-rgb: 28 47 94;
    --cb-text-muted-rgb: 74 90 122;
    --cb-text-light-rgb: 124 138 165;
    --cb-text-secondary: #1C2F5E;
    --cb-text-muted: #4A5A7A;
    --cb-text-light: #7C8AA5;
    --cb-text-inverse: #ffffff; /* White text on blue backgrounds */
    --cb-text-inverse-rgb: 255 255 255;

    /* Border Colors */
    --cb-border: #DCE5F3;
    --cb-border-rgb: 220 229 243;
    --cb-border-light: #EBF0F9;
    --cb-border-light-rgb: 235 240 249;
    --cb-border-dark: #B5C5E3;

    /* Semantic Colors */
    --cb-success: #2e7d32;
    --cb-success-rgb: 46 125 50;
    --cb-success-dark: #1b5e20;
    --cb-success-bg: #e8f5e9;
    --cb-success-border: #a5d6a7;

    --cb-warning: #f57c00;
    --cb-warning-rgb: 245 124 0;
    --cb-warning-dark: #e65100;
    --cb-warning-bg: #fff3e0;
    --cb-warning-border: #ffe082;

    --cb-danger: #c62828;
    --cb-danger-rgb: 198 40 40;
    --cb-danger-dark: #b71c1c;
    --cb-danger-bg: #ffebee;
    --cb-danger-bg-rgb: 255 235 238;
    --cb-danger-border: #fecaca;

    /* Info is teal so it stays distinct from the blue brand color */
    --cb-info: #00838f;
    --cb-info-rgb: 0 131 143;
    --cb-info-dark: #006064;
    --cb-info-bg: #e0f7fa;
    --cb-info-border: #bbdefb;

    /* Shadows */
    --cb-shadow-xs: 0 1px 2px rgba(15, 29, 61, 0.05);
    --cb-shadow-sm: 0 1px 3px rgba(15, 29, 61, 0.08);
    --cb-shadow-md: 0 4px 6px rgba(15, 29, 61, 0.1);
    --cb-shadow-lg: 0 10px 24px rgba(15, 29, 61, 0.15);
    --cb-shadow-xl: 0 20px 40px rgba(15, 29, 61, 0.2);

    /* ============================================
       HEADER — Royal blue background with white text/icons
       ============================================ */
    --cb-header-bg-start: #2755C2;
    --cb-header-bg-end: #1B3F96;
    --cb-header-text: #ffffff;
    --cb-header-text-muted: rgba(255, 255, 255, 0.85);
    --cb-header-text-faint: rgba(255, 255, 255, 0.65);
    --cb-header-icon: #ffffff;
    --cb-header-border: rgba(255, 255, 255, 0.16);
    --cb-header-divider: rgba(255, 255, 255, 0.32);

    --cb-header-hover-bg: rgba(255, 255, 255, 0.14);
    --cb-header-active-bg: rgba(255, 255, 255, 0.22);

    --cb-header-breadcrumb-text: rgba(255, 255, 255, 0.8);
    --cb-header-breadcrumb-active: #ffffff;
    --cb-header-breadcrumb-separator: rgba(255, 255, 255, 0.5);
    --cb-header-breadcrumb-hover-bg: rgba(255, 255, 255, 0.16);

    --cb-header-clock-bg: rgba(255, 255, 255, 0.14);
    --cb-header-clock-border: rgba(255, 255, 255, 0.26);
    --cb-header-clock-text: #ffffff;

    --cb-header-avatar-ring: #D6E4FC;
    --cb-header-avatar-bg: #0F1D3D;

    --cb-header-logo-bg: rgba(15, 29, 61, 0.96);

    /* ============================================
       SIDEBAR — White sidebar with blue gradient active state
       ============================================ */
    --cb-sidebar-bg: #ffffff;
    --cb-sidebar-border: #E1E8F5;
    --cb-sidebar-text: #0F1D3D;
    --cb-sidebar-text-muted: #4A5A7A;
    --cb-sidebar-icon: #1B3F96;
    --cb-sidebar-icon-active: #ffffff;

    --cb-sidebar-hover-bg: #EEF4FE;
    --cb-sidebar-hover-border: #D9E7FD;
    --cb-sidebar-hover-text: #0F1D3D;

    /* Same sky -> royal gradient as the truck icon */
    --cb-sidebar-active-bg-start: #5B94F5;
    --cb-sidebar-active-bg-end: #2755C2;
    --cb-sidebar-active-text: #ffffff;
    --cb-sidebar-active-shadow: 0 6px 16px rgba(39, 85, 194, 0.28);

    --cb-sidebar-scrollbar-thumb: rgb(var(--cb-primary-rgb) / 0.55);
    --cb-sidebar-scrollbar-thumb-hover: var(--cb-primary);

    --cb-sidebar-toggle-bg: #EEF4FE;
    --cb-sidebar-toggle-border: #D9E7FD;
    --cb-sidebar-toggle-icon: #1B3F96;

    /* ============================================
       DASHBOARD — Blue tones
       ============================================ */
    --cb-dash-tone-a-accent: #2755C2;
    --cb-dash-tone-a-bg: #EEF4FE;
    --cb-dash-tone-a-border: #D9E7FD;

    --cb-dash-tone-b-accent: #3F78DC;
    --cb-dash-tone-b-bg: #F5F8FE;
    --cb-dash-tone-b-border: #D6E4FC;

    /* Dashboard chart accents */
    --cb-dash-sales: #0E9F78;
    --cb-dash-sales-rgb: 14 159 120;
    --cb-secondary-light-rgb: 141 181 248;
    --cb-dash-sales-bright: #1FC8B0;
    --cb-dash-sales-dark: #0B7A5C;
    --cb-dash-sales-teal: #0E8F7D;
    --cb-dash-sales-mint: #4FE0C6;

    --cb-dash-purchases: #2F6FDE;
    --cb-dash-purchases-rgb: 47 111 222;
    --cb-dash-purchases-light: #5B9BFF;
    --cb-dash-purchases-dark: #1F4FB5;

    --cb-dash-expenses: #7C4DDB;
    --cb-dash-expenses-rgb: 124 77 219;
    --cb-dash-expenses-light: #9D78F0;
    --cb-dash-expenses-dark: #5B32B4;

    --cb-dash-loss: #D6336C;
    --cb-dash-loss-light: #F06A9A;
    --cb-dash-loss-dark: #A61E5A;
    --cb-dash-indigo: #8B84FF;
    --cb-dash-indigo-dark: #3730A3;
    --cb-dash-indigo-rgb: 79 70 229;
    --cb-dash-danger-bg: #FFF5F8;
    --cb-dash-overlay-rgb: 0 0 0;

    /* Border Radius */
    --cb-radius-xs: 4px;
    --cb-radius-sm: 6px;
    --cb-radius-md: 8px;
    --cb-radius-lg: 12px;
    --cb-radius-xl: 16px;
    --cb-radius-full: 9999px;

    /* Spacing */
    --cb-space-xs: 4px;
    --cb-space-sm: 8px;
    --cb-space-md: 12px;
    --cb-space-lg: 16px;
    --cb-space-xl: 24px;
    --cb-space-2xl: 32px;
    --cb-space-3xl: 48px;
    --cb-col-padding: 4px;

    /* Typography */
    --cb-font-family:
        "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,
        Ubuntu, sans-serif;
    --cb-font-size-xs: 0.75rem;
    --cb-font-size-sm: 0.8125rem;
    --cb-font-size-base: 0.875rem;
    --cb-font-size-md: 1rem;
    --cb-font-size-lg: 1.125rem;
    --cb-font-size-xl: 1.25rem;
    --cb-font-size-2xl: 1.5rem;
    --cb-font-size-3xl: 1.875rem;
    --cb-font-weight-normal: 400;
    --cb-font-weight-medium: 500;
    --cb-font-weight-semibold: 600;
    --cb-font-weight-bold: 700;
    --cb-line-height-tight: 1.25;
    --cb-line-height-normal: 1.5;
    --cb-line-height-relaxed: 1.75;

    /* Transitions */
    --cb-transition-fast: 100ms ease;
    --cb-transition-base: 150ms ease;
    --cb-transition-slow: 250ms ease;
    --cb-transition-sidebar-collapse: 420ms cubic-bezier(0.22, 1, 0.36, 1);

    /* Z-index */
    --cb-z-dropdown: 100;
    --cb-z-sticky: 200;
    --cb-z-modal-backdrop: 300;
    --cb-overlay-rgb: 15 29 61;
    --cb-z-modal: 400;
    --cb-z-tooltip: 500;
    --cb-z-toast: 600;

    /* Theme-Based Scrollbar Tokens */
    --cb-scrollbar-width: 6px;
    --cb-scrollbar-track: var(--cb-surface-hover);
    --cb-scrollbar-track-subtle: #EBF0F9;
    --cb-scrollbar-thumb: var(--cb-primary);
    --cb-scrollbar-thumb-hover: var(--cb-primary-dark);
    --cb-scrollbar-thumb-active: #0F1D3D;
}
