/* Botão de navegação home padronizado */
.nav-home {
    position: fixed;
    top: 50%;
    left: 20px;
    transform: translateY(-50%);
    z-index: 1000;
}

.nav-home button {
    background-color: rgba(0, 0, 0, 0.3);
    border: none;
    border-radius: 44%;
    width: 60px;
    height: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    padding: 0;
}

.nav-home button:hover {
    background-color: rgba(78, 144, 118, 1);
    transform: scale(1.05);
}

.brasil-icon {
    width: 50px;
    height: 50px;
    filter: brightness(0) invert(1);
    transition: all 0.3s ease;
}

.nav-home button:hover .brasil-icon {
    filter: brightness(0) invert(1);
}

body {
    font-family: var(--font-stack);
    margin: 0;
    padding: 20px;
    background-color: #f5f5f5;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

h1 {
    color: #333;
    text-align: center;
}

.subtitle {
    color: #666;
    text-align: center;
    font-size: 16px;
    margin-top: -10px;
    margin-bottom: 30px;
    font-style: italic;
}

.chart-container {
    position: relative;
    height: 500px;
    margin-top: 20px;
}

.nav-buttons {
    display: flex;
    justify-content: center;
    margin: 20px 0;
    gap: 10px;
}

.nav-button {
    padding: 10px 20px;
    background-color: #4E9076;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s;
}

.nav-button:hover {
    background-color: #3a7059;
}

.nav-button.active {
    background-color: #3a7059;
    font-weight: bold;
}

.footer {
    margin-top: 20px;
    text-align: center;
    font-size: 14px;
    color: #666;
}

#loading {
    text-align: center;
    margin-top: 20px;
    font-weight: bold;
}

#error-message {
    color: red;
    text-align: center;
    margin-top: 20px;
    font-weight: bold;
}

.stats-container {
    text-align: center;
    margin: 20px 0;
    font-size: 18px;
}

.stats-value {
    font-weight: bold;
    font-size: 24px;
    color: #4E9076;
}

.legend-container {
    display: flex;
    justify-content: center;
    margin: 10px 0;
}

.legend-item {
    display: flex;
    align-items: center;
    margin-right: 20px;
}

.legend-color {
    width: 20px;
    height: 20px;
    margin-right: 5px;
    border-radius: 3px;
}