/* Modern Navigation Styles - Hue Xanh Brand */
.header {
    background: #ffffff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: static;
    z-index: 1000;
    border-bottom: 2px solid #f06421;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 0;
    position: relative;
}

/* Logo Styles */
.logo a {
    text-decoration: none;
    color: #140000;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: none;
}

.logo a:hover {
    transform: none;
}

.logo h1 {
    font-size: 1.8rem;
    font-weight: 700;
    color: #f06421;
    margin: 0;
    line-height: 1.2;
}

.logo h1:hover {
    transform: none;
    filter: none;
}

.logo span {
    font-size: 0.9rem;
    color: #6b7280;
    font-weight: 500;
    margin-top: 0.25rem;
}
.logo-image {
    object-fit: contain;
}

/* Ensure settings logo size takes priority */
.logo-image[style*="width"], .logo-image[style*="height"] {
    max-width: 200px !important;
    max-height: 100px !important;
    width: auto !important;
    height: auto !important;
}

/* Main Navigation */
.main-nav {
    flex: 1;
    margin: 0 1rem;
    display: flex;
    justify-content: center;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 0.5rem;
    align-items: center;
    margin: 0;
    padding: 0;
}

.nav-link {
    text-decoration: none;
    color: #0a0a0a;
    font-weight: 500;
    padding: 0.3rem 0.3rem;
    border-radius: 6px;
    font-size: 1rem;
    white-space: nowrap;
}

.nav-link:hover {
    background: #f06421;
    color: #ffffff;
}

/* Header Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: nowrap;
}

/* DEBUG: Force show mobile actions for testing */
.mobile-actions {
    display: none !important;
}

/* Admin Link */
.admin-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: linear-gradient(135deg, #6c757d 0%, #5a6268 100%);
    color: #ffffff;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: none;
    box-shadow: 0 2px 8px rgba(108, 117, 125, 0.3);
}

.admin-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(108, 117, 125, 0.4);
    color: #ffffff;
    text-decoration: none;
}

.admin-link i {
    font-size: 0.8rem;
}

/* Quick Actions */
.quick-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}

.quick-actions .btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: 6px;
    transition: none;
    white-space: nowrap;
}

.quick-actions .btn i {
    font-size: 0.75rem;
}

/* User Menu */
.user-menu {
    position: relative;
}

.user-toggle {
    background: none;
    border: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem;
    border-radius: 6px;
    cursor: pointer;
    color: #333333;
    font-weight: 500;
    font-size: 0.9rem;
}

.user-toggle:hover {
    background: rgba(240, 100, 33, 0.1);
}

.user-toggle.active {
    background: rgba(240, 100, 33, 0.15);
    border-color: rgba(240, 100, 33, 0.3);
}

.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f06421 0%, #e55a1a 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 0.8rem;
    overflow: hidden;
    border: 2px solid rgba(240, 100, 33, 0.2);
    pointer-events: none;
}

.user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
}

.user-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
}

.user-name {
    font-weight: 600;
    font-size: 0.9rem;
    color: #140000;
    line-height: 1.2;
}

.user-role {
    font-size: 0.75rem;
    color: #6c757d;
    font-weight: 500;
}

.user-toggle .arrow {
    font-size: 0.7rem;
    transition: none;
    color: #6c757d;
}

.user-toggle.active .arrow {
    transform: rotate(180deg);
}

.user-toggle:hover {
    transform: none;
    box-shadow: 0 6px 16px rgba(240, 100, 33, 0.4);
}

.user-toggle .arrow {
    font-size: 0.8rem;
    transition: none;
}

.user-toggle.active .arrow {
    transform: rotate(180deg);
}

.user-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
    min-width: 280px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
    z-index: 10000;
    border: 1px solid rgba(240, 100, 33, 0.1);
    overflow: hidden;
    margin-top: 0.5rem;
    pointer-events: none;
}

