/* Navbar Component Styles */
.navbar {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: 1rem 0;
    position: relative;
    z-index: 1030;
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
    color: white !important;
}

.navbar-brand i {
    margin-right: 0.5rem;
}

.navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.8) !important;
    font-weight: 500;
    margin: 0 0.25rem;
}

/* Dropdown menu z-index fix - higher than message toasts (9999) */
.navbar .dropdown-menu {
    z-index: 10001 !important;
}

/* Language dropdown hover fix */
.navbar .dropdown-menu button.dropdown-item {
    color: #212529 !important;
}

.navbar .dropdown-menu button.dropdown-item:hover {
    background-color: #e9ecef !important;
    color: #212529 !important;
}

/* Badge styling in dropdown */
.navbar .dropdown-item .badge {
    font-size: 0.7em;
    padding: 0.25em 0.5em;
    min-width: 1.5em;
    text-align: center;
    transition: all 0.3s ease;
    border-radius: var(--border-radius);
    padding: 0.5rem 1rem !important;
}

.navbar-nav .nav-link:hover {
    color: white !important;
    background-color: rgba(255, 255, 255, 0.1);
}

.navbar-nav .nav-link.active {
    color: white !important;
    background-color: rgba(255, 255, 255, 0.2);
}

.dropdown-menu {
    border: none;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    border-radius: var(--border-radius);
    margin-top: 0.5rem;
}

.dropdown-item {
    transition: all 0.2s ease;
}

.dropdown-item:hover {
    background-color: var(--primary-color);
    color: white !important;
}

.dropdown-item.active,
.dropdown-item:active {
    background-color: #e9ecef;
    color: #212529;
}

.dropdown-item.active:hover {
    background-color: #dee2e6;
    color: #212529;
}

.navbar-toggler {
    border: none;
    padding: 0.25rem 0.5rem;
}

.navbar-toggler:focus {
    box-shadow: none;
}

@media (max-width: 991.98px) {
    .navbar-nav {
        margin-top: 1rem;
        width: 100%;
    }
    
    .navbar-nav .nav-link {
        margin: 0;
        padding: 0.75rem 1rem !important;
        text-align: center;
        display: block;
        width: 100%;
        border-radius: 0.5rem;
        margin-bottom: 0.25rem;
    }
    
    .navbar-nav .nav-link:hover {
        background-color: rgba(255, 255, 255, 0.1);
        width: 100%;
    }
    
    .navbar-nav .nav-item {
        width: 100%;
    }
    
    .navbar .dropdown-menu {
        position: static !important;
        transform: none !important;
        border: none !important;
        box-shadow: none !important;
        background: rgba(255, 255, 255, 0.05) !important;
        margin-top: 0 !important;
        padding: 0;
        width: 100% !important;
        min-width: unset !important;
    }
    
    .navbar .dropdown-item {
        text-align: center;
        padding: 0.75rem 1rem !important;
        color: rgba(255, 255, 255, 0.8) !important;
        width: 100% !important;
        display: block;
    }
    
    .navbar .dropdown-item:hover {
        background-color: rgba(255, 255, 255, 0.1) !important;
        color: white !important;
    }
    
    .navbar .dropdown-item.active,
    .navbar .dropdown-item:active {
        background-color: rgba(255, 255, 255, 0.2) !important;
        color: white !important;
    }
    
    /* Center profile dropdown and auth buttons */
    .navbar-nav:last-child {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }
    
    .navbar-nav:last-child .nav-item {
        width: 100%;
        min-width: 200px;
    }
    
    .navbar-nav:last-child .dropdown-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 0.5rem;
    }
    
    /* Ensure all dropdown forms are full width */
    .navbar .dropdown-menu form {
        width: 100%;
    }
    
    .navbar .dropdown-menu button {
        width: 100% !important;
        text-align: center !important;
    }
}
