/* ==================
   MOBILE MENU FIX - MUST LOAD LAST
   ================== */

/* Ensure mobile button is visible */
.mobile-menu-btn {
    display: none !important;
}

/* Mobile Header */
.mobile-header {
    display: none !important;
}

@media (max-width: 768px) {

    /* Force mobile button to show */
    .mobile-menu-btn {
        display: flex !important;
        position: fixed !important;
        top: 10px !important;
        left: 10px !important;
        z-index: 1001 !important;
        background: #6366f1 !important;
        color: white !important;
        border: none !important;
        width: 50px !important;
        height: 50px !important;
        border-radius: 12px !important;
        font-size: 20px !important;
        cursor: pointer !important;
        box-shadow: 0 4px 12px rgba(99, 102, 241, 0.5) !important;
        align-items: center !important;
        justify-content: center !important;
    }

    /* Mobile Header */
    .mobile-header {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        height: 70px !important;
        background: white !important;
        border-bottom: 1px solid #e5e7eb !important;
        z-index: 998 !important;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05) !important;
    }

    .mobile-header img {
        height: 50px !important;
        width: auto !important;
    }

    /* Menu Overlay */
    .menu-overlay {
        display: block !important;
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: 100% !important;
        background: rgba(0, 0, 0, 0.5) !important;
        z-index: 999 !important;
        opacity: 0 !important;
        pointer-events: none !important;
        transition: opacity 0.3s ease !important;
    }

    .menu-overlay.active {
        opacity: 1 !important;
        pointer-events: all !important;
    }

    /* Sidebar mobile */
    .sidebar {
        display: block !important;
        position: fixed !important;
        left: -100% !important;
        top: 0 !important;
        width: 280px !important;
        height: 100vh !important;
        z-index: 1000 !important;
        transition: left 0.3s ease !important;
        overflow-y: auto !important;
        box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1) !important;
        background: white !important;
    }

    .sidebar.active {
        left: 0 !important;
    }

    /* Main content mobile */
    .main-content {
        margin-left: 0 !important;
        padding: 90px 20px 20px 20px !important;
    }

    /* Prevent body scroll when menu is open */
    body.menu-open {
        overflow: hidden !important;
    }

    /* Ensure nav links are visible */
    .nav-links {
        display: block !important;
    }

    .nav-links li {
        display: block !important;
    }

    .nav-links a {
        display: flex !important;
        align-items: center !important;
    }
}