.user-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.dropdown-header {
    padding: 1.5rem;
    background: linear-gradient(135deg, #f06421 0%, #e55a1a 100%);
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.user-avatar-large {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.user-avatar-large img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.user-details .user-name {
    font-weight: 700;
    font-size: 1rem;
    color: #ffffff;
    margin-bottom: 0.25rem;
}

.user-details .user-email {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
}

.dropdown-section {
    padding: 1rem 0;
    border-bottom: 1px solid rgba(240, 100, 33, 0.05);
}

.dropdown-section:last-of-type {
    border-bottom: none;
}

.dropdown-section h4 {
    padding: 0 1.5rem 0.75rem;
    margin: 0;
    font-size: 0.8rem;
    font-weight: 700;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.dropdown-section a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.5rem;
    color: #140000;
    text-decoration: none;
    transition: none;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
}

.dropdown-section a:hover {
    background: rgba(240, 100, 33, 0.1);
    color: #f06421;
    transform: translateX(5px);
}

.dropdown-section a i {
    width: 16px;
    text-align: center;
    font-size: 0.8rem;
    color: #6c757d;
}

.dropdown-section a:hover i {
    color: #f06421;
}

.dropdown-footer {
    padding: 1rem 0;
    background: rgba(240, 100, 33, 0.02);
}

.logout-btn {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.5rem;
    color: #dc3545;
    text-decoration: none;
    transition: none;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
}

.logout-btn:hover {
    background: rgba(220, 53, 69, 0.1);
    color: #dc3545;
    transform: translateX(5px);
}

.logout-btn i {
    width: 16px;
    text-align: center;
    font-size: 0.8rem;
}

/* Auth Buttons */
.auth-buttons {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    flex-shrink: 0;
}

.btn {
    padding: 0.5rem 1rem;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 500;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-align: center;
    font-size: 0.9rem;
}

.btn::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: none;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: #f06421;
    color: #ffffff;
}

.btn-primary:hover {
    background: #e55a1a;
}

.btn-outline {
    background: transparent;
    color: #f06421;
    border: 2px solid #f06421;
    font-weight: 600;
}

.btn-outline:hover {
    background: #f06421;
    color: #ffffff;
    border-color: #e55a1a;
}

.btn-outline:focus {
    outline: 2px solid #f06421;
    outline-offset: 2px;
    box-shadow: 0 0 0 3px rgba(240, 100, 33, 0.3);
}

/* Mobile Menu Toggle - Hidden by default */
.mobile-menu-toggle {
    display: flex;
    flex-direction: column;
    gap: 4px;
    background: #f06421;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    width: 50px;
    height: 50px;
}

.mobile-menu-toggle:hover {
    background: #e55a1a;
    transform: scale(1.05);
}

.mobile-menu-toggle span {
    width: 20px;
    height: 3px;
    background: white;
    border-radius: 2px;
    transition: all 0.3s ease;
    display: block;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    height: -webkit-fill-available; /* iOS Safari fix */
    width: 85vw;
    max-width: 360px;
    background: #f8f9fa;
    box-shadow: -10px 0 30px rgba(20, 0, 0, 0.25);
    transform: translateX(100%);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.3s ease, opacity 0.3s ease, visibility 0.3s ease;
    z-index: 1100;
    border-left: 3px solid #f06421;
    display: flex;
    flex-direction: column;
    overflow: hidden; /* Prevent the entire menu from scrolling */
}

/* Mobile Menu Header */
.mobile-menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid rgba(240, 100, 33, 0.1);
    background: linear-gradient(135deg, #f06421 0%, #e55a1a 100%);
    color: #ffffff;
    flex-shrink: 0; /* Prevent header from shrinking */
    height: 70px; /* Fixed height for header */
    min-height: 70px;
    max-height: 70px;
}

.mobile-menu-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin: 0;
    color: #ffffff;
}

.mobile-menu-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #ffffff;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.mobile-menu-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.mobile-menu-close:focus {
    outline: 2px solid rgba(255, 255, 255, 0.5);
    outline-offset: 2px;
}

