/* Dropdown Navigation Styles */
.nav-item-dropdown {
    position: relative;
    display: inline-block;
}

.nav-tab.dropdown-toggle {
    background: transparent;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    font-size: 0.9rem;
    font-family: inherit;
    padding: 0.6rem 1rem;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #2a4073;
    /* Slightly lighter than navbar for contrast */
    min-width: 200px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0.5rem 0;
    margin-top: 0.5rem;
    animation: fadeIn 0.2s ease-out;
}

/* Bridge the gap between button and menu so it doesn't close on hover */
.dropdown-menu::before {
    content: '';
    position: absolute;
    top: -0.5rem;
    left: 0;
    width: 100%;
    height: 0.5rem;
    background: transparent;
}

.nav-item-dropdown:hover .dropdown-menu {
    display: block;
}

.dropdown-item {
    color: rgba(255, 255, 255, 0.85);
    padding: 10px 16px;
    text-decoration: none;
    display: block;
    transition: var(--transition);
    font-size: 0.9rem;
}

.dropdown-item:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
}

.dropdown-item.active {
    background-color: rgba(255, 255, 255, 0.15);
    color: white;
    border-left: 3px solid var(--primary);
}

/* Adjust mobile layout */
@media (max-width: 768px) {
    .nav-item-dropdown {
        width: 100%;
        text-align: center;
    }

    .nav-tab.dropdown-toggle {
        width: 100%;
        justify-content: center;
    }

    .dropdown-menu {
        position: static;
        box-shadow: none;
        background: rgba(0, 0, 0, 0.2);
        width: 100%;
        display: none;
        /* Keep hidden by default, rely on hover/click */
        border: none;
        margin-top: 0;
    }

    /* On mobile, we might want to toggle with click, but hover works for simple implementation */
    .nav-item-dropdown:hover .dropdown-menu {
        display: block;
    }

    .dropdown-item {
        padding-left: 2rem;
    }
}