/* Navbar styles */

.navbar {
    background: linear-gradient(180deg, #f0f0f0 0%, #e5e5e5 100%);
    border-bottom: 1px solid #d0d0d0;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    height: 44px;
    width: 100%;
    position: fixed;
    top: 0;
    z-index: 1000;
}

.navbar-content {
    width: 1000px;
    max-width: var(--container-max-width);
    margin: 0 auto;
    height: 100%;
    display: flex;
    align-items: center;
}

.navbar a {
    color: #333;
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
    margin-right: 8px;
}

.navbar a:hover {
    background-color: rgba(0,0,0,0.08);
    color: #000;
    text-decoration: none;
}

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

.dropdown .dropbtn {
    font-size: 14px;
    font-weight: 500;
    border: none;
    outline: none;
    color: #333;
    padding: 8px 16px;
    background-color: transparent;
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.2s ease;
    font-family: inherit;
    margin-right: 8px;
}

.dropdown .dropbtn:hover {
    background-color: rgba(0,0,0,0.08);
    color: #000;
}

.chevron {
    display: inline-block;
    width: 6px;
    height: 6px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(-45deg);
    margin-left: 6px;
    margin-bottom: 2px;
    transition: transform 0.25s ease;
    transform-origin: center;
}

.dropdown:hover .chevron {
    transform: rotate(45deg);
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: #fff;
    min-width: 180px;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
    z-index: 1000;
    border: 1px solid #e0e0e0;
    top: calc(100% - 2px);
    left: 0;
    overflow: hidden;
    padding: 4px 0;
}

.dropdown-content::before {
    content: '';
    position: absolute;
    top: -6px;
    left: 0;
    right: 0;
    height: 6px;
    background: transparent;
}

.dropdown-content a {
    color: #333;
    padding: 8px 16px;
    text-decoration: none;
    display: block;
    text-align: left;
    font-size: 14px;
    transition: background-color 0.2s ease;
    margin: 4px 8px;
    border-radius: 6px;
}

.dropdown-content a:hover {
    background-color: #007AFF;
    color: white;
    text-decoration: none;
}

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

/* Responsive navbar */
@media (max-width: 768px) {
    .dropdown-content {
        min-width: 150px;
    }
}

/* Dark mode navbar */
@media (prefers-color-scheme: dark) {
    .navbar {
        background: linear-gradient(180deg, #2a2a2a 0%, #1f1f1f 100%);
        border-bottom: 1px solid #444;
        box-shadow: 0 1px 3px rgba(0,0,0,0.3);
    }

    .navbar a {
        color: #e0e0e0;
    }

    .navbar a:hover {
        background-color: rgba(255,255,255,0.1);
        color: #fff;
    }

    .dropdown .dropbtn {
        color: #e0e0e0;
    }

    .dropdown .dropbtn:hover {
        background-color: rgba(255,255,255,0.1);
        color: #fff;
    }

    .dropdown:hover .chevron {
        color: #fff;
    }

    .dropdown-content {
        background-color: #2a2a2a;
        border: 1px solid #444;
        box-shadow: 0 8px 24px rgba(0,0,0,0.5);
    }

    .dropdown-content a {
        color: #e0e0e0;
    }

    .dropdown-content a:hover {
        background-color: #0A84FF;
        color: white;
    }
}