:root {
    --sidebar-bg: #1a1a2e;
    --teal: #00b4d8;
    --orange: #f4a261;
    --red: #e63946;
    --green: #57cc99;
    --bg-light: #f8f9fa;
    --text-muted: #94a3b8;
    --navbar-height: 70px;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-light);
    color: #334155;
    overflow-x: hidden;
}

/* Estrutura Principal */
.wrapper {
    display: flex;
    width: 100%;
    align-items: stretch;
}

/* Sidebar Estilizada */
#sidebar {
    min-width: 250px;
    max-width: 250px;
    background: var(--sidebar-bg);
    color: #fff;
    transition: all 0.3s;
    min-height: 100vh;
    z-index: 1000;
}

#sidebar.active {
    margin-left: -250px;
}

#sidebar .sidebar-header {
    padding: 25px 20px;
    background: rgba(0, 0, 0, 0.2);
    font-weight: 700;
    font-size: 1.25rem;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.menu-label {
    padding: 25px 20px 10px 20px;
    font-size: 0.7rem;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--text-muted);
    margin-bottom: 0;
}

#sidebar ul.components {
    padding: 0;
}

#sidebar ul li a {
    padding: 12px 20px;
    font-size: 0.9rem;
    display: block;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: all 0.2s;
    border-left: 4px solid transparent;
}

#sidebar ul li a:hover,
#sidebar ul li.active > a {
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
    border-left: 4px solid var(--teal);
}

/* Conteúdo e Topbar */
#content {
    width: 100%;
    min-height: 100vh;
    transition: all 0.3s;
}

.navbar {
    height: var(--navbar-height);
    border: none;
    border-radius: 0;
    padding: 0 20px;
}

/* Filtros Estilizados */
.form-select-sm {
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    padding-right: 30px;
    font-size: 0.85rem;
    color: #475569;
}

/* Cards de Indicadores */
.card {
    border: none;
    border-radius: 16px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    transition: transform 0.2s;
}

.indicator-card {
    padding: 20px;
}

.card-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.card-value {
    font-size: 2rem;
    font-weight: 800;
    line-height: 1;
}

.card-label {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-muted);
    margin-top: 5px;
}

/* Cores dos Cards */
.bg-teal-light { background-color: rgba(0, 180, 216, 0.1); color: var(--teal); }
.bg-orange-light { background-color: rgba(244, 162, 97, 0.1); color: var(--orange); }

/* Tabela ISF */
.table-isf thead th {
    background-color: #f8fafc;
    color: #64748b;
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    padding: 15px;
    border-top: none;
}

.table-isf tbody td {
    padding: 15px;
    vertical-align: middle;
    border-bottom: 1px solid #f1f5f9;
}

/* Gauge Container */
.gauge-box {
    position: relative;
    height: 200px;
    width: 100%;
}

.gauge-text {
    position: absolute;
    top: 65%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.gauge-percent {
    font-size: 2.5rem;
    font-weight: 800;
    color: #1e293b;
}

/* Responsividade */
@media (max-width: 768px) {
    #sidebar {
        margin-left: -250px;
    }
    #sidebar.active {
        margin-left: 0;
    }
    .navbar .filters-container {
        display: none !important;
    }
}