/* Mobile Navigation Drawer */
.mobile-nav-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1040;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mobile-nav-overlay.active {
    display: block;
    opacity: 1;
}

.mobile-nav-drawer {
    display: none;
    position: fixed;
    top: 0;
    left: -280px;
    width: 280px;
    height: 100%;
    background: linear-gradient(180deg, #1a1a2e 0%, #16213e 100%);
    z-index: 1050;
    overflow-y: auto;
    transition: left 0.3s ease;
    box-shadow: 4px 0 20px rgba(0, 0, 0, 0.3);
}

.mobile-nav-drawer.active {
    display: block;
    left: 0;
}

.mobile-nav-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-nav-drawer .nav {
    padding: 0.5rem 0;
}

.mobile-nav-drawer .nav-link {
    display: flex;
    align-items: center;
    padding: 0.875rem 1.25rem;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
}

.mobile-nav-drawer .nav-link:hover,
.mobile-nav-drawer .nav-link.active {
    background: rgba(99, 102, 241, 0.15);
    color: #fff;
    border-left-color: #6366f1;
}

.mobile-nav-drawer .nav-link i {
    width: 24px;
    margin-right: 12px;
    text-align: center;
}

.mobile-nav-drawer .nav-link.active {
    background: linear-gradient(90deg, rgba(99, 102, 241, 0.2) 0%, transparent 100%);
}

/* Hide Bootstrap's default navbar-toggler (we use our custom #mobileMenuBtn) */
.navbar-toggler {
    display: none !important;
}

/* Show mobile menu button on small screens */
@media (max-width: 991.98px) {
    #mobileMenuBtn {
        display: inline-flex !important;
        /* Style: larger, proper padding, positioned top-right */
        padding: 0.6rem 0.8rem !important;
        font-size: 1.1rem !important;
        border-radius: 8px !important;
        align-items: center !important;
        justify-content: center !important;
        min-width: 44px !important;
        min-height: 44px !important;
    }
    
    /* Mobile header adjustments */
    .navbar {
        padding: 0.5rem 0.5rem !important;
    }
    
    .navbar-brand {
        font-size: 1.1rem !important;
    }
    
    /* Hide duplicate menu elements */
    .navbar-toggler {
        display: none !important;
    }
}

@media (min-width: 992px) {
    #mobileMenuBtn {
        display: none !important;
    }
}

