nav {
    background-color: #ffffff;
    padding: 1.25rem 2rem;
    border-bottom: 2px solid #e0e0e0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    flex-shrink: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 100;
}

nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 3rem;
    align-items: center;
}

nav li {
    display: inline-block;
}

nav a {
    color: var(--accent-color-dark, #003366);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    transition: all 0.2s ease;
}

nav a:hover {
    color: var(--accent-color, #0066cc);
    background-color: var(--accent-color-light, #e6f2ff);
}

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

.tablet-mode-toggle {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.profile-icon-btn {
    background: none;
    border: none;
    color: var(--accent-color-dark, #003366);
    font-size: 2rem;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease, transform 0.2s ease, background-color 0.2s ease;
    border-radius: 50%;
    width: 34px;
    height: 34px;
}

.profile-icon-btn:hover {
    color: var(--accent-color, #0066cc);
    background-color: var(--accent-color-light, #e6f2ff);
    transform: scale(1.05);
}

@media (max-width: 768px) {
    nav {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
    }
    
    nav ul {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
        gap: 1.5rem;
    }
    
    .nav-right {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .tablet-mode-toggle {
        margin-left: 0;
    }
}

