/* =====================================================
   AYLAN PRODUCTION - Dark Glass Effect Theme
   SaaS Création de Contenu Vidéo
   ===================================================== */

/* === Variables === */
:root {
    /* Primary Blue Palette */
    --primary: #3b82f6;
    --primary-light: #60a5fa;
    --primary-dark: #2563eb;
    --primary-glow: rgba(59, 130, 246, 0.5);
    
    /* Secondary & Accent */
    --secondary: #10b981;
    --accent: #8b5cf6;
    --accent-glow: rgba(139, 92, 246, 0.4);
    
    /* Dark Backgrounds */
    --bg-darker: #030712;
    --bg-dark: #0a0f1e;
    --bg-card: rgba(15, 23, 42, 0.6);
    --bg-card-solid: #0f172a;
    --bg-card-hover: rgba(30, 41, 59, 0.7);
    --bg-input: rgba(15, 23, 42, 0.8);
    
    /* Glass Effect */
    --glass-bg: rgba(15, 23, 42, 0.4);
    --glass-bg-light: rgba(30, 41, 59, 0.3);
    --glass-border: rgba(148, 163, 184, 0.1);
    --glass-border-light: rgba(148, 163, 184, 0.2);
    --glass-blur: 20px;
    --glass-blur-heavy: 40px;
    
    /* Text */
    --text-primary: #f8fafc;
    --text-secondary: #cbd5e1;
    --text-muted: #64748b;
    
    /* Borders */
    --border-color: rgba(71, 85, 105, 0.4);
    --border-light: rgba(100, 116, 139, 0.3);
    --border-glow: rgba(59, 130, 246, 0.3);
    
    /* Status Colors */
    --success: #10b981;
    --warning: #f59e0b;
    --error: #ef4444;
    --info: #3b82f6;
    
    /* Border Radius */
    --radius-sm: 0.5rem;
    --radius-md: 0.75rem;
    --radius-lg: 1rem;
    --radius-xl: 1.25rem;
    --radius-2xl: 1.5rem;
    --radius-full: 9999px;
    
    /* Spacing */
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-5: 1.25rem;
    --space-6: 1.5rem;
    --space-8: 2rem;
    --space-10: 2.5rem;
    --space-12: 3rem;
    
    /* Transitions */
    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: 300ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 500ms cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.4), 0 2px 4px -2px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.5), 0 4px 6px -4px rgba(0, 0, 0, 0.5);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.5), 0 8px 10px -6px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 30px rgba(59, 130, 246, 0.3);
    --shadow-glow-strong: 0 0 50px rgba(59, 130, 246, 0.4);
    --shadow-inner-glow: inset 0 1px 0 0 rgba(255, 255, 255, 0.05);
}

/* === Reset === */
*, *::before, *::after { 
    box-sizing: border-box; 
    margin: 0; 
    padding: 0; 
}

html { 
    scroll-behavior: smooth; 
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg-darker);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}

/* === Animated Background === */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(ellipse 80% 50% at 20% -20%, rgba(59, 130, 246, 0.15), transparent),
        radial-gradient(ellipse 60% 40% at 80% 100%, rgba(139, 92, 246, 0.1), transparent),
        radial-gradient(ellipse 50% 30% at 50% 50%, rgba(59, 130, 246, 0.05), transparent);
    pointer-events: none;
    z-index: -1;
}

/* === Typography === */
h1, h2, h3, h4, h5, h6 { 
    font-weight: 700; 
    line-height: 1.2; 
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.125rem; }
h6 { font-size: 1rem; }

p { color: var(--text-secondary); }

a { 
    color: var(--primary-light); 
    text-decoration: none; 
    transition: all var(--transition-fast); 
}

a:hover { 
    color: var(--primary); 
    text-shadow: 0 0 20px var(--primary-glow);
}

/* === Layout === */
.container { 
    width: 100%; 
    max-width: 1400px; 
    margin: 0 auto; 
    padding: 0 var(--space-6); 
}

.app-layout { 
    display: flex; 
    min-height: 100vh; 
}

.main-content { 
    flex: 1; 
    margin-left: 280px; 
    padding: var(--space-8); 
    min-height: 100vh; 
}

/* === Glass Sidebar === */
.sidebar {
    width: 280px;
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur-heavy));
    -webkit-backdrop-filter: blur(var(--glass-blur-heavy));
    border-right: 1px solid var(--glass-border);
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 50;
    display: flex;
    flex-direction: column;
    transition: transform var(--transition-normal);
    box-shadow: 
        var(--shadow-inner-glow),
        4px 0 30px rgba(0, 0, 0, 0.3);
}

.sidebar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
}

.sidebar-header { 
    padding: var(--space-6); 
    border-bottom: 1px solid var(--glass-border); 
    display: flex; 
    justify-content: space-between; 
    align-items: center;
    background: rgba(0, 0, 0, 0.2);
}

.sidebar-logo { 
    display: flex; 
    align-items: center; 
    gap: var(--space-3); 
    font-size: 1.25rem; 
    font-weight: 700; 
    color: var(--text-primary); 
}

.sidebar-logo-icon { 
    width: 44px; 
    height: 44px; 
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-radius: var(--radius-lg); 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    color: white;
    box-shadow: 
        0 0 20px var(--primary-glow),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
}

.sidebar-logo-icon::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent,
        rgba(255, 255, 255, 0.1),
        transparent
    );
    transform: rotate(45deg);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%) rotate(45deg); }
    100% { transform: translateX(100%) rotate(45deg); }
}

