/* =====================================================
   REVIEWURGE - PREMIUM UI DESIGN SYSTEM
   Modern, Clean, Professional Design
   ===================================================== */

/* =====================================================
   CSS VARIABLES
   ===================================================== */
:root {
    /* Brand Colors - Vibrant Purple/Indigo Theme */
    --primary: #7c3aed;
    --primary-light: #a78bfa;
    --primary-dark: #5b21b6;
    --primary-50: #f5f3ff;
    --primary-100: #ede9fe;
    --primary-200: #ddd6fe;
    
    /* Secondary - Electric Blue */
    --secondary: #06b6d4;
    --secondary-light: #22d3ee;
    --secondary-dark: #0891b2;
    
    /* Accent - Warm Orange */
    --accent: #f97316;
    --accent-light: #fb923c;
    --accent-dark: #ea580c;
    
    /* Success/Warning/Error */
    --success: #10b981;
    --success-light: #34d399;
    --warning: #f59e0b;
    --error: #ef4444;
    
    /* Neutrals - Refined Grays */
    --gray-50: #fafafa;
    --gray-100: #f4f4f5;
    --gray-200: #e4e4e7;
    --gray-300: #d4d4d8;
    --gray-400: #a1a1aa;
    --gray-500: #71717a;
    --gray-600: #52525b;
    --gray-700: #3f3f46;
    --gray-800: #27272a;
    --gray-900: #18181b;
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #7c3aed 0%, #a855f7 50%, #ec4899 100%);
    --gradient-secondary: linear-gradient(135deg, #06b6d4 0%, #3b82f6 100%);
    --gradient-dark: linear-gradient(135deg, #1e1b4b 0%, #312e81 100%);
    --gradient-glass: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.05) 100%);
    
    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
    --shadow-md: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
    --shadow-lg: 0 20px 25px -5px rgba(0,0,0,0.1), 0 10px 10px -5px rgba(0,0,0,0.04);
    --shadow-xl: 0 25px 50px -12px rgba(0,0,0,0.25);
    --shadow-glow: 0 0 40px rgba(124, 58, 237, 0.3);
    --shadow-glow-lg: 0 0 60px rgba(124, 58, 237, 0.4);
    
    /* Border Radius */
    --radius-sm: 6px;
    --radius: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-2xl: 32px;
    --radius-full: 9999px;
    
    /* Transitions */
    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition: 250ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 350ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-spring: 500ms cubic-bezier(0.175, 0.885, 0.32, 1.275);
    
    /* Typography */
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* =====================================================
   BASE STYLES
   ===================================================== */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    background: var(--gray-50);
    color: var(--gray-800);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

/* =====================================================
   NAVBAR - Premium Glass Design
   ===================================================== */
.navbar-main {
    background: linear-gradient(135deg, rgba(30, 27, 75, 0.97) 0%, rgba(49, 46, 129, 0.97) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0.875rem 0;
    transition: all 0.4s ease;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar-main::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(124, 58, 237, 0.5), rgba(168, 85, 247, 0.5), transparent);
}

.navbar-main.scrolled {
    padding: 0.625rem 0;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

.navbar-brand-custom {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 800;
    font-size: 1.5rem;
    color: white !important;
    text-decoration: none;
    transition: all 0.3s ease;
}

.navbar-brand-custom:hover {
    transform: translateY(-1px);
}

.brand-icon {
    width: 44px;
    height: 44px;
    background: var(--gradient-primary);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: white;
    box-shadow: 0 4px 20px rgba(124, 58, 237, 0.4);
    transition: all 0.3s ease;
}

.navbar-brand-custom:hover .brand-icon {
    transform: rotate(-5deg) scale(1.05);
    box-shadow: 0 6px 25px rgba(124, 58, 237, 0.5);
}

.nav-link-custom {
    color: rgba(255, 255, 255, 0.85) !important;
    font-weight: 500;
    padding: 0.625rem 1.25rem !important;
    border-radius: var(--radius-lg);
    transition: all 0.3s ease;
    position: relative;
}

.nav-link-custom:hover {
    color: white !important;
    background: rgba(255, 255, 255, 0.1);
}

/* =====================================================
   BUTTONS - Refined & Animated
   ===================================================== */
.btn-primary-custom {
    background: var(--gradient-primary);
    border: none;
    color: white;
    font-weight: 600;
    padding: 0.875rem 2rem;
    border-radius: var(--radius-xl);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(124, 58, 237, 0.35);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-primary-custom::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: 0.5s;
}

.btn-primary-custom:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(124, 58, 237, 0.45);
    color: white;
}

.btn-primary-custom:hover::before {
    left: 100%;
}

.btn-primary-custom:active {
    transform: translateY(-1px);
}

.btn-secondary-custom {
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    font-weight: 600;
    padding: 0.75rem 1.75rem;
    border-radius: var(--radius-xl);
    transition: all 0.3s ease;
}

.btn-secondary-custom:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
    color: white;
}

