.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: #667eea;
    z-index: 1000;
    padding: 10px 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    height: 40px;
    display: flex;
    align-items: center;
}

.nav-container {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    gap: 15px;
    height: 20px;
    align-items: center;
}

.nav-link {
    color: white;
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 5px;
    transition: background 0.3s;
    font-size: 14px;
    font-weight: 500;
    font-family: Arial, sans-serif;
    display: inline-block;
    height: auto;
    line-height: 1;
    margin: 0;
    border: none;
    background: transparent;
    box-sizing: border-box;
}

.nav-link:hover,
.nav-link:focus {
    background: rgba(255,255,255,0.2);
    outline: none;
}

.nav-link.active {
    background: rgba(255,255,255,0.3);
}

.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-toggle {
    cursor: pointer;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: #667eea;
    min-width: 180px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    border-radius: 5px;
    margin-top: 0;
    padding: 8px 0;
    z-index: 1001;
}

.dropdown:hover .dropdown-menu {
    display: block;
}

.dropdown-item {
    display: block;
    color: white;
    text-decoration: none;
    padding: 10px 16px;
    font-size: 14px;
    font-weight: 500;
    font-family: Arial, sans-serif;
    transition: background 0.3s;
    white-space: nowrap;
}

.dropdown-item:hover {
    background: rgba(255,255,255,0.2);
}

.dropdown-item.active {
    background: rgba(255,255,255,0.3);
}

@media (max-width: 768px) {
    .nav-container {
        gap: 10px;
    }

    .nav-link {
        padding: 6px 12px;
        font-size: 13px;
    }
}
