/* Navigation main container */
.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1300px;
    margin: 0 auto;
    padding: 10px 20px;
    position: relative;
}

/* Brand logo */
.brand {
    display: flex;
    align-items: center;
}

.brand .logo {
    width: 200px;
    height: auto;
}

/* Navigation structure */
nav {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    position: relative;
}

/* Nav list desktop */
.nav-list {
    display: flex;
    list-style: none;
    gap: 10px;
    margin: 0;
    padding: 0;
}

.nav-list li {
    position: relative;
}

/* Nav link base */
.nav-link {
    padding: 8px 16px;
    font-size: 1rem;
    font-weight: 500;
    border-radius: 0.5rem;
    color: white !important;
    text-decoration: none;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    white-space: nowrap;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.nav-link:hover {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-light));
    transform: translateY(-2px);
}

.nav-link.active {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-dark));
    box-shadow: 0 4px 15px rgba(110, 72, 170, 0.4);
}

/* Dropdown styling */
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    display: none;
    flex-direction: column;
    background: white;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    padding: 10px;
    z-index: 10;
    white-space: nowrap;
    min-width: max-content;
}

.dropdown:hover .dropdown-menu,
.dropdown-menu.show {
    display: flex;
}

.dropdown-menu li a {
    color: #333;
    padding: 8px 16px;
    text-decoration: none;
    font-size: 0.95rem;
    white-space: nowrap;
    display: block;
}

.dropdown-menu li a:hover {
    background: var(--primary-light);
    color: white;
    border-radius: 0.3rem;
}

.dropdown-header {
    pointer-events: none;
    background: #f8f9fa;
    margin-top: 5px;
}

.dropdown-divider {
    height: 1px;
    margin: 5px 0;
    overflow: hidden;
    background-color: #e9ecef;
}

.dropdown-toggle {
    cursor: pointer;
}

/* active link for dropdown items (matches NavTabs.jsx isActive class) */
.dropdown-menu li a.active-link {
    background: var(--primary-light);
    color: white;
    border-radius: 0.3rem;
}

/* Mobile styles */
@media only screen and (max-width: 798px) {
    .nav-container {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        padding: 10px 15px;
    }

    .nav-mobile {
        display: block;
        position: absolute;
        top: 15px;
        right: 20px;
        z-index: 1100;
    }

    .nav-list {
        display: none;
        flex-direction: column;
        background: linear-gradient(to bottom, var(--primary-dark), var(--primary-light));
        width: 100%;
        position: absolute;
        top: 70px;
        right: 0;
        left: 0;
        z-index: 1000;
    }

    .nav-list.open {
        display: flex;
    }

    .nav-list li {
        width: 100%;
        text-align: center;
        border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    }

    .nav-link {
        padding: 14px 0;
        background: none;
        font-size: 1.1rem;
        width: 100%;
        border-radius: 0;
    }

    .dropdown-menu {
        position: static;
        background: none;
        box-shadow: none;
        padding: 0;
    }

    .dropdown-menu li a {
        background: none;
        color: white;
        padding-left: 20px;
    }

    .dropdown-menu li a:hover {
        background: rgba(255, 255, 255, 0.1);
    }

    .hamburger {
        content: "";
        display: block;
        width: 25px;
        height: 3px;
        background-color: var(--primary-dark);
        position: relative;
        transition: all 0.3s;
    }

    .hamburger:before,
    .hamburger:after {
        content: "";
        position: absolute;
        width: 25px;
        height: 3px;
        background-color: var(--primary);
        transition: all 0.3s;
    }

    .hamburger:before {
        top: -8px;
    }

    .hamburger:after {
        top: 8px;
    }

    .hamburger.active {
        background: transparent;
    }

    .hamburger.active:before {
        transform: rotate(45deg);
        top: 0;
    }

    .hamburger.active:after {
        transform: rotate(-45deg);
        top: 0;
    }
}
