/* Estilos para visualização de dados ENEM */

/* Botão de navegação */
.nav-button {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 1000;
}

.home-button {
    display: inline-block;
    padding: 10px 15px;
    background-color: #4E9076;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-size: 14px;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.home-button:hover {
    background-color: #3d7060;
}

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

.container {
    max-width: 900px;
    margin: 0 auto;
    background-color: white;
    padding: 20px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    border-radius: 5px;
    margin-bottom: 30px;
}

h1, h2 {
    color: #333;
    text-align: center;
    margin-bottom: 30px;
    font-size: 24px;
}

h2 {
    font-size: 20px;
    margin-top: 15px;
}

.chart-container {
    position: relative;
}

.tooltip {
    position: absolute !important;
    padding: 8px;
    background: rgba(0, 0, 0, 0.8) !important;
    color: #fff !important;
    border-radius: 4px;
    font-size: 12px !important;
    pointer-events: none !important;
    opacity: 0;
    z-index: 1000 !important;
    transition: opacity 0.2s ease;
    max-width: 200px;
    text-align: left;
}

.legend {
    display: flex;
    justify-content: center;
    margin-top: 20px;
    flex-wrap: wrap;
}

.legend-item {
    display: flex;
    align-items: center;
    margin: 0 15px;
}

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

.source {
    font-size: 12px;
    color: #666;
    text-align: center;
    margin-top: 30px;
}

.chart-description {
    font-size: 14px;
    color: #555;
    text-align: center;
    margin: 10px 0 20px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.5;
}

/* Estilos para o filtro de UF */
.filter-container {
    max-width: 900px;
    margin: 20px auto;
    text-align: center;
    background-color: white;
    padding: 15px;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

.state-filter {
    padding: 8px 12px;
    font-size: 16px;
    border-radius: 4px;
    border: 1px solid #ccc;
    background-color: white;
    min-width: 200px;
    cursor: pointer;
}

.filter-container label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #333;
}

#loading-indicator {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 10px 20px;
    border-radius: 4px;
    z-index: 100;
}

#chart-es svg {
    transition: opacity 0.5s ease;
}
