/* Variáveis CSS */
:root {
    --vh: 1vh;
    --sidebar-width: 280px;
    --sidebar-width-mobile: 100%;
}

/* Reset e configurações gerais */
* {
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f8f9fa;
}

/* Altura correta para mobile */
.min-vh-100 {
    min-height: 100vh;
    min-height: calc(var(--vh, 1vh) * 100);
}

/* Sidebar */
#sidebar {
    width: var(--sidebar-width);
    min-height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    transition: transform 0.3s ease;
}

/* Sidebar mobile */
@media (max-width: 767.98px) {
    #sidebar {
        transform: translateX(-100%);
        width: var(--sidebar-width-mobile);
    }
    
    #sidebar.menu-open {
        transform: translateX(0);
    }
    
    #content {
        margin-left: 0 !important;
        padding-top: 80px !important;
    }
}

/* Conteúdo principal */
#content {
    margin-left: var(--sidebar-width);
    min-height: 100vh;
    transition: margin-left 0.3s ease;
}

/* Menu */
.nav-link {
    color: #495057 !important;
    padding: 0.75rem 1rem;
    border-radius: 0.375rem;
    margin: 0.125rem 0.5rem;
    transition: all 0.2s ease;
}

.nav-link:hover {
    background-color: #e9ecef;
    color: #212529 !important;
}

.nav-link.active {
    background-color: #0d6efd;
    color: white !important;
}

/* Estilos para tabelas */
.table th {
    background-color: #f8f9fa;
    border-top: none;
    font-weight: 600;
}

/* Badges customizados */
.badge {
    font-size: 0.75em;
}

/* Botões de ação */
.btn-sm {
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
}

/* Modal customizado */
.modal-header {
    background-color: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
}

/* Cards */
.card {
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    border: 1px solid rgba(0, 0, 0, 0.125);
}

/* Toast container */
.toast-container {
    z-index: 9999;
}

/* Loading modal */
#loadingModal .modal-content {
    border: none;
    box-shadow: none;
    background: transparent;
}