:root {
    --bg-dark: #0a0a0a;
    --bg-sidebar: #121212;
    --bg-card-dark: #171717;
    --bg-card-white: #ffffff;
    --text-main: #ffffff;
    --text-muted: #a3a3a3;
    --text-dark: #0f172a;
    --brand-yellow: #eab308;
    --brand-yellow-hover: #ca8a04;
    --border-color: #262626;
}

body { 
    font-family: 'Inter', sans-serif; 
    background-color: var(--bg-dark); 
    color: var(--text-main);
    margin: 0; 
    padding: 0; 
    display: flex; 
    height: 100vh;
    overflow: hidden;
}

/* --- SIDEBAR --- */
.sidebar {
    width: 200px; 
    background-color: var(--bg-sidebar);
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    padding: 15px 0;
    transition: width 0.3s ease, padding 0.3s ease;
    overflow: hidden;
}
.sidebar.collapsed {
    width: 70px;
    padding: 15px 0;
}
.logo-container {
    padding: 0 20px;
    margin-bottom: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: padding 0.3s ease;
}
.sidebar.collapsed .logo-container {
    padding: 0 10px;
    margin-bottom: 20px;
}
.logo-img {
    max-width: 140px;
    height: auto;
    transition: max-width 0.3s ease;
}
.sidebar.collapsed .logo-img {
    max-width: 40px;
}
.toggle-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 16px;
    padding: 5px;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}
.toggle-btn:hover {
    color: var(--brand-yellow);
}
.sidebar.collapsed .toggle-btn i {
    transform: rotate(180deg);
}

.menu { list-style: none; padding: 0; margin: 0; }
.menu li { padding: 0 10px; margin-bottom: 5px; }
.menu a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 15px;
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 500;
    font-size: 14px;
    border-radius: 8px;
    transition: all 0.3s;
    white-space: nowrap;
}
.menu a:hover { color: var(--text-main); background-color: rgba(255,255,255,0.05); }
.menu a.active {
    background-color: var(--brand-yellow-hover);
    color: var(--text-main);
}
.sidebar.collapsed .menu a {
    padding: 10px 5px;
    gap: 0;
}
.sidebar.collapsed .menu a i {
    margin: 0;
}
.menu-text {
    transition: opacity 0.3s;
}
.sidebar.collapsed .menu-text {
    opacity: 0;
    width: 0;
    overflow: hidden;
}

/* --- CONTEÚDO PRINCIPAL --- */
.main-content {
    flex: 1;
    padding: 15px 25px; 
    overflow-y: auto;
}
.breadcrumb {
    font-size: 11px;
    color: var(--text-muted);
    margin-bottom: 10px;
}
.breadcrumb strong { color: var(--text-main); font-weight: 600; font-size: 13px; margin-left: 5px; }

/* --- CARTÕES --- */
.card-white {
    background-color: var(--bg-card-white);
    color: var(--text-dark);
    border-radius: 10px;
    padding: 15px 20px; 
    margin-bottom: 15px; 
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}
.header-title h1 { margin: 0 0 2px 0; font-size: 20px; font-weight: 700; }
.header-title p { margin: 0; color: #64748b; font-size: 12px; }

/* Filtros */
.filtros-container {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px dashed #cbd5e1;
}
.filtro-item { display: flex; flex-direction: column; gap: 4px; flex: 1; min-width: 140px;}
label { font-size: 11px; font-weight: 700; color: #475569; text-transform: uppercase; }
select { 
    padding: 8px; border-radius: 6px; border: 1px solid #cbd5e1; 
    background: #f8fafc; font-size: 13px; color: #1e293b; 
    font-family: 'Inter', sans-serif; cursor: pointer; outline: none;
}
select:focus { border-color: var(--brand-yellow); }

/* --- KPIs ESCUROS --- */
.kpi-row {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}
.kpi-card {
    flex: 1;
    background-color: var(--bg-card-dark);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 15px;
    display: flex;
    flex-direction: column;
}
.kpi-title { color: var(--text-muted); font-size: 12px; margin-bottom: 5px; }
.kpi-value { color: var(--text-main); font-size: 26px; font-weight: 700; }

/* --- GRÁFICOS --- */
.charts-column { 
    display: flex; 
    flex-direction: column; 
    gap: 15px; 
}
.chart-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.chart-header h3 { margin: 0; font-size: 15px; font-weight: 700; }

.canvas-container {
    position: relative;
    height: 350px; 
    width: 100%;
}