/* Mobile Navigation Debug & Final Fix */

/* Ensure mobile toggle button is always visible and clickable on mobile */
@media (max-width: 1199.98px) {
    /* Force mobile toggle to be visible and properly positioned */
    .mobile-nav-toggle {
        display: flex !important;
        position: relative !important;
        z-index: 10001 !important;
        width: 44px !important;
        height: 44px !important;
        padding: 8px !important;
        background: rgba(255, 255, 255, 0.1) !important;
        border: 2px solid #007bff !important; /* Debug border to make it visible */
        border-radius: 6px !important;
        cursor: pointer !important;
        flex-direction: column !important;
        justify-content: center !important;
        align-items: center !important;
        gap: 3px !important;
        transition: all 0.3s ease !important;
        margin-left: auto !important; /* Push to right */
    }
    
    .mobile-nav-toggle:hover {
        background: rgba(0, 123, 255, 0.2) !important;
        border-color: #0056b3 !important;
    }
    
    .mobile-nav-toggle:focus {
        outline: 2px solid #007bff !important;
        outline-offset: 2px !important;
    }
    
    /* Hamburger lines */
    .mobile-nav-toggle .hamburger-line {
        display: block !important;
        width: 20px !important;
        height: 3px !important;
        background-color: #007bff !important;
        border-radius: 2px !important;
        transition: all 0.3s ease !important;
        margin: 0 !important;
    }
    
    /* Active state */
    .mobile-nav-toggle.active {
        background: rgba(0, 123, 255, 0.3) !important;
        border-color: #fff !important;
    }
    
    .mobile-nav-toggle.active .hamburger-line {
        background-color: #fff !important;
    }
    
    .mobile-nav-toggle.active .hamburger-line:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px) !important;
    }
    
    .mobile-nav-toggle.active .hamburger-line:nth-child(2) {
        opacity: 0 !important;
        transform: scale(0) !important;
    }
    
    .mobile-nav-toggle.active .hamburger-line:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px) !important;
    }
    
    /* Make sure parent container allows proper display */
    .mobile-nav-toggle-container,
    .d-xl-none {
        display: flex !important;
        justify-content: flex-end !important;
        align-items: center !important;
        width: 100% !important;
        min-height: 44px !important;
    }
}

/* Hide on desktop */
@media (min-width: 1200px) {
    .mobile-nav-toggle {
        display: none !important;
        visibility: hidden !important;
    }
}

/* Mobile overlay enhancements */
.mobile-nav-overlay {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100vh !important;
    background: rgba(0, 0, 0, 0.8) !important;
    backdrop-filter: blur(5px) !important;
    z-index: 10000 !important;
    opacity: 0 !important;
    visibility: hidden !important;
    transition: opacity 0.3s ease, visibility 0.3s ease !important;
}

.mobile-nav-overlay.active {
    opacity: 1 !important;
    visibility: visible !important;
}

/* Mobile container styling */
.mobile-nav-container {
    position: relative !important;
    width: 320px !important;
    max-width: 85% !important;
    height: 100% !important;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%) !important;
    margin-left: auto !important;
    transform: translateX(100%) !important;
    transition: transform 0.3s ease !important;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.2) !important;
    overflow-y: auto !important;
}

.mobile-nav-overlay.active .mobile-nav-container {
    transform: translateX(0) !important;
}

/* Debug info */
.mobile-nav-toggle::before {
    content: "MENU" !important;
    position: absolute !important;
    top: -25px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    background: #007bff !important;
    color: white !important;
    padding: 2px 6px !important;
    border-radius: 3px !important;
    font-size: 10px !important;
    font-weight: bold !important;
    white-space: nowrap !important;
}

/* Remove debug info in production by commenting out the above ::before rule */