.sidebar-nav { 
    flex: 1; 
    padding: var(--space-4); 
    overflow-y: auto; 
}

.sidebar-nav-section { 
    margin-bottom: var(--space-6); 
}

.sidebar-nav-title { 
    font-size: 0.7rem; 
    font-weight: 600; 
    text-transform: uppercase; 
    letter-spacing: 0.1em; 
    color: var(--text-muted); 
    padding: var(--space-2) var(--space-3); 
    margin-bottom: var(--space-2); 
}

.sidebar-nav-link { 
    display: flex; 
    align-items: center; 
    gap: var(--space-3); 
    padding: var(--space-3) var(--space-4); 
    color: var(--text-secondary); 
    border-radius: var(--radius-lg); 
    transition: all var(--transition-fast); 
    margin-bottom: var(--space-1);
    position: relative;
    overflow: hidden;
}

.sidebar-nav-link::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    opacity: 0;
    transition: opacity var(--transition-fast);
    z-index: -1;
}

.sidebar-nav-link:hover { 
    background: var(--glass-bg-light); 
    color: var(--text-primary);
    border: 1px solid var(--glass-border-light);
}

.sidebar-nav-link.active { 
    color: white;
    box-shadow: 0 0 20px var(--primary-glow);
}

.sidebar-nav-link.active::before {
    opacity: 1;
}

.sidebar-nav-link i { 
    width: 20px; 
    text-align: center; 
}

.sidebar-nav-badge { 
    margin-left: auto; 
    background: linear-gradient(135deg, var(--error), #dc2626);
    color: white; 
    font-size: 0.625rem; 
    font-weight: 600; 
    padding: 2px 8px; 
    border-radius: var(--radius-full);
    box-shadow: 0 0 10px rgba(239, 68, 68, 0.4);
}

.sidebar-footer { 
    padding: var(--space-4); 
    border-top: 1px solid var(--glass-border);
    background: rgba(0, 0, 0, 0.2);
}

.sidebar-user { 
    display: flex; 
    align-items: center; 
    gap: var(--space-3); 
    padding: var(--space-3);
    background: var(--glass-bg-light);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    transition: all var(--transition-fast);
}

.sidebar-user:hover {
    border-color: var(--border-glow);
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.1);
}

.sidebar-user-avatar { 
    width: 40px; 
    height: 40px; 
    border-radius: var(--radius-lg); 
    object-fit: cover; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    font-weight: 600; 
    font-size: 0.875rem; 
    color: white; 
    background: linear-gradient(135deg, var(--primary), var(--accent));
    box-shadow: 0 0 15px var(--primary-glow);
}

.sidebar-user-info { 
    flex: 1; 
    min-width: 0; 
}

.sidebar-user-name { 
    font-weight: 600; 
    font-size: 0.875rem; 
    white-space: nowrap; 
    overflow: hidden; 
    text-overflow: ellipsis; 
}

.sidebar-user-plan { 
    font-size: 0.75rem; 
    color: var(--primary-light);
    display: flex;
    align-items: center;
    gap: var(--space-1);
}

.sidebar-user-plan::before {
    content: '';
    width: 6px;
    height: 6px;
    background: var(--primary);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--primary-glow);
}

.sidebar-close { 
    display: none; 
}

.sidebar-overlay { 
    display: none; 
    position: fixed; 
    inset: 0; 
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(4px);
    z-index: 40; 
}

.sidebar-overlay.active { 
    display: block; 
}

/* === Navbar === */
.navbar { 
    display: flex; 
    align-items: center; 
    justify-content: space-between; 
    padding: var(--space-4) 0; 
    margin-bottom: var(--space-8); 
}

.navbar-left { 
    display: flex; 
    align-items: center; 
    gap: var(--space-4); 
}

.navbar-title { 
    font-size: 1.5rem; 
    font-weight: 700;
    background: linear-gradient(135deg, var(--text-primary), var(--text-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.navbar-right { 
    display: flex; 
    align-items: center; 
    gap: var(--space-4); 
}

.navbar-search { 
    position: relative; 
}

.navbar-search input { 
    width: 300px; 
    padding-left: 44px;
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--glass-border);
}

.navbar-search input:focus {
    border-color: var(--primary);
    box-shadow: 
        0 0 0 3px rgba(59, 130, 246, 0.1),
        0 0 20px rgba(59, 130, 246, 0.1);
}

.navbar-search i { 
    position: absolute; 
    left: 16px; 
    top: 50%; 
    transform: translateY(-50%); 
    color: var(--text-muted); 
}

/* === Notifications Badge === */
.navbar-notifications { 
    position: relative; 
    display: inline-flex; 
}

.navbar-notifications > button,
.navbar-notifications > .btn { 
    position: relative; 
}

.navbar-notifications-badge {
    position: absolute;
    top: -6px;
    right: -6px;
    min-width: 18px;
    height: 18px;
    padding: 0 4px;
    background: linear-gradient(135deg, var(--error), #dc2626);
    color: white;
    font-size: 0.625rem;
    font-weight: 700;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    border: 2px solid var(--bg-darker);
    pointer-events: none;
    line-height: 1;
    box-shadow: 0 0 10px rgba(239, 68, 68, 0.5);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* === Glass Cards === */
.card { 
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--glass-border); 
    border-radius: var(--radius-2xl); 
    padding: var(--space-6); 
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-inner-glow);
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
}

.card:hover { 
    border-color: var(--glass-border-light);
    box-shadow: 
        var(--shadow-lg),
        0 0 30px rgba(59, 130, 246, 0.05);
    transform: translateY(-2px);
}

.card-header { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    margin-bottom: var(--space-6); 
    padding-bottom: var(--space-4); 
    border-bottom: 1px solid var(--glass-border); 
}

.card-title { 
    font-size: 1.25rem; 
    font-weight: 600; 
}

/* === Glass Buttons === */
.btn { 
    display: inline-flex; 
    align-items: center; 
    justify-content: center; 
    gap: var(--space-2); 
    padding: var(--space-3) var(--space-6); 
    font-size: 0.875rem; 
    font-weight: 600; 
    border-radius: var(--radius-full); 
    border: none; 
    cursor: pointer; 
    transition: all var(--transition-fast); 
    text-decoration: none; 
    white-space: nowrap;
    position: relative;
    overflow: hidden;
}

.btn:disabled { 
    opacity: 0.5; 
    cursor: not-allowed; 
}

.btn-primary { 
    background: linear-gradient(135deg, var(--primary), var(--primary-dark)); 
    color: white; 
    box-shadow: 
        0 4px 20px rgba(59, 130, 246, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent,
        rgba(255, 255, 255, 0.1),
        transparent
    );
    transform: rotate(45deg) translateX(-100%);
    transition: transform 0.6s;
}

.btn-primary:hover:not(:disabled)::before {
    transform: rotate(45deg) translateX(100%);
}

.btn-primary:hover:not(:disabled) { 
    transform: translateY(-2px); 
    box-shadow: 
        0 6px 30px rgba(59, 130, 246, 0.5),
        0 0 40px rgba(59, 130, 246, 0.3);
}

.btn-secondary { 
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    color: var(--text-primary); 
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow-inner-glow);
}

.btn-secondary:hover:not(:disabled) { 
    background: var(--glass-bg-light); 
    border-color: var(--primary);
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.2);
}

