/**
 * SaltCRM - CSS Variables
 *
 * Central location for all CSS custom properties (variables).
 * This ensures consistent theming across the entire application.
 * Override these variables to customize the theme.
 *
 * @package    SaltCRM
 * @subpackage Assets
 * @category   Styles
 * @created    2026-01-29
 */

:root {
    /*
    |--------------------------------------------------------------------------
    | Brand Colors
    |--------------------------------------------------------------------------
    */
    --primary: #2d5f8a;
    --primary-hover: #1e4a6e;
    --primary-light: #e3edf5;
    --primary-dark: #1b3f5c;

    --accent: #c4a35a;
    --accent-hover: #b08e45;
    --accent-light: #f5eed9;

    --secondary: #64748b;
    --secondary-hover: #475569;
    --secondary-light: #f1f5f9;

    /*
    |--------------------------------------------------------------------------
    | Public Site Theme Colors (Navy + Copper)
    |--------------------------------------------------------------------------
    */
    --navy-900: #0f1f33;
    --navy-800: #152d4a;
    --navy-700: #1e3a5f;
    --navy-600: #2a4d7a;
    --navy-500: #3a6495;
    --navy-400: #5a85b0;
    --navy-300: #8aaccc;
    --navy-200: #b8cfe0;
    --navy-100: #dfe9f2;
    --navy-50: #f0f5fa;

    --copper-700: #96602a;
    --copper-600: #b07040;
    --copper-500: #c08050;
    --copper-400: #d09570;
    --copper-300: #ddb090;
    --copper-200: #e8ccb5;
    --copper-100: #f4e6da;
    --copper-50: #faf3ed;

    /*
    |--------------------------------------------------------------------------
    | Status Colors
    |--------------------------------------------------------------------------
    */
    --success: #10b981;
    --success-hover: #059669;
    --success-light: #d1fae5;

    --danger: #ef4444;
    --danger-hover: #dc2626;
    --danger-light: #fee2e2;

    --warning: #f59e0b;
    --warning-hover: #d97706;
    --warning-light: #fef3c7;

    --info: #0ea5e9;
    --info-hover: #0284c7;
    --info-light: #e0f2fe;

    /*
    |--------------------------------------------------------------------------
    | Neutral Colors
    |--------------------------------------------------------------------------
    */
    --white: #ffffff;
    --black: #000000;

    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;

    /*
    |--------------------------------------------------------------------------
    | Background Colors
    |--------------------------------------------------------------------------
    */
    --bg-body: #f3f4f6;
    --bg-card: #ffffff;
    --bg-sidebar: #1f2937;
    --bg-sidebar-active: #374151;
    --bg-header: #ffffff;
    --bg-footer: #ffffff;
    --bg-input: #ffffff;
    --bg-input-disabled: #f3f4f6;

    /*
    |--------------------------------------------------------------------------
    | Text Colors
    |--------------------------------------------------------------------------
    */
    --text-primary: #111827;
    --text-secondary: #6b7280;
    --text-muted: #9ca3af;
    --text-light: #ffffff;
    --text-link: #2d5f8a;
    --text-link-hover: #1e4a6e;

    /*
    |--------------------------------------------------------------------------
    | Border Colors
    |--------------------------------------------------------------------------
    */
    --border-color: #e5e7eb;
    --border-color-dark: #d1d5db;
    --border-radius: 0.375rem;
    --border-radius-sm: 0.25rem;
    --border-radius-lg: 0.5rem;
    --border-radius-xl: 0.75rem;
    --border-radius-full: 9999px;

    /*
    |--------------------------------------------------------------------------
    | Shadow
    |--------------------------------------------------------------------------
    */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);

    /*
    |--------------------------------------------------------------------------
    | Typography
    |--------------------------------------------------------------------------
    */
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --font-family-mono: 'SFMono-Regular', Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New', monospace;

    --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-weight-normal: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;

    --line-height-tight: 1.25;
    --line-height-normal: 1.5;
    --line-height-relaxed: 1.75;

    /*
    |--------------------------------------------------------------------------
    | Spacing Scale
    |--------------------------------------------------------------------------
    */
    --spacing-0: 0;
    --spacing-1: 0.25rem;   /* 4px */
    --spacing-2: 0.5rem;    /* 8px */
    --spacing-3: 0.75rem;   /* 12px */
    --spacing-4: 1rem;      /* 16px */
    --spacing-5: 1.25rem;   /* 20px */
    --spacing-6: 1.5rem;    /* 24px */
    --spacing-8: 2rem;      /* 32px */
    --spacing-10: 2.5rem;   /* 40px */
    --spacing-12: 3rem;     /* 48px */
    --spacing-16: 4rem;     /* 64px */
    --spacing-20: 5rem;     /* 80px */

    /*
    |--------------------------------------------------------------------------
    | Layout
    |--------------------------------------------------------------------------
    */
    --sidebar-width: 260px;
    --sidebar-collapsed-width: 70px;
    --header-height: 64px;
    --footer-height: 60px;
    --bottom-nav-height: 60px;
    --content-max-width: 1400px;

    /*
    |--------------------------------------------------------------------------
    | Transitions
    |--------------------------------------------------------------------------
    */
    --transition-fast: 150ms ease;
    --transition-normal: 250ms ease;
    --transition-slow: 350ms ease;

    /*
    |--------------------------------------------------------------------------
    | 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;
}

/*
|--------------------------------------------------------------------------
| Dark Mode Variables (Future Use)
|--------------------------------------------------------------------------
*/
[data-theme="dark"] {
    --bg-body: #111827;
    --bg-card: #1f2937;
    --bg-sidebar: #111827;
    --bg-sidebar-active: #1f2937;
    --bg-header: #1f2937;
    --bg-input: #374151;

    --text-primary: #f9fafb;
    --text-secondary: #d1d5db;
    --text-muted: #9ca3af;

    --border-color: #374151;
    --border-color-dark: #4b5563;
}
