/* Responsive Navbar CSS */

/* Top bar responsive */
@media (max-width: 767px) {
    .bg-success .row .col-md-6 {
        text-align: center !important;
        margin-bottom: 0.25rem;
    }

    .bg-success .row .col-md-6:last-child {
        margin-bottom: 0;
    }
}

/* Main navbar responsive */
@media (max-width: 991px) {
    .navbar-nav {
        text-align: center;
        padding-top: 1rem;
    }

    .navbar-nav .nav-item {
        margin-bottom: 0.5rem;
    }

    .navbar-nav .nav-link {
        padding: 0.75rem 1rem !important;
    }

    /* Authentication buttons full width on mobile */
    .btn.w-100 {
        margin-bottom: 0.5rem;
    }
}

/* Categories menu responsive */
@media (max-width: 991px) {
    /* Categories toggle button */
    .navbar-toggler {
        background: transparent;
        border: 1px solid #28a745;
        color: #28a745;
        padding: 0.5rem;
        border-radius: 8px;
    }

    .navbar-toggler:focus {
        box-shadow: 0 0 0 0.2rem rgba(40, 167, 69, 0.25);
    }

    /* Categories menu spacing */
    #categoriesNav .navbar-nav {
        padding: 1rem 0;
    }

    #categoriesNav .nav-link {
        padding: 0.75rem 0 !important;
        border-bottom: 1px solid #dee2e6;
    }

    #categoriesNav .nav-link:last-child {
        border-bottom: none;
    }
}

/* Mobile search improvements */
@media (max-width: 991px) {
    #mobileSearch {
        padding: 1rem 0 !important;
        border-top: 1px solid #dee2e6;
        margin-top: 0.5rem;
    }
}

/* Dropdown menu responsive */
@media (max-width: 575px) {
    .dropdown-menu {
        left: 0 !important;
        right: 0 !important;
        transform: none !important;
        margin: 0 1rem;
        width: auto !important;
    }
}

/* Hamburger menu styling */
.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%2840, 167, 69, 1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* User avatar responsive */
@media (max-width: 991px) {
    .dropdown-toggle .rounded-circle {
        width: 30px !important;
        height: 30px !important;
        font-size: 0.875rem;
    }
}

/* Container padding adjustments */
@media (max-width: 575px) {
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}