.btn-success { 
    background: linear-gradient(135deg, var(--success), #059669); 
    color: white;
    box-shadow: 0 4px 20px rgba(16, 185, 129, 0.4);
}

.btn-danger { 
    background: linear-gradient(135deg, var(--error), #dc2626); 
    color: white;
    box-shadow: 0 4px 20px rgba(239, 68, 68, 0.4);
}

.btn-warning { 
    background: linear-gradient(135deg, var(--warning), #d97706); 
    color: white;
    box-shadow: 0 4px 20px rgba(245, 158, 11, 0.4);
}

.btn-ghost { 
    background: transparent; 
    color: var(--text-secondary); 
}

.btn-ghost:hover { 
    background: var(--glass-bg); 
    color: var(--text-primary); 
}

.btn-sm { 
    padding: var(--space-2) var(--space-4); 
    font-size: 0.75rem; 
}

.btn-lg { 
    padding: var(--space-4) var(--space-8); 
    font-size: 1rem; 
}

.btn-icon { 
    width: 44px; 
    height: 44px; 
    padding: 0; 
    border-radius: var(--radius-lg);
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
}

.btn-icon:hover {
    background: var(--glass-bg-light);
    border-color: var(--primary);
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.2);
}

.btn-icon.btn-sm { 
    width: 36px; 
    height: 36px; 
}

/* === Glass Forms === */
.form-group { 
    margin-bottom: var(--space-6); 
}

.form-label { 
    display: block; 
    font-size: 0.875rem; 
    font-weight: 500; 
    color: var(--text-secondary); 
    margin-bottom: var(--space-2); 
}

.form-input, .form-select, .form-textarea, .form-control {
    width: 100%;
    padding: var(--space-3) var(--space-4);
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    color: var(--text-primary);
    font-size: 0.875rem;
    transition: all var(--transition-fast);
    box-shadow: var(--shadow-inner-glow);
}

.form-input:focus, .form-select:focus, .form-textarea:focus, .form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 
        0 0 0 3px rgba(59, 130, 246, 0.15),
        0 0 20px rgba(59, 130, 246, 0.1),
        var(--shadow-inner-glow);
    background: rgba(15, 23, 42, 0.7);
}

.form-input::placeholder, .form-control::placeholder { 
    color: var(--text-muted); 
}

.form-textarea { 
    min-height: 120px; 
    resize: vertical; 
}

.form-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
    padding-right: 40px;
}

.form-checkbox { 
    width: 18px; 
    height: 18px; 
    accent-color: var(--primary); 
    cursor: pointer; 
}

.form-error { 
    color: var(--error); 
    font-size: 0.75rem; 
    margin-top: var(--space-1); 
}

.input-group { 
    display: flex; 
    gap: var(--space-2); 
}

.input-group .form-input, .input-group .form-control { 
    flex: 1; 
}

/* === Glass Stats === */
.stats-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); 
    gap: var(--space-6); 
    margin-bottom: var(--space-8); 
}

.stat-card { 
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--glass-border); 
    border-radius: var(--radius-2xl); 
    padding: var(--space-6); 
    display: flex; 
    align-items: flex-start; 
    gap: var(--space-4); 
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-inner-glow);
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
}

.stat-card:hover { 
    transform: translateY(-4px); 
    box-shadow: 
        var(--shadow-lg),
        0 0 30px rgba(59, 130, 246, 0.1);
    border-color: var(--glass-border-light);
}

.stat-icon { 
    width: 52px; 
    height: 52px; 
    border-radius: var(--radius-xl); 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    font-size: 1.25rem;
    position: relative;
    box-shadow: var(--shadow-inner-glow);
}

.stat-icon::after {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: inherit;
    opacity: 0.5;
    z-index: -1;
    filter: blur(10px);
}

