/* Base */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f4f4f4;
    color: #333;
    margin: 0;
    padding: 0;
}

header {
    background-color: #2c3e50;
    color: white;
    padding: 20px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

h1 {
    margin: 0;
    font-size: 1.8em;
}

/* Layout Principal */
.container {
    display: flex;
    max-width: 1200px;
    margin: 30px auto;
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.05);
}

.formulario {
    width: 40%;
    padding-right: 20px;
    border-right: 1px solid #ddd;
}

.grafico-area {
    width: 60%;
    padding-left: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Formulário e Inputs */
h2 {
    color: #2c3e50;
    margin-top: 0;
    border-bottom: 2px solid #3498db;
    padding-bottom: 5px;
}

#stats-form label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 15px 0;
    font-weight: bold;
    font-size: 1.1em;
}

#stats-form input {
    width: 60px;
    padding: 8px;
    border: 2px solid #ccc;
    border-radius: 4px;
    text-align: center;
    font-size: 1em;
    transition: border-color 0.3s;
}

#stats-form input:focus {
    border-color: #3498db;
    outline: none;
}

/* Área de Resultados (TOTAL e RANKING) */
.resultado {
    border-radius: 8px;
    color: white;
    text-align: center;
    padding: 10px;
    margin: 10px 0;
    font-weight: bold;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.total-box {
    background-color: #34495e;
}

.ranking-box {
    background-color: #34495e;
}

.total-label, .ranking-label {
    margin: 0;
    font-size: 1.2em;
}

.total-value, .ranking-value {
    margin: 5px 0 0 0;
    font-size: 2.5em;
    /* A cor de fundo será alterada via JavaScript */
}

.numerical-breakdown {
    margin-top: 20px;
    font-size: 0.9em;
    color: #7f8c8d;
    padding-top: 10px;
    border-top: 1px dashed #ccc;
}

/* Gráfico */
.chart-container {
    width: 100%;
    height: 500px; /* Define uma altura fixa para o container do gráfico */
}