:root {
    --primary: #d32f2f;
    --primary-dark: #b71c1c;
    --secondary: #424242;
    --bg: #f8f9fa;
    --card-bg: #ffffff;
    --text: #333333;
    --text-light: #757575;
    --border: #e0e0e0;
    --radius: 12px;
    --shadow: 0 4px 12px rgba(0,0,0,0.05);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'Inter', -apple-system, sans-serif; background: var(--bg); color: var(--text); line-height: 1.6; }

.container { max-width: 1400px; margin: 0 auto; padding: 20px; }

/* Navbar Clean */
.navbar { background: #fff; border-bottom: 1px solid var(--border); padding: 15px 0; position: sticky; top: 0; z-index: 100; }
.nav-container { max-width: 1400px; margin: 0 auto; padding: 0 20px; display: flex; justify-content: space-between; align-items: center; }
.navbar h1 { font-size: 1.25rem; font-weight: 700; color: var(--primary); letter-spacing: -0.5px; }

/* Botões Padronizados com Ícones Brancos */
.btn { 
    background: var(--primary); color: white; border: none; padding: 10px 20px; 
    border-radius: 8px; cursor: pointer; font-weight: 600; font-size: 0.85rem;
    transition: all 0.2s ease; display: inline-flex; align-items: center; gap: 8px;
    text-decoration: none;
}
.btn:hover { background: var(--primary-dark); transform: translateY(-1px); box-shadow: 0 4px 8px rgba(211,47,47,0.2); }

.btn-secondary { background: var(--secondary); }
.btn-secondary:hover { background: #333; }

.btn-outline { 
    background: transparent; color: var(--secondary); border: 1px solid var(--border); 
    padding: 8px 16px; border-radius: 8px; cursor: pointer; font-weight: 500; font-size: 0.85rem;
    transition: all 0.2s ease; text-decoration: none;
}
.btn-outline:hover { background: #f5f5f5; border-color: #ccc; }

/* Ícones Brancos (Filtro para forçar branco em emojis ou ícones se necessário) */
.btn i, .btn span { color: white !important; }

/* Cards Modernos */
.card { background: var(--card-bg); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); border: 1px solid rgba(0,0,0,0.03); margin-bottom: 20px; }
.card h3 { font-size: 1rem; font-weight: 700; margin-bottom: 20px; color: var(--secondary); display: flex; justify-content: space-between; align-items: center; }

/* Tabelas Clean */
table { width: 100%; border-collapse: collapse; margin-top: 10px; }
th { text-align: left; padding: 12px; border-bottom: 2px solid var(--bg); color: var(--text-light); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 1px; }
td { padding: 12px; border-bottom: 1px solid var(--bg); font-size: 0.9rem; }

/* Stats Cards */
.stat-card { text-align: center; display: flex; flex-direction: column; justify-content: center; }
.stat-label { font-size: 0.85rem; color: var(--text-light); font-weight: 500; margin-bottom: 8px; }
.stat-value { font-size: 1.75rem; font-weight: 800; color: var(--secondary); }

/* Grids */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }

/* Formulários Clean */
.form-group { margin-bottom: 15px; }
.form-group label { display: block; font-size: 0.85rem; font-weight: 600; margin-bottom: 6px; color: var(--secondary); }
.form-control { 
    width: 100%; padding: 10px 12px; border: 1px solid var(--border); border-radius: 8px; 
    font-size: 0.9rem; transition: border-color 0.2s; outline: none;
}
.form-control:focus { border-color: var(--primary); }

/* Chart Container */
.chart-container { position: relative; height: 300px; width: 100%; }

/* Responsive */
@media (max-width: 768px) {
    .grid-2 { grid-template-columns: 1fr; }
    .nav-container { flex-direction: column; gap: 15px; }
}
