/**
 * RevierManager Design System
 * 
 * CSS Variables (Custom Properties) defining the design tokens for the entire application.
 * This file MUST be loaded first before any other stylesheets.
 * 
 * Usage: Always reference these variables using var(--variable-name)
 * Example: color: var(--primary-color);
 */

:root {
    /* ========================================
       BRAND COLORS
       ======================================== */
    --primary-color: #2c3e50;
    --primary-light: #34495e;
    --primary-dark: #1a252f;

    --secondary-color: #3498db;
    --secondary-light: #5dade2;
    --secondary-dark: #2980b9;

    --accent-color: #27ae60;
    --accent-light: #58d68d;
    --accent-dark: #229954;

    --danger-color: #e74c3c;
    --danger-light: #ec7063;
    --danger-dark: #c0392b;

    --warning-color: #f39c12;
    --warning-light: #f7dc6f;
    --warning-dark: #d68910;

    --info-color: #17a2b8;
    --info-light: #5bc0de;
    --info-dark: #138496;

    /* ========================================
       NEUTRAL COLORS
       ======================================== */
    --white: #ffffff;
    --black: #000000;
    
    --gray-50: #f8f9fa;
    --gray-100: #ecf0f1;
    --gray-200: #dee2e6;
    --gray-300: #bdc3c7;
    --gray-400: #95a5a6;
    --gray-500: #6c757d;
    --gray-600: #495057;
    --gray-700: #34495e;
    --gray-800: #2c3e50;
    --gray-900: #1a252f;

    /* ========================================
       ROLE-SPECIFIC COLORS
       Consistent color coding for user roles
       ======================================== */
    --role-admin: #dc3545;
    --role-owner: #007bff;
    --role-supervisor: #28a745;
    --role-user: #6c757d;

    /* ========================================
       TYPOGRAPHY
       ======================================== */
    --font-family-base: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --font-family-mono: 'SF Mono', Monaco, 'Cascadia Code', 'Roboto Mono', Consolas, 'Courier New', 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 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.75;
    --line-height-loose: 2;

    /* ========================================
       SPACING SCALE
       Consistent spacing using 4px base unit
       ======================================== */
    --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 */
    --spacing-24: 6rem;       /* 96px */

    /* ========================================
       BORDER RADIUS
       ======================================== */
    --border-radius-none: 0;
    --border-radius-sm: 0.25rem;    /* 4px */
    --border-radius: 0.375rem;      /* 6px */
    --border-radius-md: 0.5rem;     /* 8px */
    --border-radius-lg: 0.75rem;    /* 12px */
    --border-radius-xl: 1rem;       /* 16px */
    --border-radius-2xl: 1.5rem;    /* 24px */
    --border-radius-full: 9999px;   /* Fully rounded */

    /* ========================================
       SHADOWS
       ======================================== */
    --shadow-none: none;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow: 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-inner: inset 0 2px 4px 0 rgba(0, 0, 0, 0.06);

    /* ========================================
       TRANSITIONS & ANIMATIONS
       ======================================== */
    --transition-fast: 0.15s ease;
    --transition-base: 0.2s ease;
    --transition-slow: 0.3s ease;
    --transition-slower: 0.5s ease;

    --ease-in: cubic-bezier(0.4, 0, 1, 1);
    --ease-out: cubic-bezier(0, 0, 0.2, 1);
    --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);

    /* ========================================
       Z-INDEX SCALE
       Consistent layering throughout the app
       ======================================== */
    --z-base: 0;
    --z-dropdown: 1000;
    --z-sticky: 1020;
    --z-fixed: 1030;
    --z-modal-backdrop: 1040;
    --z-modal: 1050;
    --z-popover: 1060;
    --z-tooltip: 1070;

    /* ========================================
       BREAKPOINTS (for reference in media queries)
       ======================================== */
    --breakpoint-xs: 0px;
    --breakpoint-sm: 576px;
    --breakpoint-md: 768px;
    --breakpoint-lg: 992px;
    --breakpoint-xl: 1200px;
    --breakpoint-2xl: 1400px;

    /* ========================================
       CONTAINER MAX WIDTHS
       ======================================== */
    --container-sm: 540px;
    --container-md: 720px;
    --container-lg: 960px;
    --container-xl: 1140px;
    --container-2xl: 1320px;

    /* ========================================
       BORDERS
       ======================================== */
    --border-width: 1px;
    --border-width-2: 2px;
    --border-width-4: 4px;
    --border-width-8: 8px;

    --border-color: var(--gray-200);
    --border-color-dark: var(--gray-300);
    --border-color-light: var(--gray-100);

    /* ========================================
       OPACITY SCALE
       ======================================== */
    --opacity-0: 0;
    --opacity-10: 0.1;
    --opacity-20: 0.2;
    --opacity-30: 0.3;
    --opacity-40: 0.4;
    --opacity-50: 0.5;
    --opacity-60: 0.6;
    --opacity-70: 0.7;
    --opacity-80: 0.8;
    --opacity-90: 0.9;
    --opacity-100: 1;
}

/**
 * Dark Mode Variables (for future implementation)
 * Uncomment and customize when implementing dark mode
 */
/*
@media (prefers-color-scheme: dark) {
    :root {
        --primary-color: #4a6278;
        --white: #1a252f;
        --gray-50: #2c3e50;
        --gray-900: #f8f9fa;
        --border-color: var(--gray-700);
    }
}
*/
