/**
 * Navbar Styles
 * Styles for the top navigation bar
 */

.topbar {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    padding: 0 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    box-shadow: var(--shadow-sm);
}

.brand {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.brand:hover {
    color: var(--primary-dark);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.nav-links a {
    color: var(--text);
    text-decoration: none;
    padding: 0.35rem 0.75rem;
    border-radius: 2px;
    transition: background-color 0.15s ease, color 0.15s ease;
    font-weight: 500;
}

.nav-links a:hover {
    background: var(--bg-secondary);
    color: var(--text);
}

.nav-links a.active {
    background: var(--primary);
    color: white;
}

.controls {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.theme-toggle {
    background: none;
    border: 1px solid var(--border);
    border-radius: 2px;
    padding: 0.4rem;
    cursor: pointer;
    font-size: 1.2rem;
    transition: background-color 0.15s ease, border-color 0.15s ease;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.theme-toggle:hover {
    background: var(--bg-secondary);
    border-color: var(--primary);
}

.user-menu {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .topbar {
        padding: 0 0.5rem;
        flex-wrap: wrap;
        min-height: 50px;
    }

    .brand {
        font-size: 1.25rem;
    }

    .nav-links {
        order: 3;
        width: 100%;
        justify-content: center;
        margin-top: 0.5rem;
        gap: 1rem;
    }

    .nav-links a {
        padding: 0.375rem 0.75rem;
        font-size: 0.9rem;
    }

    .controls {
        order: 2;
    }
}