/* ==================== HYBRID LAYOUT STYLES ==================== */
/* Combination of Option 1 Structure + Option 4 Visual Style */

/* Gradient Sidebar Background */
.sidebar-gradient {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    position: fixed;
    height: 100vh;
    top: 0;
    left: 0;
    z-index: 50;
}

/* Logo Container - Blend with sidebar gradient */
.logo-container {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* User Avatar - Gradient background */
.user-avatar {
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* User Section Card - Transparent with gradient */
.user-section-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

/* User Dropdown Card */
.user-dropdown-card {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Sidebar States */
.sidebar-expanded {
    width: 260px;
}

.sidebar-collapsed {
    width: 70px;
}

/* Hide text when collapsed */
.sidebar-collapsed .sidebar-text {
    display: none !important;
}

/* Sidebar Item Styles */
.sidebar-item {
    transition: all 0.3s ease;
    position: relative;
}

.sidebar-item:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateX(4px);
}

.sidebar-item.active {
    background: rgba(255, 255, 255, 0.25);
    border-left: 4px solid #fff;
}

/* Glass Effects */
.glass-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(229, 231, 235, 1);
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.glass-card:hover {
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

/* Stat Cards (with gradient icons) */
.stat-card {
    transition: all 0.3s ease;
}

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

/* Gradient Icon Backgrounds */
.icon-bg-blue {
    background: linear-gradient(135deg, #60a5fa 0%, #2563eb 100%);
}

.icon-bg-green {
    background: linear-gradient(135deg, #34d399 0%, #059669 100%);
}

.icon-bg-yellow {
    background: linear-gradient(135deg, #fbbf24 0%, #d97706 100%);
}

.icon-bg-purple {
    background: linear-gradient(135deg, #a78bfa 0%, #7c3aed 100%);
}

.icon-bg-amber {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

.icon-bg-red {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .sidebar-mobile {
        position: fixed;
        top: 0;
        left: 0;
        bottom: 0;
        z-index: 50;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }
    
    .sidebar-mobile.open {
        transform: translateX(0);
    }
    
    .mobile-overlay {
        display: none;
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: 40;
    }
    
    .mobile-overlay.active {
        display: block;
    }
}

/* Custom Scrollbar */
.custom-scrollbar::-webkit-scrollbar {
    width: 6px;
}

.custom-scrollbar::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
}

.custom-scrollbar::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
}

.custom-scrollbar::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* App Container Layout */
.app-container {
    display: flex;
    height: 100vh;
    overflow: hidden;
}

/* Main Content Area */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    margin-left: 260px;
    transition: margin-left 0.3s ease;
}

/* Mobile: No margin-left (sidebar is overlay) */
@media (max-width: 768px) {
    .main-content {
        margin-left: 0 !important;
    }
}

/* Header */
.main-header {
    background: white;
    border-bottom: 1px solid #e5e7eb;
    padding: 1rem 1.5rem;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
}

/* Content Area */
.content-area {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem;
    background: #f9fafb;
}

/* Sidebar Transition */
.sidebar-mobile,
.sidebar-expanded,
.sidebar-collapsed {
    transition: all 0.3s ease;
}
