#navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 4rem;
    position: relative;
    z-index: 10;
    top: 0;
    box-shadow: 0 2px 10px var(--font);
    transition: all 0.7s ease;
    background-color: var(--fundo);

    a {
        font-weight: normal;
    }
}

.admh{
    line-height: 0;
    padding: 0.5rem;
}
.admbk{
    color: var(--fundo) !important;
    background: var(--azul) !important;
}
.admbk:hover{
    background: var(--font) !important;
}
.logout{
    border-radius: 7px !important;
}

/* Classe adicionada quando o header deve ficar fixo */
.sticky {
    position: fixed !important;
    z-index: 100 !important;
    padding: 1rem 3rem !important;
    box-shadow: 0 -20px 50px rgb(0 0 0 / 67%) !important;
    width: calc(100% - 2rem);
    margin: 1rem;
    background: var(--fundo);
    border-radius: 0.7rem;
    left: 0 !important;
    transform: translateX(0) !important;
}

.logo svg {
    height: 2.5rem;
    width: auto;
}

.menu-desktop ul {
    display: flex;
    list-style: none;
    gap: 3rem;
}

.menu-desktop a {
    text-decoration: none;
    position: relative;
    color: var(--font);
}

.menu-desktop a::after {
    content: '';
    display: block;
    width: 0%;
    height: 2px;
    transition: 0.3s ease;
    background: var(--amarelo);
    margin-top: 5px;
}

.menu-desktop a:hover {
    color: var(--azul);
}

.menu-desktop a.active,
.menu-desktop a:focus {
    font-weight: bold !important;
}

.menu-desktop a:hover::after,
.menu-desktop a:focus::after,
.menu-desktop a.active::after {
    width: 100%;
}

.menu-desktop a:hover::after {
    background: var(--laranja);
}

/* Menu Mobile */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--font);
    border-radius: 2px;
}

.menu-toggle:hover span {
    background: var(--amarelo);
}

.menu-mobile {
    position: fixed;
    top: 0;
    left: -100%;
    width: 80%;
    max-width: 300px;
    height: 100vh;
    background: white;
    padding: 2rem;
    transition: left 0.3s ease-in-out;
    z-index: 250;
}

.menu-mobile ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.menu-mobile a {
    font-weight: normal;
    text-decoration: none;
    font-size: 1.2rem;
    color: var(--font);
}

.menu-mobile a.active {
    border-left: 0.3rem solid var(--amarelo);
    padding: 0 0.7rem;
    font-weight: bold !important;
    color: var(--azul);
}

.menu-mobile.open {
    left: 0;
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 200;
}

.overlay.show {
    opacity: 1;
    visibility: visible;
}

/* Responsivo */
@media (max-width: 900px) {
    .menu-desktop {
        display: none;
    }

    .menu-toggle {
        display: flex;
    }
}

@media (max-width: 500px) {
    #navbar {
        padding: 1rem 2rem !important;
    }

    .logo svg {
        height: 2rem !important;
    }
}