/* FinControl - Estilos principais */

:root {
    --fc-primary: #2563EB;
    --fc-sidebar-width: 0px;
    --fc-navbar-height: 56px;
}

body {
    background-color: #F1F5F9;
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

.wrapper {
    min-height: 100vh;
}

.main-content {
    margin-top: var(--fc-navbar-height);
    min-height: calc(100vh - var(--fc-navbar-height));
    padding-bottom: 2rem;
}

/* Navbar */
.navbar {
    height: var(--fc-navbar-height);
}

/* Cards */
.card {
    border-radius: 12px;
}

.card-header {
    border-radius: 12px 12px 0 0 !important;
}

/* Tabelas */
.table th {
    font-weight: 600;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    color: #6B7280;
}

.table-danger-subtle {
    background-color: #FEF2F2 !important;
}

/* Badges */
.badge {
    font-weight: 500;
    letter-spacing: 0.2px;
}

/* Formulários */
.form-control:focus,
.form-select:focus {
    border-color: var(--fc-primary);
    box-shadow: 0 0 0 0.2rem rgba(37, 99, 235, 0.15);
}

/* Botões */
.btn {
    border-radius: 8px;
    font-weight: 500;
}

/* Autocomplete */
#autocompleteList {
    max-height: 200px;
    overflow-y: auto;
    border: 1px solid #dee2e6;
    border-top: none;
    border-radius: 0 0 8px 8px;
}

/* Progress */
.progress {
    border-radius: 99px;
}

/* Scrollbar customizada */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: #f1f5f9; }
::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #94a3b8; }

/* Responsivo */
@media (max-width: 768px) {
    .main-content { padding: 1rem; }
    .card-body { padding: 1rem; }
}

/* ===== NAVBAR MOBILE ===== */
@media (max-width: 991.98px) {
    #navMenu {
        background-color: #1d4ed8;
        border-radius: 0 0 10px 10px;
        padding: 8px 4px;
        margin-top: 4px;
    }
    #navMenu .nav-link {
        color: rgba(255,255,255,.9) !important;
    }
    #navMenu .nav-link:hover {
        color: #fff !important;
    }
    #navMenu .dropdown-menu {
        background-color: #1e40af;
        border: none;
        box-shadow: none;
        padding-left: 12px;
    }
    #navMenu .dropdown-item {
        color: #e0e7ff !important;
    }
    #navMenu .dropdown-item:hover,
    #navMenu .dropdown-item:focus {
        background-color: rgba(255,255,255,.15) !important;
        color: #fff !important;
    }
    #navMenu .dropdown-divider {
        border-color: rgba(255,255,255,.2);
    }
}