.stat-icon.blue { 
    background: rgba(59, 130, 246, 0.15); 
    color: #60a5fa;
    border: 1px solid rgba(59, 130, 246, 0.2);
}
.stat-icon.blue::after { background: #3b82f6; }

.stat-icon.green { 
    background: rgba(16, 185, 129, 0.15); 
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.2);
}
.stat-icon.green::after { background: #10b981; }

.stat-icon.yellow { 
    background: rgba(245, 158, 11, 0.15); 
    color: #fbbf24;
    border: 1px solid rgba(245, 158, 11, 0.2);
}
.stat-icon.yellow::after { background: #f59e0b; }

.stat-icon.red { 
    background: rgba(239, 68, 68, 0.15); 
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.2);
}
.stat-icon.red::after { background: #ef4444; }

.stat-icon.purple { 
    background: rgba(139, 92, 246, 0.15); 
    color: #a78bfa;
    border: 1px solid rgba(139, 92, 246, 0.2);
}
.stat-icon.purple::after { background: #8b5cf6; }

.stat-icon.orange { 
    background: rgba(249, 115, 22, 0.15); 
    color: #fb923c;
    border: 1px solid rgba(249, 115, 22, 0.2);
}
.stat-icon.orange::after { background: #f97316; }

.stat-content { 
    flex: 1; 
}

.stat-value { 
    font-size: 1.875rem; 
    font-weight: 700; 
    color: var(--text-primary); 
    line-height: 1; 
    margin-bottom: var(--space-1);
    letter-spacing: -0.02em;
}

.stat-label { 
    font-size: 0.875rem; 
    color: var(--text-muted); 
}

.stat-change { 
    font-size: 0.75rem; 
    margin-top: var(--space-2);
    display: inline-flex;
    align-items: center;
    gap: var(--space-1);
    padding: 2px 8px;
    border-radius: var(--radius-full);
}

.stat-change.positive { 
    color: #34d399;
    background: rgba(16, 185, 129, 0.1);
}

.stat-change.negative { 
    color: #f87171;
    background: rgba(239, 68, 68, 0.1);
}

/* === Glass Tables === */
.table-container { 
    overflow-x: auto; 
    border-radius: var(--radius-2xl); 
    border: 1px solid var(--glass-border);
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur));
}

.table { 
    width: 100%; 
    border-collapse: collapse; 
}

.table th, .table td { 
    padding: var(--space-4); 
    text-align: left; 
    border-bottom: 1px solid var(--glass-border); 
}

.table th { 
    background: rgba(0, 0, 0, 0.3); 
    font-size: 0.75rem; 
    font-weight: 600; 
    text-transform: uppercase; 
    letter-spacing: 0.05em; 
    color: var(--text-muted); 
}

.table tr:hover td { 
    background: var(--glass-bg-light); 
}

.table tr:last-child td { 
    border-bottom: none; 
}

/* Notifications */
.stat-icon.orange {
    background: rgba(249, 115, 22, 0.15);
    color: #f97316;
}

.stat-icon.yellow {
    background: rgba(234, 179, 8, 0.15);
    color: #eab308;
}

/* Animation pour les notifications urgentes */
.notification-item[data-type="streak_danger"] {
    border-left: 3px solid #ef4444;
    animation: pulse-danger 2s infinite;
}

@keyframes pulse-danger {
    0%, 100% { background: var(--bg-card); }
    50% { background: rgba(239, 68, 68, 0.1); }
}

/* === Badges === */
.badge { 
    display: inline-flex; 
    align-items: center; 
    gap: var(--space-1); 
    padding: var(--space-1) var(--space-3); 
    font-size: 0.75rem; 
    font-weight: 600; 
    border-radius: var(--radius-full);
    backdrop-filter: blur(4px);
}

.badge-gray { 
    background: rgba(100, 116, 139, 0.15); 
    color: #94a3b8;
    border: 1px solid rgba(100, 116, 139, 0.2);
}

.badge-blue { 
    background: rgba(59, 130, 246, 0.15); 
    color: #60a5fa;
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.badge-green { 
    background: rgba(16, 185, 129, 0.15); 
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.badge-yellow { 
    background: rgba(245, 158, 11, 0.15); 
    color: #fbbf24;
    border: 1px solid rgba(245, 158, 11, 0.2);
}

.badge-red { 
    background: rgba(239, 68, 68, 0.15); 
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.badge-purple { 
    background: rgba(139, 92, 246, 0.15); 
    color: #a78bfa;
    border: 1px solid rgba(139, 92, 246, 0.2);
}

.badge-pink { 
    background: rgba(236, 72, 153, 0.15); 
    color: #f472b6;
    border: 1px solid rgba(236, 72, 153, 0.2);
}

.badge-cyan { 
    background: rgba(6, 182, 212, 0.15); 
    color: #22d3ee;
    border: 1px solid rgba(6, 182, 212, 0.2);
}

.badge-orange { 
    background: rgba(249, 115, 22, 0.15); 
    color: #fb923c;
    border: 1px solid rgba(249, 115, 22, 0.2);
}

/* === Avatars === */
.avatar { 
    width: 40px; 
    height: 40px; 
    border-radius: var(--radius-lg); 
    object-fit: cover; 
    background: var(--glass-bg);
    border: 2px solid var(--glass-border);
}

.avatar-sm { width: 32px; height: 32px; }
.avatar-lg { width: 56px; height: 56px; }
.avatar-xl { width: 80px; height: 80px; }

.avatar-group { display: flex; }
.avatar-group .avatar { 
    margin-left: -10px; 
    border: 2px solid var(--bg-dark);
    transition: all var(--transition-fast);
}
.avatar-group .avatar:first-child { margin-left: 0; }
.avatar-group .avatar:hover {
    transform: translateY(-4px);
    z-index: 10;
}

.avatar-initials { 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    font-weight: 600; 
    font-size: 0.875rem; 
    color: white; 
    background: linear-gradient(135deg, var(--primary), var(--accent));
    box-shadow: 0 0 15px var(--primary-glow);
}

/* === Glass Dropdown === */
.dropdown { 
    position: relative; 
}

.dropdown-menu { 
    position: absolute; 
    top: 100%; 
    right: 0; 
    min-width: 220px; 
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur-heavy));
    -webkit-backdrop-filter: blur(var(--glass-blur-heavy));
    border: 1px solid var(--glass-border); 
    border-radius: var(--radius-xl); 
    box-shadow: var(--shadow-xl); 
    padding: var(--space-2); 
    z-index: 60; 
    opacity: 0; 
    visibility: hidden; 
    transform: translateY(10px); 
    transition: all var(--transition-fast);
}

.dropdown-menu::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
}

.dropdown.active .dropdown-menu { 
    opacity: 1; 
    visibility: visible; 
    transform: translateY(4px); 
}

.dropdown-item { 
    display: flex; 
    align-items: center; 
    gap: var(--space-3); 
    padding: var(--space-3) var(--space-4); 
    color: var(--text-secondary); 
    border-radius: var(--radius-lg); 
    transition: all var(--transition-fast); 
    cursor: pointer; 
}

.dropdown-item:hover { 
    background: var(--glass-bg-light); 
    color: var(--text-primary); 
}

.dropdown-item.danger { 
    color: var(--error); 
}

.dropdown-item.unread { 
    background: rgba(59, 130, 246, 0.05); 
    border-left: 3px solid var(--primary); 
}

.dropdown-divider { 
    height: 1px; 
    background: var(--glass-border); 
    margin: var(--space-2) 0; 
}

/* === Glass Modal === */
.modal-overlay { 
    position: fixed; 
    inset: 0; 
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex; 
    align-items: center; 
    justify-content: center; 
    z-index: 100; 
    opacity: 0; 
    visibility: hidden; 
    transition: all var(--transition-normal); 
}

.modal-overlay.active { 
    opacity: 1; 
    visibility: visible; 
}

.modal { 
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur-heavy));
    -webkit-backdrop-filter: blur(var(--glass-blur-heavy));
    border: 1px solid var(--glass-border); 
    border-radius: var(--radius-2xl); 
    width: 100%; 
    max-width: 500px; 
    max-height: 90vh; 
    overflow-y: auto; 
    transform: scale(0.9) translateY(20px); 
    transition: transform var(--transition-normal);
    box-shadow: 
        var(--shadow-xl),
        0 0 60px rgba(59, 130, 246, 0.1);
    position: relative;
}

