/**
 * Design Tokens - Shared Variables
 * Used across both admin panel and customer portal for consistency
 * Based on admin panel's established design system
 */

:root {
    /* ==================== COLORS ==================== */

    /* Primary - Forest Green (from admin panel) */
    --primary-color: #2C5F2D;
    --primary-hover: #1f4620;
    --primary-light: #e8f5e9;
    --primary-dark: #1b3a1c;

    /* Secondary */
    --secondary-color: #f5f5f5;
    --secondary-hover: #e8e8e8;

    /* Accent */
    --accent-color: #ff6b35;
    --accent-hover: #ff5722;

    /* Semantic Colors */
    --success-color: #4caf50;
    --success-light: #e8f5e9;
    --warning-color: #ff9800;
    --warning-light: #fff3e0;
    --error-color: #f44336;
    --error-light: #ffebee;
    --info-color: #2196f3;
    --info-light: #e3f2fd;

    /* Neutrals */
    --white: #ffffff;
    --black: #000000;
    --light-gray: #f8f9fa;
    --medium-gray: #e9ecef;
    --dark-gray: #6c757d;
    --darker-gray: #495057;

    /* Text Colors */
    --text-dark: #2c3e50;
    --text-light: #7f8c8d;
    --text-muted: #95a5a6;
    --text-white: #ffffff;

    /* Border Colors */
    --border-color: #dee2e6;
    --border-color-light: #e9ecef;
    --border-color-dark: #ced4da;

    /* Background Colors */
    --bg-white: #ffffff;
    --bg-light: #f8f9fa;
    --bg-dark: #343a40;
    --bg-overlay: rgba(0, 0, 0, 0.5);

    /* ==================== TYPOGRAPHY ==================== */

    /* Font Families */
    --font-family: 'Inter', -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;

    /* Line Heights */
    --line-height-tight: 1.25;
    --line-height-normal: 1.5;
    --line-height-relaxed: 1.75;
    --line-height-loose: 2;

    /* ==================== SPACING ==================== */

    --spacing-xs: 0.25rem;   /* 4px */
    --spacing-sm: 0.5rem;    /* 8px */
    --spacing-md: 1rem;      /* 16px */
    --spacing-lg: 1.5rem;    /* 24px */
    --spacing-xl: 2rem;      /* 32px */
    --spacing-2xl: 2.5rem;   /* 40px */
    --spacing-3xl: 3rem;     /* 48px */
    --spacing-4xl: 4rem;     /* 64px */

    /* ==================== BORDERS ==================== */

    /* Border Radius */
    --border-radius-sm: 4px;
    --border-radius: 8px;
    --border-radius-lg: 12px;
    --border-radius-xl: 16px;
    --border-radius-2xl: 24px;
    --border-radius-full: 9999px;

    /* Border Widths */
    --border-width-thin: 1px;
    --border-width-medium: 2px;
    --border-width-thick: 4px;

    /* ==================== SHADOWS ==================== */

    --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 6px 16px rgba(0, 0, 0, 0.15);
    --shadow-xl: 0 10px 24px rgba(0, 0, 0, 0.2);
    --shadow-2xl: 0 20px 40px rgba(0, 0, 0, 0.25);

    /* Focus Shadow */
    --shadow-focus: 0 0 0 3px rgba(44, 95, 45, 0.1);

    /* ==================== TRANSITIONS ==================== */

    --transition-fast: 150ms ease;
    --transition: 300ms ease;
    --transition-slow: 500ms ease;

    --transition-all: all var(--transition);
    --transition-colors: color var(--transition), background-color var(--transition), border-color var(--transition);
    --transition-transform: transform var(--transition);

    /* ==================== Z-INDEX LAYERS ==================== */

    --z-dropdown: 1000;
    --z-sticky: 1020;
    --z-fixed: 1030;
    --z-modal-backdrop: 1040;
    --z-modal: 1050;
    --z-popover: 1060;
    --z-tooltip: 1070;

    /* ==================== BREAKPOINTS ==================== */
    /* Note: Use these in media queries */
    /* --breakpoint-sm: 640px; */
    /* --breakpoint-md: 768px; */
    /* --breakpoint-lg: 1024px; */
    /* --breakpoint-xl: 1280px; */
    /* --breakpoint-2xl: 1536px; */

    /* ==================== LAYOUT ==================== */

    --container-max-width: 1280px;
    --sidebar-width: 280px;
    --header-height: 64px;

    /* Grid */
    --grid-columns: 12;
    --grid-gap: var(--spacing-md);
}

/* ==================== DARK MODE (Optional - Future Enhancement) ==================== */
@media (prefers-color-scheme: dark) {
    :root {
        /* Uncomment when dark mode is implemented */
        /* --bg-white: #1a1a1a; */
        /* --text-dark: #f8f9fa; */
        /* --text-light: #adb5bd; */
        /* --border-color: #495057; */
    }
}
