.sidebar{
    overflow-y: auto;
}

:root {
    --sidebar-bg: #0b5394;
    --sidebar-text: #ffffff;
    --sidebar-hover: #09396b;
    --sidebar-active: #072f58;
}

/* ==== SIDEBAR ==== */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 240px;
    height: 100vh;
    background: var(--cor-primaria);
    color: var(--sidebar-text);
    padding: 20px 10px;
    display: flex;
    flex-direction: column;
    z-index: 2000;
}

.sidebar-header {
    display: flex;
    align-items: center;
    padding: 0 10px 20px;
    gap: 10px;
}

.sidebar-logo {
    width: 45px;
    height: auto;
    object-fit: contain;
}

.sidebar-title {
    font-size: 1.2rem;
    font-weight: bold;
}

.sidebar-menu {
    display: flex;
    flex-direction: column;
}

.menu-group-title {
    font-size: 0.75rem;
    opacity: 0.7;
    text-transform: uppercase;
    margin: 15px 10px 5px;
}

.menu-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    border-radius: 8px;
    color: #ffffff;
    text-decoration: none;
    margin: 3px 0;
    transition: background 0.2s;
}

.menu-item:hover {
    background: var(--sidebar-hover);
}

.menu-item.active {
    background: var(--sidebar-active);
}

.logout {
    margin-top: auto;
    background: #e74c3c !important;
}

/* ==== LAYOUT PRINCIPAL ==== */
.main-wrapper {
    padding: 25px;
    min-height: 100vh;
    background: #e6f1fb;
}

.with-sidebar {
    margin-left: 240px;
}

.main-content {
    padding: 10px 15px;
}

/* ==== BOTÃO HAMBURGUER ==== */
.menu-toggle {
    position: fixed;
    top: 15px;
    left: 15px;
    background: #0b5394;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 6px 10px;
    font-size: 22px;
    z-index: 2100;
    display: none;  /* só aparece no mobile */
}

/* ==== MOBILE ==== */
@media (max-width: 900px) {

    .sidebar {
        transform: translateX(-260px);
        transition: transform 0.3s ease;
    }

    .sidebar.open {
        transform: translateX(0);
    }

    .with-sidebar {
        margin-left: 0;
    }

    .menu-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
}