.modal::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
    border-radius: var(--radius-2xl) var(--radius-2xl) 0 0;
}

.modal-overlay.active .modal { 
    transform: scale(1) translateY(0); 
}

.modal-lg { max-width: 800px; }
.modal-xl { max-width: 1100px; }

.modal-header { 
    display: flex; 
    align-items: center; 
    justify-content: space-between; 
    padding: var(--space-6); 
    border-bottom: 1px solid var(--glass-border);
    background: rgba(0, 0, 0, 0.2);
}

.modal-title { 
    font-size: 1.25rem; 
    font-weight: 600; 
}

.modal-close { 
    background: var(--glass-bg-light); 
    border: 1px solid var(--glass-border); 
    color: var(--text-muted); 
    cursor: pointer; 
    padding: var(--space-2); 
    border-radius: var(--radius-lg); 
    transition: all var(--transition-fast);
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover { 
    background: rgba(239, 68, 68, 0.1); 
    border-color: rgba(239, 68, 68, 0.3);
    color: var(--error); 
}

.modal-body { 
    padding: var(--space-6); 
}

.modal-footer { 
    display: flex; 
    justify-content: flex-end; 
    gap: var(--space-3); 
    padding: var(--space-4) var(--space-6); 
    border-top: 1px solid var(--glass-border); 
    background: rgba(0, 0, 0, 0.2);
}

/* === Glass Alerts === */
.alert { 
    padding: var(--space-4); 
    border-radius: var(--radius-xl); 
    margin-bottom: var(--space-4); 
    display: flex; 
    align-items: center; 
    gap: var(--space-3);
    backdrop-filter: blur(10px);
}

.alert-success { 
    background: rgba(16, 185, 129, 0.1); 
    border: 1px solid rgba(16, 185, 129, 0.2); 
    color: #34d399; 
}

.alert-error { 
    background: rgba(239, 68, 68, 0.1); 
    border: 1px solid rgba(239, 68, 68, 0.2); 
    color: #f87171; 
}

.alert-warning { 
    background: rgba(245, 158, 11, 0.1); 
    border: 1px solid rgba(245, 158, 11, 0.2); 
    color: #fbbf24; 
}

.alert-info { 
    background: rgba(59, 130, 246, 0.1); 
    border: 1px solid rgba(59, 130, 246, 0.2); 
    color: #60a5fa; 
}

/* === Glass Project Card === */
.project-card { 
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--glass-border); 
    border-radius: var(--radius-2xl); 
    overflow: hidden; 
    transition: all var(--transition-normal);
    position: relative;
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
}

.project-card:hover { 
    transform: translateY(-6px); 
    box-shadow: 
        var(--shadow-xl),
        0 0 40px rgba(59, 130, 246, 0.15);
    border-color: var(--primary);
}