.mobile-menu.show {
    transform: translateX(0);
    opacity: 1;
    visibility: visible;
    transition: transform 0.3s ease, opacity 0.3s ease, visibility 0.3s ease;
}

.mobile-nav {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 1rem;
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    min-height: 0;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    /* Ensure scrolling works */
    max-height: calc(100vh - 70px); /* Subtract header height (70px) */
    height: calc(100vh - 70px); /* Set explicit height */
}

.mobile-nav-link {
    padding: 1rem 1.5rem;
    color: #2d3748;
    text-decoration: none;
    font-weight: 600;
    border-radius: 12px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: #ffffff;
    margin-bottom: 0.5rem;
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    flex-shrink: 0; /* Prevent links from shrinking */
    min-height: 48px; /* Ensure touch-friendly size */
}

.mobile-nav-link:hover {
    background: linear-gradient(135deg, #f06421 0%, #e55a1a 100%);
    color: #ffffff;
    transform: translateX(8px);
    box-shadow: 0 4px 12px rgba(240, 100, 33, 0.3);
}

.mobile-nav hr {
    border: none;
    height: 1px;
    background: #e5e7eb;
    margin: 1rem 0;
    flex-shrink: 0; /* Prevent hr from shrinking */
}

/* Mobile user info section */
.mobile-user-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    background: #ffffff;
    border-radius: 12px;
    margin-bottom: 1rem;
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    flex-shrink: 0;
}

.mobile-user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #f06421;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.mobile-user-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.mobile-user-details {
    flex: 1;
    min-width: 0; /* Allow text to truncate */
}

.mobile-user-name {
    font-weight: 600;
    color: #2d3748;
    font-size: 0.95rem;
    margin-bottom: 0.25rem;
}

.mobile-user-role {
    font-size: 0.8rem;
    color: #6b7280;
}

/* Mobile section headers */
.mobile-section {
    margin-bottom: 1rem;
}

.mobile-section h4 {
    font-size: 0.9rem;
    font-weight: 600;
    color: #6b7280;
    margin: 0 0 0.75rem 0;
    padding: 0 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    flex-shrink: 0;
}

/* Special styling for admin and logout links */
.mobile-nav-link.admin-link {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    color: #ffffff;
    border-color: #dc3545;
}

