/* Mobile Menu Styles */
/* Reset */
body.mobile-menu-open {
    overflow: hidden;
}

/* Mobile Menu Container */
@media (max-width: 768px) {
    body.mobile-menu-open {
        overflow: hidden;
    }

    .navbar-brand img {
        max-height: 32px;
    }

    /* Show mobile menu button */
    .navbar-toggler {
        display: inline-block !important;
        border: 2px solid var(--primary-color);
        padding: 0.5rem;
        background: transparent;
        border-radius: 0.375rem;
    }

    .navbar-toggler:focus {
        box-shadow: 0 0 0 0.25rem rgba(44, 95, 65, 0.25);
        outline: none;
    }

    .navbar-toggler:hover {
        background: rgba(44, 95, 65, 0.1);
    }

    .navbar-toggler-icon {
        width: 24px;
        height: 24px;
        background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(44, 95, 65, 1)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='3' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
        display: block;
    }

    /* Mobile Menu Overlay */
    .mobile-nav-overlay {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: 1040;
        display: none;
        opacity: 0;
        transition: opacity 0.3s ease;
    }

    .mobile-nav-overlay.show {
        display: block;
        opacity: 1;
    }

    /* Mobile Navigation */
    .navbar-collapse {
        position: fixed;
        top: 0;
        right: -280px;
        bottom: 0;
        width: 280px;
        background: white;
        z-index: 1050;
        transition: right 0.3s ease;
        margin: 0;
        padding: 1rem;
        overflow-y: auto;
        display: block !important;
        box-shadow: -2px 0 10px rgba(0,0,0,0.1);
    }

    .navbar-collapse.show {
        right: 0;
    }

    .mobile-menu-close {
        position: absolute;
        top: 1rem;
        right: 1rem;
        background: none;
        border: none;
        font-size: 1.5rem;
        color: var(--text-muted);
        padding: 0.5rem;
        cursor: pointer;
        z-index: 1;
    }

    .navbar-nav {
        margin-top: 2.5rem;
    }

    .navbar-nav .nav-link {
        padding: 0.5rem 0.75rem;
        margin: 0.15rem 0;
        border-radius: 6px;
        display: flex;
        align-items: center;
        color: var(--text-dark);
        transition: all 0.2s ease;
        font-size: 0.95rem;
    }

    .navbar-nav .nav-link i {
        width: 24px;
        text-align: center;
        margin-right: 0.75rem;
    }

    .navbar-nav .nav-link:hover {
        background-color: rgba(44, 95, 65, 0.1);
        color: var(--primary-color);
    }

    .navbar-nav .nav-link.active {
        background-color: var(--primary-color);
        color: white;
    }

    /* Hide desktop dropdown toggles on mobile */
    .dropdown-toggle::after {
        display: none;
    }
}

/* Desktop Styles */
@media (min-width: 769px) {
    .mobile-menu-close,
    .mobile-nav-overlay,
    .navbar-toggler {
        display: none !important;
    }
    
    .navbar-collapse {
        display: flex !important;
    }
}