.project-card-header { 
    padding: var(--space-4); 
    display: flex; 
    align-items: flex-start; 
    justify-content: space-between; 
    gap: var(--space-3); 
}

.project-card-title { 
    font-size: 1rem; 
    font-weight: 600; 
    color: var(--text-primary); 
    display: -webkit-box; 
    -webkit-line-clamp: 2; 
    -webkit-box-orient: vertical; 
    overflow: hidden; 
}

.project-card-body { 
    padding: 0 var(--space-4) var(--space-4); 
}

.project-card-meta { 
    display: flex; 
    align-items: center; 
    gap: var(--space-4); 
    font-size: 0.75rem; 
    color: var(--text-muted); 
    margin-bottom: var(--space-3); 
}

.project-card-meta i { 
    margin-right: var(--space-1); 
}

.project-card-progress { 
    height: 6px; 
    background: rgba(0, 0, 0, 0.3); 
    border-radius: var(--radius-full); 
    overflow: hidden; 
    margin-bottom: var(--space-3);
}

.project-card-progress-bar { 
    height: 100%; 
    background: linear-gradient(90deg, var(--primary), var(--primary-light)); 
    border-radius: var(--radius-full); 
    transition: width var(--transition-normal);
    box-shadow: 0 0 10px var(--primary-glow);
    position: relative;
}

.project-card-progress-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.3),
        transparent
    );
    animation: progressShimmer 2s infinite;
}

@keyframes progressShimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.project-card-footer { 
    padding: var(--space-3) var(--space-4); 
    background: rgba(0, 0, 0, 0.2); 
    border-top: 1px solid var(--glass-border); 
    display: flex; 
    align-items: center; 
    justify-content: space-between; 
}

/* === Glass Pricing === */
.pricing-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); 
    gap: var(--space-6); 
    max-width: 1000px; 
    margin: 0 auto; 
}

.pricing-card { 
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border: 2px solid var(--glass-border); 
    border-radius: var(--radius-2xl); 
    padding: var(--space-8); 
    text-align: center; 
    transition: all var(--transition-normal); 
    position: relative;
    overflow: hidden;
}

.pricing-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
}

.pricing-card:hover { 
    transform: translateY(-8px); 
    box-shadow: var(--shadow-xl); 
}

.pricing-card.featured { 
    border-color: var(--primary); 
    box-shadow: 
        var(--shadow-glow-strong),
        0 0 80px rgba(59, 130, 246, 0.15);
    background: linear-gradient(
        135deg,
        rgba(59, 130, 246, 0.1),
        var(--glass-bg)
    );
}

.pricing-card.featured::before { 
    content: 'Populaire'; 
    position: absolute; 
    top: -1px; 
    left: 50%; 
    transform: translateX(-50%); 
    background: linear-gradient(135deg, var(--primary), var(--primary-dark)); 
    color: white; 
    font-size: 0.75rem; 
    font-weight: 600; 
    padding: var(--space-2) var(--space-6); 
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
    box-shadow: 0 4px 15px var(--primary-glow);
}

.pricing-name { 
    font-size: 1.25rem; 
    font-weight: 600; 
    margin-bottom: var(--space-2); 
}

.pricing-price { 
    font-size: 3.5rem; 
    font-weight: 700; 
    color: var(--text-primary); 
    line-height: 1;
    background: linear-gradient(135deg, var(--text-primary), var(--primary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.pricing-price span { 
    font-size: 1rem; 
    font-weight: 400; 
    color: var(--text-muted);
    -webkit-text-fill-color: var(--text-muted);
}

.pricing-description { 
    color: var(--text-muted); 
    margin: var(--space-4) 0 var(--space-6); 
}

.pricing-features { 
    list-style: none; 
    text-align: left; 
    margin-bottom: var(--space-8); 
}

.pricing-features li { 
    display: flex; 
    align-items: center; 
    gap: var(--space-3); 
    padding: var(--space-3) 0; 
    border-bottom: 1px solid var(--glass-border); 
    font-size: 0.875rem; 
}

.pricing-features li:last-child { 
    border-bottom: none; 
}

.pricing-features li i { 
    color: var(--success);
    text-shadow: 0 0 10px rgba(16, 185, 129, 0.5);
}

.pricing-features li.disabled { 
    color: var(--text-muted); 
}

.pricing-features li.disabled i { 
    color: var(--text-muted);
    text-shadow: none;
}

/* === Empty State === */
.empty-state { 
    text-align: center; 
    padding: var(--space-12); 
}

.empty-state-icon { 
    width: 100px; 
    height: 100px; 
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 50%; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    margin: 0 auto var(--space-6); 
    font-size: 2.5rem; 
    color: var(--text-muted);
}

.empty-state-title { 
    font-size: 1.25rem; 
    font-weight: 600; 
    margin-bottom: var(--space-2); 
}

.empty-state-description { 
    color: var(--text-muted); 
    margin-bottom: var(--space-6); 
}

/* === Loader === */
.loader { 
    width: 44px; 
    height: 44px; 
    border: 3px solid var(--glass-border); 
    border-top-color: var(--primary); 
    border-radius: 50%; 
    animation: spin 1s linear infinite;
    box-shadow: 0 0 20px var(--primary-glow);
}

@keyframes spin { 
    to { transform: rotate(360deg); } 
}

.page-loader { 
    position: fixed; 
    inset: 0; 
    background: var(--bg-darker);
    display: flex; 
    align-items: center; 
    justify-content: center; 
    z-index: 1000; 
}

/* === Glass Toast === */
.toast-container { 
    position: fixed; 
    top: var(--space-6); 
    right: var(--space-6); 
    z-index: 200; 
    display: flex; 
    flex-direction: column; 
    gap: var(--space-3); 
}

.toast { 
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur-heavy));
    -webkit-backdrop-filter: blur(var(--glass-blur-heavy));
    border: 1px solid var(--glass-border); 
    border-radius: var(--radius-xl); 
    padding: var(--space-4); 
    min-width: 320px; 
    box-shadow: var(--shadow-xl); 
    display: flex; 
    align-items: flex-start; 
    gap: var(--space-3); 
    animation: slideIn 0.3s ease;
}

@keyframes slideIn { 
    from { transform: translateX(100%); opacity: 0; } 
    to { transform: translateX(0); opacity: 1; } 
}

.toast-icon { 
    width: 28px; 
    height: 28px; 
    border-radius: 50%; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    flex-shrink: 0;
}

.toast.success .toast-icon { 
    background: rgba(16, 185, 129, 0.15); 
    color: #34d399;
    box-shadow: 0 0 15px rgba(16, 185, 129, 0.3);
}

.toast.error .toast-icon { 
    background: rgba(239, 68, 68, 0.15); 
    color: #f87171;
    box-shadow: 0 0 15px rgba(239, 68, 68, 0.3);
}

.toast.warning .toast-icon { 
    background: rgba(245, 158, 11, 0.15); 
    color: #fbbf24;
    box-shadow: 0 0 15px rgba(245, 158, 11, 0.3);
}

.toast.info .toast-icon { 
    background: rgba(59, 130, 246, 0.15); 
    color: #60a5fa;
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.3);
}

