.main-navigation {
    position: relative;
    z-index: 200;
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 200;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    color: white;
    text-decoration: none;
    padding: 16px 0;
    z-index: 210;
}

.nav-logo h1 {
    font-size: 24px;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.nav-logo .logo-icon {
    font-size: 28px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 8px;
    margin: 0;
    padding: 0;
}

.nav-item {
    position: relative;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 20px 16px;
    color: rgba(255,255,255,0.9);
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.2s;
    border-bottom: 3px solid transparent;
    white-space: nowrap;
}

.nav-link:hover {
    color: white;
    background: rgba(255,255,255,0.1);
}

.nav-link.active {
    color: white;
    border-bottom-color: white;
    background: rgba(255,255,255,0.1);
}

.nav-link .arrow {
    font-size: 12px;
    transition: transform 0.2s;
}

.nav-item:hover .arrow {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    list-style: none;
    padding: 8px 0;
    margin: 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s;
    z-index: 300;
    pointer-events: none;
}

.nav-item:hover .dropdown-menu,
.nav-item.mobile-dropdown-open .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.dropdown-item {
    display: block;
    padding: 12px 20px;
    color: #1e293b;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.2s;
}

.dropdown-item:hover {
    background: #f1f5f9;
    color: #2563eb;
    padding-left: 24px;
}

.dropdown-item.active {
    background: #eff6ff;
    color: #2563eb;
    font-weight: 600;
}

.dropdown-item.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.dropdown-divider {
    height: 1px;
    background: #e2e8f0;
    margin: 8px 0;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 250;
}

.nav-toggle span {
    width: 24px;
    height: 2px;
    background: white;
    transition: all 0.3s;
}

@media (max-width: 768px) {
    .nav-toggle { display: flex; }
    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        background: #2563eb;
        padding: 0;
        gap: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        z-index: 200;
    }
    .nav-menu.active {
        max-height: 1000px;
        padding: 20px;
    }
    .nav-link {
        padding: 16px;
        border-bottom: none;
        border-left: 3px solid transparent;
        width: 100%;
    }
    .nav-link.active {
        border-left-color: white;
    }
    .nav-item { width: 100%; }
    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background: rgba(255,255,255,0.1);
        margin-top: 8px;
        border-radius: 4px;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }
    .nav-item.mobile-dropdown-open .dropdown-menu {
        max-height: 500px;
    }
    .dropdown-item {
        color: white;
        padding: 12px 20px 12px 40px;
    }
    .dropdown-item:hover {
        background: rgba(255,255,255,0.1);
        color: white;
    }
    .nav-link .arrow { margin-left: auto; }
}