/* Nav Dropdown */
.nav-item-dropdown {
    position: relative;
    display: flex;
    align-items: center;
    height: 100%;
    cursor: pointer;
}

.dropdown-trigger {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-item-dropdown .dropdown-trigger span {
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.95rem;
    transition: color 0.2s;
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav-item-dropdown:hover .dropdown-trigger span {
    color: var(--primary);
}

.nav-dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: -10px;
    background-color: white;
    min-width: 220px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    border-radius: 8px;
    border: 1px solid var(--border);
    z-index: 1000;
    padding: 8px 0;
    margin-top: 10px;
    /* Gap for hover bridge */
}

/* Bridge to prevent closing when moving mouse */
.nav-item-dropdown::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    height: 10px;
}

.nav-item-dropdown:hover .nav-dropdown-menu {
    display: block;
    animation: fadeIn 0.15s ease-out;
}

.nav-dropdown-menu a {
    color: var(--text-main) !important;
    /* Override nav-links a color */
    padding: 10px 16px;
    text-decoration: none;
    display: block;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.2s;
}

.nav-dropdown-menu a:hover {
    background-color: #f8fafc;
    color: var(--primary) !important;
    padding-left: 20px;
    /* Slide effect */
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    .nav-item-dropdown {
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
    }
}