/* Enhanced User Panel CSS */
body { background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%); }
.card { border-radius: 0.5rem; box-shadow: 0 0.5rem 1rem rgba(0,0,0,0.15); }
.btn { border-radius: 0.375rem; font-weight: 500; }

/* Enhanced Header */
.user-header { 
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%); 
    box-shadow: 0 1rem 3rem rgba(0,0,0,0.175); 
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1030;
}

/* Enhanced Sidebar Toggle Button */
.sidebar-toggle-btn {
    background: rgba(255, 255, 255, 0.1) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    color: white !important;
    border-radius: 8px !important;
    padding: 8px 12px !important;
    transition: all 0.3s ease !important;
}

.sidebar-toggle-btn:hover {
    background: rgba(255, 255, 255, 0.2) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15) !important;
}

/* Enhanced Brand Section */
.brand-section {
    text-decoration: none !important;
    transition: all 0.3s ease;
}

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

.brand-container {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand-logo {
    height: 45px;
    width: auto;
    max-width: 140px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.brand-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: white;
    font-size: 24px;
    backdrop-filter: blur(10px);
}

.brand-text-container {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.brand-text {
    color: white;
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.2;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.brand-subtitle {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.875rem;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Enhanced Desktop Navigation */
.desktop-nav {
    gap: 8px;
}

.nav-item-wrapper {
    position: relative;
}

.nav-link-enhanced {
    display: flex !important;
    flex-direction: column;
    align-items: center;
    padding: 12px 16px !important;
    color: rgba(255, 255, 255, 0.9) !important;
    text-decoration: none !important;
    border-radius: 12px !important;
    transition: all 0.3s ease !important;
    position: relative;
    overflow: hidden;
}

.nav-link-enhanced::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.nav-link-enhanced:hover::before {
    opacity: 1;
}

.nav-link-enhanced:hover {
    color: white !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.nav-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    margin-bottom: 6px;
    font-size: 16px;
    transition: all 0.3s ease;
}

.nav-link-enhanced:hover .nav-icon {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.nav-text {
    font-size: 0.875rem;
    font-weight: 500;
    text-align: center;
    white-space: nowrap;
}

/* Enhanced Logout Link */
.logout-link {
    background: rgba(220, 53, 69, 0.1) !important;
    border: 1px solid rgba(220, 53, 69, 0.2) !important;
}

.logout-link:hover {
    background: rgba(220, 53, 69, 0.2) !important;
    border-color: rgba(220, 53, 69, 0.3) !important;
}

.logout-link .nav-icon {
    background: rgba(220, 53, 69, 0.2);
    color: #dc3545;
}

.logout-link:hover .nav-icon {
    background: rgba(220, 53, 69, 0.3);
}

/* Enhanced Mobile Toggle Button */
.mobile-toggle-btn {
    background: rgba(255, 255, 255, 0.1) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    color: white !important;
    border-radius: 8px !important;
    padding: 8px 12px !important;
    transition: all 0.3s ease !important;
}

.mobile-toggle-btn:hover {
    background: rgba(255, 255, 255, 0.2) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15) !important;
}

/* Enhanced Sidebar */
.user-sidebar { 
    background: linear-gradient(180deg, #1e293b 0%, #0f172a 100%); 
    box-shadow: 0 1rem 3rem rgba(0,0,0,0.175); 
}

.page-header { 
    background: linear-gradient(135deg, #007bff 0%, #17a2b8 100%); 
    color: white; 
    padding: 2rem; 
    border-radius: 0.5rem; 
    margin-bottom: 2rem; 
}

.form-control { 
    border: 2px solid #dee2e6; 
    border-radius: 0.375rem; 
    padding: 0.75rem 1rem; 
}

.table { 
    border-radius: 0.375rem; 
    overflow: hidden; 
    box-shadow: 0 0.125rem 0.25rem rgba(0,0,0,0.075); 
}

/* Mobile Bottom Navigation */
.mobile-bottom-nav { 
    background: white; 
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1); 
}

/* Responsive Design */
@media (max-width: 991.98px) {
    .brand-text {
        font-size: 1.25rem;
    }
    
    .brand-subtitle {
        font-size: 0.75rem;
    }
    
    .desktop-nav {
        display: none !important;
    }
}

@media (max-width: 575.98px) {
    .brand-text {
        font-size: 1.125rem;
    }
    
    .brand-subtitle {
        display: none;
    }
    
    .brand-logo,
    .brand-icon {
        width: 40px;
        height: 40px;
    }
    
    .sidebar-toggle-btn,
    .mobile-toggle-btn {
        padding: 6px 10px !important;
    }
}
