:root {
    /* ============================================
       CAPOBIZ PALETTE
       #2A652B  deep green  -> main (header, buttons)
       #57B959  leaf green  -> secondary (accents, scrollbar)
       ============================================ */

    /* Primary Colors - Deep Green (MAIN COLOR) */
    --cb-primary: #2A652B;
    --cb-primary-rgb: 42 101 43;
    --cb-primary-dark: #1E4D20;
    --cb-primary-light: #57B959;
    --cb-primary-50: #EEF7EE;
    --cb-primary-50-rgb: 238 247 238;
    --cb-primary-100: #D5EBD6;
    --cb-primary-100-rgb: 213 235 214;
    --cb-primary-200: #A9D5AA;

    /* Secondary Colors - Leaf Green */
    --cb-secondary: #57B959;
    --cb-secondary-rgb: 87 185 89;
    --cb-secondary-dark: #3F9A41;
    --cb-secondary-light: #8BD08D;
    --cb-secondary-50: #EEF8EE;
    --cb-secondary-50-rgb: 238 248 238;
    --cb-secondary-100: #D3EED4;
    --cb-secondary-100-rgb: 211 238 212;

    /* Backgrounds */
    --cb-background: rgb(243, 246, 251);
    --cb-background-rgb: 243 246 251;
    --cb-surface: #ffffff;
    --cb-surface-hover: #EEF7EE;

    /* Text Colors */
    --cb-text: #14281A;
    --cb-text-rgb: 20 40 26;
    --cb-text-secondary-rgb: 31 58 37;
    --cb-text-muted-rgb: 74 93 80;
    --cb-text-light-rgb: 122 138 128;
    --cb-text-secondary: #1F3A25;
    --cb-text-muted: #4A5D50;
    --cb-text-light: #7A8A80;
    --cb-text-inverse: #ffffff; /* White text on deep green backgrounds */
    --cb-text-inverse-rgb: 255 255 255;

    /* Border Colors */
    --cb-border: #DDE8DE;
    --cb-border-rgb: 221 232 222;
    --cb-border-light: #EDF3EE;
    --cb-border-light-rgb: 237 243 238;
    --cb-border-dark: #B7CDB9;

    /* 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-danger: #c62828;
    --cb-danger-rgb: 198 40 40;
    --cb-danger-dark: #b71c1c;
    --cb-danger-bg: #ffebee;
    --cb-danger-bg-rgb: 255 235 238;

    --cb-info: #0277bd;
    --cb-info-rgb: 2 119 189;
    --cb-info-dark: #01579b;
    --cb-info-bg: #e1f5fe;

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

    /* ============================================
       HEADER — Deep green background with white text/icons
       ============================================ */
    --cb-header-bg-start: #2A652B;
    --cb-header-bg-end: #1E4D20;
    --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: #D5EBD6;
    --cb-header-avatar-bg: #14281A;

    --cb-header-logo-bg: rgba(20, 40, 26, 0.96);

    /* ============================================
       SIDEBAR — White sidebar with light green active states
       ============================================ */
    --cb-sidebar-bg: #ffffff;
    --cb-sidebar-border: #E2EBE3;
    --cb-sidebar-text: #14281A;
    --cb-sidebar-text-muted: #4A5D50;
    --cb-sidebar-icon: #1E4D20;
    --cb-sidebar-icon-active: #14281A;

    --cb-sidebar-hover-bg: #EEF7EE;
    --cb-sidebar-hover-border: #D3EED4;
    --cb-sidebar-hover-text: #14281A;

    --cb-sidebar-active-bg-start: #D5EBD6;
    --cb-sidebar-active-bg-end: #B9DEBB;
    --cb-sidebar-active-text: #ffffff;
    --cb-sidebar-active-shadow: 0 6px 16px rgba(42, 101, 43, 0.25);

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

    --cb-sidebar-toggle-bg: #EEF7EE;
    --cb-sidebar-toggle-border: #D3EED4;
    --cb-sidebar-toggle-icon: #1E4D20;

    /* ============================================
       DASHBOARD — Green tones
       ============================================ */
    --cb-dash-tone-a-accent: #2A652B;
    --cb-dash-tone-a-bg: #EEF7EE;
    --cb-dash-tone-a-border: #D3EED4;

    --cb-dash-tone-b-accent: #3F9A41;
    --cb-dash-tone-b-bg: #F5FBF5;
    --cb-dash-tone-b-border: #D5EBD6;

    /* 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: 38 50 56;
    --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: #EDF3EE;
    --cb-scrollbar-thumb: var(--cb-primary);
    --cb-scrollbar-thumb-hover: var(--cb-primary-dark);
    --cb-scrollbar-thumb-active: #14281A;
}
