/* Layout principal */
body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Container principal */
.main-container {
    display: flex;
    flex: 1;
    padding-top: 56px; /* Altura do header */
}

/* Sidebar */
.sidebar {
    width: 250px;
    min-height: calc(100vh - 56px);
    background-color: #f8f9fa;
    border-right: 1px solid #dee2e6;
    position: fixed;
    top: 56px;
    left: 0;
    bottom: 0;
    z-index: 100;
    overflow-y: auto;
    transition: transform 0.3s ease-in-out;
}

/* Conteúdo principal */
.main-content {
    flex: 1;
    margin-left: 250px; /* Largura do sidebar */
    padding: 20px;
    transition: margin 0.3s ease-in-out;
}

/* Ajustes para telas menores */
@media (max-width: 991.98px) {
    .sidebar {
        transform: translateX(-100%);
    }
    
    .sidebar.show {
        transform: translateX(0);
    }
    
    .main-content {
        margin-left: 0;
        width: 100%;
    }
    
    .sidebar-toggled .main-content {
        margin-left: 250px;
    }
}

/* Ajustes para o header */
.app-header {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    z-index: 1030;
    height: 56px;
    box-shadow: 0 2px 4px rgba(0,0,0,.1);
    background-color: #fff;
}

/* Ajustes para o conteúdo dentro do main */
.main-content .container-fluid {
    padding: 20px;
}

/* Ajustes para os cards */
.card {
    margin-bottom: 20px;
    box-shadow: 0 0.125rem 0.25rem rgba(0,0,0,.075);
}

/* Ajustes para tabelas */
.table-responsive {
    background-color: #fff;
    border-radius: 0.25rem;
    box-shadow: 0 0.125rem 0.25rem rgba(0,0,0,.075);
}

/* Ajustes para o botão de toggle do menu em telas menores */
.navbar-toggler {
    border: none;
    padding: 0.5rem;
}

.navbar-toggler:focus {
    box-shadow: none;
    outline: none;
}

/* Ajustes para o menu ativo */
.nav-link.active {
    font-weight: 600;
    color: #0d6efd !important;
}

/* Ajustes para os ícones do menu */
.nav-link i {
    width: 20px;
    margin-right: 10px;
    text-align: center;
}