.toast-content { 
    flex: 1; 
}

.toast-title { 
    font-weight: 600; 
    font-size: 0.875rem; 
    margin-bottom: var(--space-1); 
}

.toast-message { 
    font-size: 0.75rem; 
    color: var(--text-muted); 
}

.toast-close { 
    background: none; 
    border: none; 
    color: var(--text-muted); 
    cursor: pointer; 
    padding: var(--space-1);
    transition: color var(--transition-fast);
}

.toast-close:hover {
    color: var(--text-primary);
}

/* === Glass Tabs === */
.tabs {
    display: flex;
    gap: var(--space-1);
    padding: var(--space-2);
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-xl);
    margin-bottom: var(--space-6);
    overflow-x: auto;
}

.tab {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-6);
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.875rem;
    background: transparent;
    border: none;
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all var(--transition-fast);
    white-space: nowrap;
    position: relative;
}

.tab:hover {
    color: var(--text-primary);
    background: var(--glass-bg-light);
}

.tab.active {
    color: white;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    box-shadow: 0 4px 15px var(--primary-glow);
}

.tab i {
    font-size: 0.875rem;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* === Utilities === */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.text-muted { color: var(--text-muted); }
.text-primary { color: var(--text-primary); }
.text-sm { font-size: 0.875rem; }
.text-xs { font-size: 0.75rem; }
.font-semibold { font-weight: 600; }
.font-medium { font-weight: 500; }

.flex { display: flex; }
.flex-col { flex-direction: column; }
.flex-1 { flex: 1; }
.flex-shrink-0 { flex-shrink: 0; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-2 { gap: var(--space-2); }
.gap-3 { gap: var(--space-3); }
.gap-4 { gap: var(--space-4); }
.gap-6 { gap: var(--space-6); }

.grid { display: grid; }
.grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid-cols-4 { grid-template-columns: repeat(4, 1fr); }

.mt-2 { margin-top: var(--space-2); }
/* === Suite des Utilities === */
.mb-4 { margin-bottom: var(--space-4); }
.mb-6 { margin-bottom: var(--space-6); }
.ml-auto { margin-left: auto; }

.p-2 { padding: var(--space-2); }
.p-3 { padding: var(--space-3); }
.p-4 { padding: var(--space-4); }
.p-6 { padding: var(--space-6); }
.py-4 { padding-top: var(--space-4); padding-bottom: var(--space-4); }
.py-6 { padding-top: var(--space-6); padding-bottom: var(--space-6); }
.py-8 { padding-top: var(--space-8); padding-bottom: var(--space-8); }
.px-4 { padding-left: var(--space-4); padding-right: var(--space-4); }
.px-6 { padding-left: var(--space-6); padding-right: var(--space-6); }

.w-full { width: 100%; }
.h-full { height: 100%; }
.min-w-0 { min-width: 0; }

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

.border-t { border-top: 1px solid var(--glass-border); }
.border-b { border-bottom: 1px solid var(--glass-border); }
.bg-darker { background: var(--bg-darker); }

/* Glass utility */
.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--glass-border);
}

.glass-light {
    background: var(--glass-bg-light);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--glass-border-light);
}

