/* Importar fonte */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap');

/* HERDA VARIÁVEIS DO CSS PRINCIPAL (novo_estilo.css) */

/* BASE */
body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-main);
    overflow-y: auto; overflow-x: hidden;
    transition: background 0.4s, color 0.4s;
}

/* SCROLLBAR */
::-webkit-scrollbar { width: 10px; } 
::-webkit-scrollbar-track { background: rgba(93, 155, 62, 0.05); }
::-webkit-scrollbar-thumb { background: #9BC786; border-radius: 6px; border: 3px solid transparent; background-clip: content-box; }
::-webkit-scrollbar-thumb:hover { background-color: var(--primary-color); }

/* HEADER */
.header-fixed {
    position: fixed; top: 0; left: 0; right: 0; height: 80px;
    background: var(--bg-body); z-index: 1050; display: flex; align-items: center; padding: 0 2rem;
    border-bottom: 1px solid var(--border-light);
}

/* LAYOUT 2 COLUNAS */
.full-height-container {
    margin: 80px auto 0; max-width: 1400px; min-height: calc(100vh - 80px);
    padding: 2rem;
    display: grid; grid-template-columns: 300px 1fr; gap: 2rem;
}
@media (max-width: 992px) { .full-height-container { grid-template-columns: 1fr; padding: 1rem; display: block; } .modern-card { margin-bottom: 1.5rem; } }

/* CARDS */
.modern-card {
    background: var(--bg-card); border-radius: 20px; box-shadow: var(--shadow-soft);
    border: 1px solid rgba(255,255,255,0.5); display: flex; flex-direction: column; height: 100%; overflow: hidden;
}
.card-header-modern { padding: 1.5rem; font-weight: 700; border-bottom: 1px solid var(--border-light); display: flex; align-items: center; flex-shrink: 0; }
.card-header-modern i { color: var(--secondary-color); background: rgba(230, 179, 62, 0.15); padding: 8px; border-radius: 10px; margin-right: 12px; }
.card-body-modern { padding: 1.5rem; flex-grow: 1; overflow-y: auto; display: flex; flex-direction: column; }

/* LISTA */
.list-group-item {
    background: #FAFAFA; border: none; border-radius: 12px; margin-bottom: 8px; padding: 1rem;
    transition: 0.2s; border-left: 4px solid transparent;
}
.list-group-item:hover { background: var(--bg-body); transform: translateX(5px); border-left-color: var(--primary-color); box-shadow: 0 4px 10px rgba(0,0,0,0.05); }
.badge-tipo { background: rgba(93, 155, 62, 0.15); color: var(--primary-dark); padding: 4px 10px; border-radius: 20px; font-size: 0.75em; font-weight: 600; }

/* DARK MODE FIXES */
body.dark-mode .header-fixed { background: var(--bg-body); border-bottom: 1px solid var(--border-light); }
body.dark-mode .modern-card { border: 1px solid var(--border-light); }
body.dark-mode .list-group-item { background: #15221A; color: var(--text-main); }
body.dark-mode .list-group-item:hover { background: #0B1410; }
body.dark-mode .badge-tipo { background: rgba(118, 192, 86, 0.15); color: #76C056; }
body.dark-mode .form-control, body.dark-mode .form-select { background: #0B1410; border-color: #2A4530; color: white; }
body.dark-mode .modal-content { background: #15221A; border: 1px solid #2A4530; }
/* Fix específico para o fundo claro do modal no dark mode */
body.dark-mode .bg-light { background-color: #1A2B21 !important; border-color: #2A4530 !important; color: #E3F2E6 !important; }

@media (min-width: 576px) {
    .modal-sm {
        --bs-modal-width: 500px;
    }
}