:root {
    --bg-color: #0f172a;
    --card-bg: rgba(30, 41, 59, 0.7);
    --accent: #38bdf8;
    --text: #f8fafc;
}

body {
    margin: 0;
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    color: var(--text);
}

.container { display: flex; height: 100vh; }

.sidebar {
    width: 250px;
    background: #1e293b;
    padding: 20px;
    border-right: 1px solid #334155;
}

.logo { font-weight: 600; font-size: 1.5rem; margin-bottom: 40px; }
.logo span { color: var(--accent); }

nav a {
    display: block;
    color: #94a3b8;
    text-decoration: none;
    padding: 12px 15px;
    border-radius: 8px;
    margin-bottom: 10px;
    transition: 0.3s;
}

nav a.active, nav a:hover {
    background: var(--accent);
    color: white;
}

.content { flex: 1; padding: 40px; overflow-y: auto; }

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

.card {
    background: var(--card-bg);
    padding: 25px;
    border-radius: 16px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.1);
}

.value { font-size: 2rem; font-weight: 600; margin: 10px 0; }
.trend { font-size: 0.8rem; }
.pos { color: #4ade80; }
.neg { color: #f87171; }

.charts-container {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 20px;
}

.chart-box {
    background: var(--card-bg);
    padding: 20px;
    border-radius: 16px;
}
.filters select {
    background: #1e293b;
    color: white;
    border: 1px solid var(--accent);
    padding: 10px 20px;
    border-radius: 8px;
    outline: none;
    cursor: pointer;
    font-size: 14px;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}
.judge-profile { margin-top: 25px; display: flex; flex-direction: column; gap: 20px; }
.judge-header { display: flex; align-items: center; gap: 20px; }
.judge-avatar { 
    width: 60px; height: 60px; background: var(--accent); 
    border-radius: 50%; display: flex; align-items: center; 
    justify-content: center; font-weight: bold; font-size: 1.2rem;
}
.judge-score { margin-left: auto; text-align: right; }
.judge-score strong { display: block; font-size: 1.5rem; color: var(--accent); }

.progress-bar { 
    width: 100%; height: 8px; background: #334155; 
    border-radius: 4px; margin-top: 5px; overflow: hidden;
}
.progress-bar div { height: 100%; background: var(--accent); transition: 1s ease-in-out; }
.judge-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.brazil-map { margin-top: 25px; text-align: center; }
#map-container { 
    width: 100%; max-width: 800px; margin: 20px auto; 
    display: flex; justify-content: center; align-items: center;
}
#map-container svg { width: 100%; height: auto; }
#map-container path {
    fill: #334155; /* Cor padrão dos estados */
    stroke: #1e293b; /* Borda dos estados */
    stroke-width: 0.5px;
    transition: fill 0.3s ease-in-out;
}
#map-container path:hover {
    stroke: var(--accent);
    stroke-width: 2px;
    cursor: pointer;
}

.legend { display: flex; justify-content: center; align-items: center; gap: 10px; margin-top: 20px; }
.gradient-bar { 
    width: 150px; height: 10px; 
    background: linear-gradient(to right, #f87171, #facc15, #4ade80); /* Vermelho -> Amarelo -> Verde */
    border-radius: 5px;
}
.btn-premium {
    background: linear-gradient(45deg, #38bdf8, #818cf8);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    margin-top: 20px;
    width: 100%;
}

.btn-premium:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(56, 189, 248, 0.4);
}
.admin-panel { margin-top: 30px; border: 1px dashed var(--accent); }
.input-group { display: flex; gap: 10px; margin-top: 15px; }
.input-group input, .input-group select {
    background: #1e293b;
    border: 1px solid #334155;
    color: white;
    padding: 10px;
    border-radius: 6px;
    flex: 1;
}