/* ============================================
   MODERN THEMES & CSS VARIABLES
   ============================================ */

:root {
    /* === PRIMARY COLORS & GRADIENTS === */
    --primary-gradient: linear-gradient(135deg, #374151 0%, #1f2937 100%);
    --primary-gradient-hover: linear-gradient(135deg, #1f2937 0%, #111827 100%);
    --secondary-gradient: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    /* Success: slightly lighter than #166534 but darker than default lime; readable */
    --success-gradient: linear-gradient(135deg, #16a34a 0%, #15803d 100%);
    --warning-gradient: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    --danger-gradient: linear-gradient(135deg, #f87171 0%, #ef4444 100%);
    --info-gradient: linear-gradient(135deg, #60a5fa 0%, #3b82f6 100%);
    
    /* === SOLID COLORS === */
    --color-primary: #374151;
    --color-primary-dark: #1f2937;
    --color-secondary: #764ba2;
    /* Success: shift from #166534 to #15803d for better readability while still rich */
    --color-success: #15803d;
    --color-warning: #fbbf24;
    --color-danger: #f87171;
    --color-info: #60a5fa;
    
    /* === GLASSMORPHISM === */
    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-bg-hover: rgba(255, 255, 255, 0.15);
    --glass-border: rgba(255, 255, 255, 0.18);
    --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15);
    --glass-shadow-hover: 0 12px 40px 0 rgba(31, 38, 135, 0.25);
    
    /* === NEUMORPHISM === */
    --neu-shadow-light: 8px 8px 16px rgba(163, 177, 198, 0.6), -8px -8px 16px rgba(255, 255, 255, 0.5);
    --neu-shadow-inset: inset 4px 4px 8px rgba(163, 177, 198, 0.3), inset -4px -4px 8px rgba(255, 255, 255, 0.3);
    
    /* === SHADOWS === */
    --shadow-xs: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-sm: 0 2px 4px 0 rgba(0, 0, 0, 0.1);
    --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);
    
    /* === BACKGROUND GRADIENTS === */
    --bg-gradient-primary: linear-gradient(135deg, #374151 0%, #1f2937 100%);
    --bg-gradient-dark: linear-gradient(180deg, #1e1b4b 0%, #312e81 100%);
    --bg-gradient-purple: linear-gradient(135deg, #5f39cc 0%, #3a0647 100%);
    --bg-gradient-light: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
    
    /* === TYPOGRAPHY === */
    --font-display: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', 'Consolas', monospace;
    
    /* === SPACING === */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-2xl: 3rem;
    --spacing-3xl: 4rem;
    
    /* === BORDER RADIUS === */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;
    --radius-full: 9999px;
    
    /* === TRANSITIONS === */
    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 250ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 350ms cubic-bezier(0.4, 0, 0.2, 1);
    
    /* === 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;
}

/* ============================================
   GRADIENT UTILITIES
   ============================================ */

.gradient-primary {
    background: var(--primary-gradient);
}

.gradient-secondary {
    background: var(--secondary-gradient);
}

.gradient-success {
    background: var(--success-gradient);
}

.gradient-warning {
    background: var(--warning-gradient);
}

.gradient-danger {
    background: var(--danger-gradient);
}

.gradient-info {
    background: var(--info-gradient);
}

.gradient-text {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ============================================
   GLASSMORPHISM UTILITIES
   ============================================ */

.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
}

.glass:hover {
    background: var(--glass-bg-hover);
    box-shadow: var(--glass-shadow-hover);
    transform: translateY(-2px);
}

.glass-dark {
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* ============================================
   SHADOW UTILITIES
   ============================================ */

.shadow-soft {
    box-shadow: var(--shadow-lg);
}

.shadow-glow {
    box-shadow: 0 0 20px rgba(102, 126, 234, 0.5);
}

.shadow-glow-success {
    box-shadow: 0 0 20px rgba(22, 101, 52, 0.5);
}

.shadow-glow-danger {
    box-shadow: 0 0 20px rgba(248, 113, 113, 0.5);
}

.shadow-glow-warning {
    box-shadow: 0 0 20px rgba(251, 191, 36, 0.5);
}

/* ============================================
   MODERN CARD STYLES
   ============================================ */

.modern-card {
    background: white;
    border-radius: var(--radius-xl);
    padding: var(--spacing-lg);
    /* Remove shadows for a clean bordered panel */
    box-shadow: none;
    transition: all var(--transition-base);
    /* Use a simple, clear border */
    border: 1px solid #e5e7eb;
}

.modern-card:hover {
    /* No hover elevation/shadow for minimal design */
    transform: none;
    box-shadow: none;
}

.modern-card-glass {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: var(--radius-xl);
    padding: var(--spacing-lg);
    border: 1px solid var(--glass-border);
    /* flatten glass variant: no shadow */
    box-shadow: none;
    transition: all var(--transition-base);
}

.modern-card-glass:hover {
    background: var(--glass-bg-hover);
    /* no lift, no shadow */
    transform: none;
    box-shadow: none;
}

/* ============================================
   GRADIENT BACKGROUND UTILITIES
   ============================================ */

.bg-gradient-1 {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.bg-gradient-2 {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.bg-gradient-3 {
    background: linear-gradient(135deg, #16a34a 0%, #166534 100%);
}

.bg-gradient-4 {
    background: linear-gradient(135deg, #60a5fa 0%, #3b82f6 100%);
}

.bg-gradient-dark {
    background: linear-gradient(180deg, #1e1b4b 0%, #312e81 100%);
}

.bg-gradient-purple {
    background: linear-gradient(135deg, #5f39cc 0%, #3a0647 100%);
}

/* ============================================
   TEXT UTILITIES
   ============================================ */

.text-gradient {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-shadow {
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* ============================================
   RESPONSIVE UTILITIES
   ============================================ */

@media (max-width: 768px) {
    :root {
        --spacing-xl: 1.5rem;
        --spacing-2xl: 2rem;
        --spacing-3xl: 2.5rem;
    }
}