/* =====================================================
   AUTHENTICATION PAGES - Beautiful Login/Register
   ===================================================== */
.animated-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: linear-gradient(135deg, #f8fafc 0%, #eef2ff 25%, #faf5ff 50%, #fdf2f8 75%, #f8fafc 100%);
    overflow: hidden;
}

.animated-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(ellipse at 20% 20%, rgba(99, 102, 241, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 80%, rgba(168, 85, 247, 0.06) 0%, transparent 50%),
        radial-gradient(ellipse at 40% 60%, rgba(6, 182, 212, 0.05) 0%, transparent 50%);
    animation: bgPulse 10s ease-in-out infinite alternate;
}

@keyframes bgPulse {
    0% { opacity: 0.8; transform: scale(1); }
    100% { opacity: 1; transform: scale(1.05); }
}

.floating-shapes {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.shape {
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.06) 0%, rgba(168, 85, 247, 0.04) 100%);
    animation: float 20s ease-in-out infinite;
}

.shape:nth-child(1) {
    width: 400px;
    height: 400px;
    top: -100px;
    left: -100px;
    animation-delay: 0s;
}

.shape:nth-child(2) {
    width: 300px;
    height: 300px;
    bottom: -50px;
    right: -50px;
    animation-delay: -7s;
}

.shape:nth-child(3) {
    width: 200px;
    height: 200px;
    top: 40%;
    right: 10%;
    animation-delay: -14s;
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    25% { transform: translateY(-30px) rotate(5deg); }
    50% { transform: translateY(0) rotate(0deg); }
    75% { transform: translateY(30px) rotate(-5deg); }
}

.auth-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
}

.auth-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: var(--radius-2xl);
    padding: 3rem;
    width: 100%;
    max-width: 440px;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
}

.auth-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
}

.auth-header {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-logo {
    width: 70px;
    height: 70px;
    background: var(--gradient-primary);
    border-radius: var(--radius-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 1.75rem;
    color: white;
    box-shadow: 0 10px 40px rgba(124, 58, 237, 0.4);
}

.auth-title {
    font-size: 1.875rem;
    font-weight: 800;
    color: var(--gray-900);
    margin: 0 0 0.5rem;
}

.auth-subtitle {
    color: var(--gray-500);
    margin: 0;
}

/* Form Styles */
.form-label-custom {
    font-weight: 600;
    color: var(--gray-700);
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
    display: block;
}

.input-group-custom {
    position: relative;
}

.input-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray-400);
    font-size: 1rem;
    z-index: 2;
    transition: color 0.3s ease;
}

.form-control-custom {
    width: 100%;
    padding: 0.875rem 1rem 0.875rem 2.75rem;
    font-size: 1rem;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-lg);
    background: white;
    transition: all 0.3s ease;
    color: var(--gray-800);
}

.form-control-custom:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(124, 58, 237, 0.1);
}

.form-control-custom:focus + .input-icon,
.input-group-custom.focused .input-icon {
    color: var(--primary);
}

.form-control-custom::placeholder {
    color: var(--gray-400);
}

.form-check-custom {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.form-check-custom input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--primary);
}

.auth-footer {
    text-align: center;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--gray-200);
    color: var(--gray-600);
}

.auth-footer a {
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
    transition: color 0.3s ease;
}

.auth-footer a:hover {
    color: var(--primary-dark);
}

/* =====================================================
   SIDEBAR - Modern Glassmorphic
   ===================================================== */
