/**
 * Theme Variables - CSS Custom Properties
 * 
 * These variables can be overridden by:
 * 1. Global design settings (admin panel)
 * 2. Product-specific settings (seller panel)
 * 
 * Use these variables throughout the application for consistent theming.
 */

:root {
    /* ==================== Colors ==================== */
    
    /* Primary brand colors - Military Green */
    --color-primary: #3d6b1e;
    --color-primary-hover: #2d5016;
    --color-primary-light: rgba(61, 107, 30, 0.1);
    
    /* Secondary/accent colors - Deep Purple */
    --color-secondary: #6b21a8;
    --color-secondary-hover: #581c87;
    
    /* Semantic colors */
    --color-success: #16a34a;
    --color-success-hover: #15803d;
    --color-success-light: rgba(22, 163, 74, 0.1);
    
    --color-warning: #f59e0b;
    --color-warning-hover: #d97706;
    --color-warning-light: rgba(245, 158, 11, 0.1);
    
    --color-danger: #ef4444;
    --color-danger-hover: #dc2626;
    --color-danger-light: rgba(239, 68, 68, 0.1);
    
    --color-info: #3d6b1e;
    --color-info-hover: #2d5016;
    --color-info-light: rgba(59, 130, 246, 0.1);
    
    /* Background colors - Green-tinted neutrals */
    --color-background: #f6f8f4;
    --color-surface: #ffffff;
    --color-surface-hover: #f0f4ed;
    
    /* Text colors - Green-tinted grays */
    --color-text: #1a2612;
    --color-text-secondary: #4a5a42;
    --color-text-muted: #5c6b54;
    --color-text-light: #8a9a7e;
    
    /* Border colors - Green-tinted */
    --color-border: #dce3d6;
    --color-border-hover: #c5d1bc;
    
    /* ==================== Typography ==================== */
    
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-family-mono: 'Fira Code', 'Consolas', 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 */
    
    /* Heading sizes */
    --font-size-h1: 2rem;
    --font-size-h2: 1.5rem;
    --font-size-h3: 1.25rem;
    --font-size-h4: 1.125rem;
    
    /* Font weights */
    --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;
    
    /* ==================== Spacing ==================== */
    
    --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 */
    
    /* Shorthand aliases */
    --spacing-sm: var(--spacing-2);
    --spacing-md: var(--spacing-4);
    --spacing-lg: var(--spacing-8);
    --spacing-xl: var(--spacing-12);
    
    /* ==================== Border Radius ==================== */
    
    --radius-none: 0;
    --radius-sm: 4px;
    --radius-md: 6px;
    --radius-lg: 8px;
    --radius-xl: 12px;
    --radius-2xl: 16px;
    --radius-full: 9999px;
    
    /* Default radius */
    --border-radius: var(--radius-xl);
    --border-radius-sm: var(--radius-md);
    --border-radius-lg: var(--radius-2xl);
    
    /* ==================== Shadows ==================== */
    
    --shadow-none: none;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --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);
    
    /* Card shadow */
    --shadow-card: 0 4px 15px rgba(0, 0, 0, 0.05);
    --shadow-card-hover: 0 10px 25px rgba(0, 0, 0, 0.1);
    
    /* ==================== Transitions ==================== */
    
    --transition-fast: 150ms ease;
    --transition-normal: 200ms ease;
    --transition-slow: 300ms ease;
    
    /* ==================== Z-Index ==================== */
    
    --z-dropdown: 100;
    --z-sticky: 200;
    --z-fixed: 300;
    --z-modal-backdrop: 400;
    --z-modal: 500;
    --z-tooltip: 600;
    
    /* ==================== Layout ==================== */
    
    --container-max-width: 1200px;
    --container-padding: var(--spacing-4);
    
    /* Header */
    --header-height: 70px;
    --header-bg: var(--color-surface);
    
    /* Sidebar */
    --sidebar-width: 260px;
    --sidebar-bg: var(--color-text);
}

/* ==================== Dark Mode (optional) ==================== */

[data-theme="dark"] {
    --color-background: #0d1208;
    --color-surface: #1a2612;
    --color-surface-hover: #232f1a;
    
    --color-text: #f0f4ed;
    --color-text-secondary: #c5d1bc;
    --color-text-muted: #8a9a7e;
    --color-text-light: #5c6b54;
    
    --color-border: #2a3a22;
    --color-border-hover: #3d4d35;
    
    --shadow-card: 0 4px 15px rgba(0, 0, 0, 0.3);
}

/* ==================== Utility Classes ==================== */

.text-primary { color: var(--color-primary); }
.text-secondary { color: var(--color-text-secondary); }
.text-muted { color: var(--color-text-muted); }
.text-success { color: var(--color-success); }
.text-warning { color: var(--color-warning); }
.text-danger { color: var(--color-danger); }

.bg-primary { background-color: var(--color-primary); }
.bg-surface { background-color: var(--color-surface); }
.bg-background { background-color: var(--color-background); }

.rounded { border-radius: var(--border-radius); }
.rounded-sm { border-radius: var(--border-radius-sm); }
.rounded-lg { border-radius: var(--border-radius-lg); }
.rounded-full { border-radius: var(--radius-full); }

.shadow { box-shadow: var(--shadow-md); }
.shadow-sm { box-shadow: var(--shadow-sm); }
.shadow-lg { box-shadow: var(--shadow-lg); }
.shadow-card { box-shadow: var(--shadow-card); }
