/* Estilize o sidebar */

:root {
    --primary-color: #0070c5;
    --secondary-color: #12a1ed;
    --terciary-color: #00325b; /* 00233f */
    --quartiary-color: #133652;
}

.sidebar {
    height: 100%;
    width: 300px;
    position: fixed;
    top: 0;
    left: -300px;
    background: url(../img/background-menu.png) no-repeat;
    background-size: cover;
    padding-top: 20px;
    transition: left 0.3s ease-in-out;
    z-index: 1000;
    overflow-y: scroll;
}

/* scroll do sidebar */
.sidebar::-webkit-scrollbar {
    width: 10px;
}

.sidebar::-webkit-scrollbar-thumb {
    background-color: var(--primary-color);
    border-radius: 10px;
}

.sidebar::-webkit-scrollbar-track {
    background-color: var(--quartiary-color);
}

.sidebar.show {
    left: 0;
}

.sidebar ul {
    list-style: none;
    padding: 0;
}

.sidebar .categoria-nome {
    margin-left: 1rem;
    color: var(--primary-color);
    font-weight: bold;
    font-size: 12px;
    margin-bottom: 0.25rem;
}

/* Estilizando os links do menu */
.sidebar a {
    padding: 15px 25px;
    text-decoration: none;
    font-size: 16px;
    color: #fff;
    display: block;
    transition: 0.3s;
}

.sidebar a:hover {
    background-color: rgba(1, 1, 1, 0.15);
}

/* Estilizando o botão de abrir/fechar o menu em telas pequenas */
.menu-toggle {
    font-size: 30px;
    cursor: pointer;
    color: #fff;
    z-index: 1100;
}

.content {
    padding: 20px;
    transition: margin-left 0.3s ease-in-out;
    min-height: calc(100vh - 70px); /* Leva em consideração a altura do cabeçalho e do rodapé */
    padding-bottom: 70px; /* Leva em consideração a altura do rodapé */
    overflow: auto; /* Permite a rolagem do conteúdo caso exceda o tamanho da tela */
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.3);
    display: none;
    z-index: 900;
}

.overlay.show {
    display: block;
}

@media (min-width: 979px) {
    .sidebar {
        left: 0;
    }

    .menu-toggle {
        display: none;
    }

    .content {
        margin-left: 300px; /* Adiciona uma margem ao conteúdo quando o menu está aberto */
    }
}
aside i.fa-solid {
    color: white;
    margin-right: 1.5rem;
    width: 15px;
}

/* .sub-menu ul {
    background-color: rgba(var(--terciary-color), 0.3);
}

.sub-menu ul li:hover {
    color: var(--primary-color);
} */

.sub-menu > ul > li {
    background-color: rgba(var(--terciary-color), 0.5) !important;
    color: white;
}