/**
 * Arquivo: menu_lateral.css
 * Descrição: Regras de layout e componentes de navegação.
 * Desenvolvedor: GAPI Tecnologia & Sistemas
 */

.dashboard-wrapper {
    display: flex;
    width: 100%;
    min-height: 100vh;
    align-items: stretch;
}

/* Sidebar Desktop Fixa */
.sidebar {
    width: 260px;
    min-width: 260px;
    background-color: #001f3f;
    border-right: 1px solid #00152b;
    padding: 1.5rem 1rem;
    display: flex;
    flex-direction: column;
    z-index: 100;
    position: sticky;
    top: 76px; /* Ajuste este valor de acordo com a altura exata do seu header */
    height: calc(100vh - 76px);
}

/* Sidebar Mobile (Offcanvas) */
.sidebar-mobile {
    background-color: #001f3f !important;
    width: 280px;
}

.main-content {
    flex: 1;
    background-color: #f4f7f6;
    padding: 2rem;
    overflow-x: hidden;
}

/* Links de Navegação */
.nav-link {
    color: #ffffff !important;
    font-weight: 500;
    padding: 0.8rem 1rem;
    border-radius: 6px;
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-decoration: none;
    transition: all 0.2s;
}

.nav-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.main-icon {
    margin-right: 12px;
    width: 20px;
    text-align: center;
}

/* Submenus */
.submenu {
    list-style: none;
    padding: 0.5rem 0 0.5rem 1rem;
    margin-bottom: 0.8rem;
    background-color: rgba(0, 0, 0, 0.15);
    border-radius: 6px;
}

.submenu .nav-link {
    font-size: 0.85rem;
    padding: 0.4rem 1rem;
    color: #cbdcf0 !important;
}

/* Linha Divisória no Submenu */
.submenu-divider {
    height: 1px;
    margin: 8px 10px;
    background-color: rgba(255, 255, 255, 0.15); /* Branco suave para fundo escuro */
    list-style: none;
    display: block;
}

.text-danger-custom {
    color: #ff8080 !important;
}

/* Ajustes Responsivos */
@media (max-width: 768px) {
    .main-content {
        padding: 1rem;
    }
    
    .sticky-top {
        box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    }
}