.dashboard-wrapper {
    min-height: calc(100vh - 60px);
    background: linear-gradient(135deg, #f8fafc 0%, #eef2ff 100%);
}

.sidebar-custom {
    background: linear-gradient(180deg, #1e1b4b 0%, #312e81 50%, #4c1d95 100%);
    min-height: calc(100vh - 60px);
    padding: 1.5rem 0;
    position: sticky;
    top: 60px;
    display: flex;
    flex-direction: column;
    box-shadow: 4px 0 30px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.sidebar-bg-effects {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.sidebar-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.5;
}

.sidebar-glow-1 {
    width: 200px;
    height: 200px;
    background: rgba(124, 58, 237, 0.6);
    top: 5%;
    left: -60px;
    animation: glowPulse 6s ease-in-out infinite alternate;
}

.sidebar-glow-2 {
    width: 150px;
    height: 150px;
    background: rgba(236, 72, 153, 0.4);
    bottom: 15%;
    right: -40px;
    animation: glowPulse 6s ease-in-out infinite alternate-reverse;
}

@keyframes glowPulse {
    0% { transform: scale(1); opacity: 0.4; }
    100% { transform: scale(1.2); opacity: 0.6; }
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 0 0.75rem;
    position: relative;
    z-index: 1;
    flex: 1;
}

.sidebar-section {
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    padding: 1.5rem 1rem 0.5rem;
    margin-top: 0.25rem;
}

.sidebar-nav-item {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    padding: 0.875rem 1rem;
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    border-radius: var(--radius-lg);
    transition: all 0.3s ease;
    position: relative;
}

.sidebar-nav-item i {
    width: 20px;
    text-align: center;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.sidebar-nav-item span {
    flex: 1;
}

.sidebar-nav-item:hover {
    color: white;
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(4px);
}

.sidebar-nav-item:hover i {
    transform: scale(1.1);
}

.sidebar-nav-item.active {
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.5) 0%, rgba(168, 85, 247, 0.4) 100%);
    color: white;
    box-shadow: 0 4px 20px rgba(124, 58, 237, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.sidebar-nav-item.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 60%;
    background: white;
    border-radius: 0 4px 4px 0;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.5);
}

.sidebar-badge {
    background: linear-gradient(135deg, #f97316 0%, #ef4444 100%);
    color: white;
    font-size: 0.6rem;
    font-weight: 700;
    padding: 0.2rem 0.6rem;
    border-radius: var(--radius-full);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 10px rgba(249, 115, 22, 0.4);
}

/* Sidebar Upgrade Card */
.sidebar-footer {
    padding: 1rem 0.75rem;
    margin-top: auto;
    position: relative;
    z-index: 1;
}

.sidebar-upgrade-card {
    background: linear-gradient(135deg, rgba(255,255,255,0.12) 0%, rgba(255,255,255,0.06) 100%);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-xl);
    padding: 1.25rem;
    text-align: center;
    backdrop-filter: blur(10px);
}

.upgrade-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #f97316 0%, #ef4444 100%);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 0.75rem;
    font-size: 1.25rem;
    color: white;
    box-shadow: 0 8px 25px rgba(249, 115, 22, 0.4);
    animation: floatIcon 3s ease-in-out infinite;
}

@keyframes floatIcon {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}

.sidebar-upgrade-card h6 {
    color: white;
    font-weight: 700;
    margin: 0 0 0.25rem;
}

.sidebar-upgrade-card p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.75rem;
    margin: 0 0 1rem;
}

.btn-upgrade {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: white;
    color: var(--primary);
    font-weight: 600;
    font-size: 0.85rem;
    padding: 0.6rem 1.25rem;
    border-radius: var(--radius-lg);
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.btn-upgrade:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.3);
    color: var(--primary-dark);
}

/* Main Content */
.main-content {
    background: transparent;
    min-height: calc(100vh - 60px);
}

.content-wrapper {
    padding: 2rem;
}

/* =====================================================
   FOOTER - Premium Dark Design
   ===================================================== */
.footer-custom {
    background: linear-gradient(135deg, #0f0a1e 0%, #1a1333 50%, #1e1b4b 100%);
    padding: 5rem 0 2rem;
    position: relative;
    overflow: hidden;
}

.footer-custom::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(124, 58, 237, 0.6), rgba(236, 72, 153, 0.6), transparent);
}

.footer-custom::after {
    content: '';
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(ellipse at 10% 90%, rgba(124, 58, 237, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 90% 10%, rgba(236, 72, 153, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.footer-brand {
    font-size: 1.5rem;
    font-weight: 800;
    color: white;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}

.footer-brand i {
    width: 42px;
    height: 42px;
    background: var(--gradient-primary);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    box-shadow: 0 4px 20px rgba(124, 58, 237, 0.4);
}

.footer-custom h6 {
    font-weight: 700;
    letter-spacing: 0.5px;
}

.footer-links {
    position: relative;
    z-index: 1;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    display: inline-block;
}

.footer-links a:hover {
    color: white;
    transform: translateX(5px);
}

.footer-custom hr {
    opacity: 0.1;
    margin: 3rem 0 1.5rem;
}

.footer-custom .text-white-50 {
    position: relative;
    z-index: 1;
}

/* =====================================================
   CARDS - Glass Effect
   ===================================================== */
.card-custom {
    background: white;
    border-radius: var(--radius-xl);
    border: 1px solid var(--gray-100);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    overflow: hidden;
}

.card-custom:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.card-glass {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    border-radius: var(--radius-xl);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* =====================================================
   ALERTS
   ===================================================== */
.alert-custom {
    padding: 1rem 1.25rem;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    animation: slideInDown 0.4s ease;
}

@keyframes slideInDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

.alert-success-custom {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, rgba(16, 185, 129, 0.05) 100%);
    border: 1px solid rgba(16, 185, 129, 0.2);
    color: #059669;
}

.alert-error-custom {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.1) 0%, rgba(239, 68, 68, 0.05) 100%);
    border: 1px solid rgba(239, 68, 68, 0.2);
    color: #dc2626;
}

.alert-warning-custom {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.1) 0%, rgba(245, 158, 11, 0.05) 100%);
    border: 1px solid rgba(245, 158, 11, 0.2);
    color: #d97706;
}