.mobile-nav-link.logout-link {
    background: linear-gradient(135deg, #6c757d 0%, #5a6268 100%);
    color: #ffffff;
    border-color: #6c757d;
}

.mobile-nav-link.admin-link:hover,
.mobile-nav-link.logout-link:hover {
    transform: translateX(8px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Force mobile menu scrolling to work */
@media (max-width: 1024px) {
    .mobile-menu {
        display: flex !important;
        flex-direction: column !important;
        height: 100vh !important;
        overflow: hidden !important;
    }
    
    .mobile-menu-header {
        flex-shrink: 0 !important;
        height: 70px !important;
    }
    
    .mobile-nav {
        flex: 1 !important;
        overflow-y: auto !important;
        overflow-x: hidden !important;
        height: calc(100vh - 70px) !important;
        max-height: calc(100vh - 70px) !important;
        -webkit-overflow-scrolling: touch !important;
    }
}

/* Mobile menu touch improvements */
@media (max-width: 768px) {
    .mobile-menu {
        width: 90vw;
        max-width: 450px;
    }
    
    .mobile-nav-link {
        padding: 1.25rem 1.5rem;
        font-size: 1rem;
        min-height: 52px; /* Larger touch targets */
    }
    
    .mobile-menu-toggle {
        padding: 0.75rem;
        min-width: 48px;
        min-height: 48px;
    }
    
    .mobile-menu-toggle span {
        width: 24px;
        height: 3px;
    }
    
    /* Ensure proper scrolling on mobile */
    .mobile-nav {
        -webkit-overflow-scrolling: touch;
        overscroll-behavior: contain;
        /* Force scrolling to work */
        overflow-y: scroll !important;
        height: calc(100vh - 70px) !important;
        max-height: calc(100vh - 70px) !important;
    }
    
    /* Fix for iOS Safari viewport issues */
    .mobile-menu {
        height: 100vh;
        height: -webkit-fill-available;
    }
    
    /* Better touch targets for mobile */
    .mobile-menu-toggle {
        touch-action: manipulation;
        -webkit-tap-highlight-color: transparent;
    }
    
    .mobile-nav-link {
        touch-action: manipulation;
        -webkit-tap-highlight-color: transparent;
    }
    
    /* Ensure mobile nav can scroll */
    .mobile-menu {
        overflow: hidden;
    }
    
    .mobile-menu .mobile-nav {
        overflow-y: auto;
        overflow-x: hidden;
    }
}

/* Overlay for mobile menu */
.mobile-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1099;
    backdrop-filter: blur(2px);
    pointer-events: none;
}

.mobile-overlay.show {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .main-nav {
        margin: 0 1rem;
    }
    
    .nav-list {
        gap: 0.25rem;
    }
    
    .nav-link {
        padding: 0.2rem 0.4rem;
        font-size: 0.85rem;
    }
}

@media (max-width: 768px) {
    .header-content {
        padding: 0.5rem 0;
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        min-height: 50px;
        height: auto;
        flex-wrap: nowrap;
    }
    
    .main-nav {
        display: none;
    }
    
    /* Force mobile menu toggle to show on mobile */
    .header .mobile-menu-toggle {
        display: flex !important;
        align-items: center;
        justify-content: center;
        height: 40px;
        width: 40px;
        padding: 0.5rem;
        background: #f06421;
        color: #ffffff;
        border-radius: 6px;
        flex-direction: column;
        gap: 4px;
        flex-shrink: 0; /* ← Thêm dòng này */
    }
    
    .header .mobile-menu-toggle span {
        background: #ffffff !important;
        width: 20px;
        height: 2px;
        display: block !important;
    }
    
    /* Hide desktop header actions completely on mobile */
    .header-actions {
        display: none;
    }
    
    /* Logo takes left side */
    .logo {
        flex: 0 0 auto; /* Không co giãn */
        display: flex;
        align-items: center;
        min-width: 0; /* Cho phép logo text truncate nếu cần */
        max-width: calc(100% - 60px); /* Trừ đi không gian cho mobile-actions */
        overflow: hidden; /* Ẩn phần thừa */
    }
    .logo a {
        display: flex;
        align-items: center;
        width: 100%;
        overflow: hidden;
    }
    .logo-image {
        max-width: 150px;
        max-height: 40px;
        width: auto;
        height: auto;
        object-fit: contain;
    }
    
    /* Mobile actions take right side */
    .mobile-actions {
        flex: 0 0 auto;
        display: flex !important;
        align-items: center;
        flex-shrink: 0;
    }
    
    /* Mobile quick action button (left of hamburger) */
    .mobile-quick-action {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 120px;
        height: 32px;
        margin-right: 8px;
        border-radius: 6px;
        background: #f06421;
        color: #ffffff;
        text-decoration: none;
        font-size: 0.8rem;
    }
    .mobile-quick-action i {
        font-size: 0.8rem;
    }
    .mobile-quick-action:hover {
        background: #e55a1a;
    }
    
    .logo h1 {
        font-size: 1.5rem;
        line-height: 1;
    }
    
    
    .logo span {
        display: none;
    }
    
    .user-toggle {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
    
    .btn {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
    
    .auth-buttons {
        gap: 0.5rem;
    }
}

@media (max-width: 480px) {
    .header-actions {
        gap: 0.5rem;
    }
    
    .user-toggle {
        padding: 0.5rem 0.75rem;
        font-size: 0.85rem;
    }
    
    .btn {
        padding: 0.5rem 0.75rem;
        font-size: 0.85rem;
    }
    
    .logo h1 {
        font-size: 1.75rem;
    }
    
    .logo-image {
        max-height: 45px;
    }
}

/* Animation for smooth transitions */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.user-dropdown.show {
    animation: none;
}

.mobile-menu.show {
    animation: none;
}

/* Focus states for accessibility */
.nav-link:focus,
.user-toggle:focus,
.btn:focus,
.mobile-menu-toggle:focus {
    outline: 2px solid #f06421;
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .nav-link:hover,
    .user-toggle,
    .btn-primary {
        background: #f06421;
        color: #ffffff;
    }
    
    .btn-outline {
        border-color: #f06421;
        color: #f06421;
        background: #ffffff;
        font-weight: 700;
    }
    
    .btn-outline:hover {
        background: #f06421;
        color: #ffffff;
        border-color: #f06421;
    }
}

/* Ensure login button has good contrast */
.auth-buttons .btn-outline {
    background: #ffffff;
    color: #f06421;
    border: 2px solid #f06421;
    font-weight: 600;
    text-shadow: none;
    position: relative;
}

.auth-buttons .btn-outline:hover {
    background: #f06421;
    color: #ffffff;
    border-color: #e55a1a;
    text-shadow: none;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(240, 100, 33, 0.3);
}

.auth-buttons .btn-outline:focus {
    outline: 2px solid #f06421;
    outline-offset: 2px;
    box-shadow: 0 0 0 3px rgba(240, 100, 33, 0.3);
}

.auth-buttons .btn-outline:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(240, 100, 33, 0.3);
}

/* Additional contrast improvements for accessibility */
@media (prefers-reduced-motion: no-preference) {
    .auth-buttons .btn-outline {
        transition: all 0.2s ease-in-out;
    }
}

/* Ensure minimum contrast ratio - Orange #f06421 on white background has good contrast (WCAG AA compliant) */

/* Mobile User Info */
.mobile-user-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: linear-gradient(135deg, #f06421 0%, #e55a1a 100%);
    border-radius: 12px;
    margin-bottom: 1rem;
    color: #ffffff;
}

.mobile-user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.mobile-user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mobile-user-details {
    flex: 1;
}

.mobile-user-name {
    font-weight: 700;
    font-size: 1rem;
    color: #ffffff;
    margin-bottom: 0.25rem;
}

.mobile-user-role {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
}

.mobile-section {
    margin-bottom: 1.5rem;
}

.mobile-section h4 {
    font-size: 0.8rem;
    font-weight: 700;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.75rem;
    padding-left: 0.5rem;
}

.mobile-nav-link.admin-link {
    background: linear-gradient(135deg, #6c757d 0%, #5a6268 100%);
    color: #ffffff;
    margin-bottom: 0.5rem;
}

.mobile-nav-link.admin-link:hover {
    background: linear-gradient(135deg, #5a6268 0%, #495057 100%);
    color: #ffffff;
}

.mobile-nav-link.logout-link {
    color: #dc3545;
    font-weight: 600;
    margin-top: 1rem;
    padding: 1rem;
    background: rgba(220, 53, 69, 0.05);
    border-radius: 8px;
    border: 1px solid rgba(220, 53, 69, 0.1);
}

.mobile-nav-link.logout-link:hover {
    background: rgba(220, 53, 69, 0.1);
    color: #dc3545;
}

/* Mobile Quick Action Link */
.mobile-nav-link.mobile-quick-action-link {
    background: linear-gradient(135deg, #f06421 0%, #e55a1a 100%);
    color: #ffffff;
    font-weight: 700;
    margin-bottom: 0.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(240, 100, 33, 0.3);
}

.mobile-nav-link.mobile-quick-action-link:hover {
    background: linear-gradient(135deg, #e55a1a 0%, #d14a0f 100%);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(240, 100, 33, 0.4);
}

.mobile-nav-link.mobile-quick-action-link i {
    font-size: 1.1rem;
    margin-right: 0.5rem;
}