.hidden { display: none; }
.block { display: block; }
.opacity-50 { opacity: 0.5; }
.cursor-pointer { cursor: pointer; }
.truncate { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.line-through { text-decoration: line-through; }
.whitespace-pre-wrap { white-space: pre-wrap; }

.space-y-1 > * + * { margin-top: var(--space-1); }
.space-y-2 > * + * { margin-top: var(--space-2); }
.space-y-3 > * + * { margin-top: var(--space-3); }
.space-y-4 > * + * { margin-top: var(--space-4); }

.hover\:bg-darker:hover { background: var(--bg-darker); }
.hover\:glow:hover { box-shadow: var(--shadow-glow); }

/* === Glow Text Effect === */
.text-glow {
    text-shadow: 0 0 20px var(--primary-glow);
}

.text-gradient {
    background: linear-gradient(135deg, var(--primary-light), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* === Animated Border === */
.border-glow {
    position: relative;
}

.border-glow::after {
    content: '';
    position: absolute;
    inset: -2px;
    background: linear-gradient(
        45deg,
        var(--primary),
        var(--accent),
        var(--primary)
    );
    border-radius: inherit;
    z-index: -1;
    opacity: 0;
    transition: opacity var(--transition-normal);
    filter: blur(8px);
}

.border-glow:hover::after {
    opacity: 0.6;
}

/* === Scrollbar Styling === */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-darker);
    border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb {
    background: var(--glass-border-light);
    border-radius: var(--radius-full);
    transition: background var(--transition-fast);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

/* === Selection Styling === */
::selection {
    background: var(--primary);
    color: white;
}

/* === Focus Visible === */
:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* === Responsive === */
@media (max-width: 1024px) {
    .app-layout { 
        flex-direction: column; 
    }
    
    .sidebar { 
        transform: translateX(-100%); 
    }
    
    .sidebar.open { 
        transform: translateX(0); 
        box-shadow: 
            var(--shadow-xl),
            0 0 60px rgba(0, 0, 0, 0.5);
    }
    
    .sidebar-close { 
        display: flex; 
    }
    
    .main-content { 
        margin-left: 0 !important; 
        width: 100%; 
        padding: var(--space-4); 
    }
    
    .navbar { 
        flex-wrap: wrap; 
        gap: var(--space-3); 
    }
    
    .navbar-title { 
        font-size: 1.125rem; 
    }
    
    .navbar-search { 
        display: none; 
    }
    
    .sidebar-toggle { 
        display: flex !important; 
    }
    
    .stats-grid { 
        grid-template-columns: 1fr 1fr; 
    }
    
    .grid { 
        grid-template-columns: 1fr !important; 
    }
    
    .tabs {
        padding: var(--space-1);
    }
    
    .tab {
        padding: var(--space-2) var(--space-4);
        font-size: 0.8rem;
    }
}

@media (max-width: 640px) {
    .main-content { 
        padding: var(--space-3); 
    }
    
    .stats-grid { 
        grid-template-columns: 1fr; 
    }
    
    .stat-card { 
        padding: var(--space-4); 
    }
    
    .stat-value { 
        font-size: 1.5rem; 
    }
    
    .stat-icon {
        width: 44px;
        height: 44px;
    }
    
    .card { 
        padding: var(--space-4);
        border-radius: var(--radius-xl);
    }
    
    .card-header { 
        flex-direction: column; 
        align-items: flex-start; 
        gap: var(--space-3); 
    }
    
    .navbar-right .sidebar-user span { 
        display: none; 
    }
    
    .table th, .table td { 
        padding: var(--space-2) var(--space-3); 
        font-size: 0.75rem; 
    }
    
    .dropdown-menu { 
        position: fixed !important; 
        left: var(--space-3) !important; 
        right: var(--space-3) !important; 
        width: auto !important;
        max-height: 70vh;
        overflow-y: auto;
    }
    
    .modal {
        margin: var(--space-3);
        max-height: calc(100vh - var(--space-6));
        border-radius: var(--radius-xl);
    }
    
    .modal-header,
    .modal-body,
    .modal-footer {
        padding: var(--space-4);
    }
    
    .toast-container {
        left: var(--space-3);
        right: var(--space-3);
    }
    
    .toast {
        min-width: auto;
        width: 100%;
    }
    
    .tabs {
        border-radius: var(--radius-lg);
    }
    
    .tab i {
        display: none;
    }
    
    h1 { font-size: 1.75rem; }
    h2 { font-size: 1.5rem; }
    h3 { font-size: 1.25rem; }
}

@media (max-width: 480px) {
    .navbar-left { 
        flex: 1; 
    }
    
    .navbar-title { 
        font-size: 1rem; 
        overflow: hidden; 
        text-overflow: ellipsis; 
        white-space: nowrap; 
    }
    
    .pricing-grid { 
        grid-template-columns: 1fr; 
    }
    
    .pricing-card {
        padding: var(--space-6);
    }
    
    .pricing-price {
        font-size: 2.5rem;
    }
    
    .btn {
        padding: var(--space-2) var(--space-4);
        font-size: 0.8rem;
    }
    
    .btn-lg {
        padding: var(--space-3) var(--space-6);
        font-size: 0.875rem;
    }
    
    .sidebar-user {
        padding: var(--space-2);
    }
    
    .sidebar-user-avatar {
        width: 36px;
        height: 36px;
    }
}

/* === Print Styles === */
@media print {
    .sidebar,
    .navbar,
    .toast-container,
    .modal-overlay {
        display: none !important;
    }
    
    .main-content {
        margin-left: 0 !important;
        padding: 0 !important;
    }
    
    .card,
    .stat-card,
    .project-card {
        break-inside: avoid;
        box-shadow: none !important;
        border: 1px solid #ddd !important;
    }
    
    body {
        background: white !important;
        color: black !important;
    }
}

/* === Reduced Motion === */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
}

/* === High Contrast Mode Support === */
@media (prefers-contrast: high) {
    :root {
        --glass-border: rgba(255, 255, 255, 0.3);
        --glass-border-light: rgba(255, 255, 255, 0.5);
        --text-secondary: #e2e8f0;
        --text-muted: #94a3b8;
    }
    
    .btn-primary {
        border: 2px solid white;
    }
}