/* === navbar.css === */
.navbar {
    background-color: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 1rem 0;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 10;
}

.nav-links a.admin-link {
    color: #003366;
    font-weight: 600;
    border: 1px solid #003366;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2563eb;
}

.nav-links a {
    margin-left: 1.5rem;
    text-decoration: none;
    color: #374151;
    font-weight: 500;
    transition: color 0.2s ease-in-out;
}

.nav-links a:hover,
.nav-links a:focus {
    color: #2563eb;
}

.nav-links.open {
    display: flex !important;
}

.menu-toggle {
    display: block;
    font-size: 1.5rem;
    background: none;
    border: none;
    cursor: pointer;
}

.nav-links {
    display: none;
    flex-direction: column;
    background-color: #ffffff;
    position: absolute;
    top: 64px;
    right: 1rem;
    padding: 1rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border-radius: 0.5rem;
    gap: 1.5rem;
}

@media (min-width: 769px) {
    .menu-toggle {
        display: none;
    }

    .nav-links {
        display: flex;
        flex-direction: row;
        position: static;
        padding: 0;
        box-shadow: none;
        background-color: transparent;
    }

    .nav-links a {
        margin: 0 0 0 1.5rem;
    }
}

/* Dropdown Styles */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropbtn {
    background: none;
    border: none;
    font: inherit;
    color: #374151;
    font-weight: 500;
    margin-left: 1.5rem;
    cursor: pointer;
    transition: color 0.2s;
    padding: 0;
}

.dropbtn:focus,
.dropbtn:hover {
    color: #2563eb;
    outline: none;
}

.dropdown-content {
    display: none;
    position: absolute;
    right: 0;
    min-width: 180px;
    background-color: #fff;
    box-shadow: 0 4px 12px rgba(0,0,0,0.10);
    border-radius: 0.5rem;
    z-index: 100;
    flex-direction: column;
    gap: 0;
    padding: 0.5rem 0;
}

.dropdown-content a {
    color: #374151;
    padding: 0.6rem 1.2rem;
    display: block;
    text-decoration: none;
    font-weight: 500;
}

.dropdown-content a:hover {
    background: #f1f5f9;
    color: #2563eb;
}

/* Show dropdown on hover - desktop only */
@media (min-width: 769px) {
    .dropdown:hover .dropdown-content,
    .dropdown:focus-within .dropdown-content {
        display: block;
    }
    .dropbtn::after {
        content: "";
    }
}

/* On mobile, use open class */
@media (max-width: 768px) {
    .dropdown-content {
        position: static;
        box-shadow: none;
        background: transparent;
        min-width: 0;
        border-radius: 0;
        padding: 0;
    }
    .dropdown-content a {
        padding-left: 2rem;
    }
    .dropdown.open .dropdown-content {
        display: block;
    }
}