.alert-info-custom {
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.1) 0%, rgba(6, 182, 212, 0.05) 100%);
    border: 1px solid rgba(6, 182, 212, 0.2);
    color: #0891b2;
}

/* =====================================================
   AVATAR
   ===================================================== */
.avatar {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 2px 10px rgba(124, 58, 237, 0.3);
}

.avatar-sm { width: 32px; height: 32px; font-size: 0.75rem; }
.avatar-lg { width: 56px; height: 56px; font-size: 1.25rem; }

/* =====================================================
   DROPDOWN
   ===================================================== */
.dropdown-menu-custom {
    background: white;
    border: 1px solid var(--gray-100);
    border-radius: var(--radius-xl);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    padding: 0.5rem;
    margin-top: 0.5rem !important;
    animation: dropIn 0.2s ease;
}

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

.dropdown-item-custom {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    color: var(--gray-700);
    text-decoration: none;
    border-radius: var(--radius-md);
    transition: all 0.2s ease;
}

.dropdown-item-custom i {
    width: 18px;
    color: var(--gray-400);
}

.dropdown-item-custom:hover {
    background: var(--primary-50);
    color: var(--primary);
}

.dropdown-item-custom:hover i {
    color: var(--primary);
}

/* =====================================================
   PAGE LOADER
   ===================================================== */
#page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: var(--gradient-primary);
    z-index: 99999;
    pointer-events: none;
}

#page-loader.start { width: 30%; transition: width 0.3s ease-out; }
#page-loader.loading { width: 70%; transition: width 8s cubic-bezier(0.1, 0.05, 0.1, 0.05); }
#page-loader.complete { width: 100%; transition: width 0.2s ease-out; }
#page-loader.hide { opacity: 0; transition: opacity 0.3s ease; }

/* =====================================================
   SCROLLBAR
   ===================================================== */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: var(--gray-100);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--primary-light), var(--primary));
    border-radius: var(--radius-full);
    border: 2px solid var(--gray-100);
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, var(--primary), var(--primary-dark));
}

/* =====================================================
   ANIMATIONS
   ===================================================== */
.fade-in {
    animation: fadeIn 0.5s ease forwards;
}

.slide-up {
    animation: slideUp 0.5s ease forwards;
}

.bounce-in {
    animation: bounceIn 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55) forwards;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

@keyframes bounceIn {
    0% { opacity: 0; transform: scale(0.3); }
    50% { transform: scale(1.05); }
    70% { transform: scale(0.9); }
    100% { opacity: 1; transform: scale(1); }
}

/* =====================================================
   UTILITY CLASSES
   ===================================================== */
.text-gradient {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.btn-close-custom {
    background: none;
    border: none;
    padding: 0.5rem;
    cursor: pointer;
    opacity: 0.5;
    transition: opacity 0.2s;
    color: inherit;
}

.btn-close-custom:hover {
    opacity: 1;
}

/* =====================================================
   MOBILE RESPONSIVE
   ===================================================== */
@media (max-width: 991.98px) {
    .sidebar-custom {
        position: fixed;
        left: -280px;
        top: 0;
        width: 280px;
        height: 100vh;
        z-index: 1100;
        transition: left 0.4s ease;
        padding-top: 70px;
    }
    
    .sidebar-custom.show {
        left: 0;
    }
    
    .content-wrapper {
        padding: 1rem;
    }
    
    .auth-card {
        padding: 2rem;
    }
    
    .footer-custom {
        padding: 3rem 0 1.5rem;
    }
}

/* Mobile Menu Button */
.mobile-menu-btn {
    width: 42px;
    height: 42px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-md);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.mobile-menu-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.hamburger-line {
    width: 20px;
    height: 2px;
    background: white;
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* Hide desktop nav on mobile */
@media (max-width: 991.98px) {
    .navbar-collapse {
        display: none !important;
    }
}

@media (min-width: 992px) {
    .mobile-menu-btn {
        display: none;
    }
}

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