/* --- ESTILOS DA BARRA FLUTUANTE DE ACESSIBILIDADE --- */
.acessibilidade-flutuante {
    position: fixed;
    top: 50%; /* Centraliza verticalmente */
    right: 0;
    transform: translateY(-50%);
    z-index: 9999; /* Garante que fique acima de tudo */
    display: flex;
    flex-direction: column;
}

.acessibilidade-opcoes {
    display: flex;
    flex-direction: column;
    background-color: #333;
    padding: 10px;
    border-radius: 5px 0 0 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}

.acessibilidade-opcoes.hidden {
    display: none;
}

.btn-acessibilidade-toggle {
    background-color: var(--color-primary, #1e73be); 
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 5px 0 0 5px;
    cursor: pointer;
    font-size: 1.5em;
    margin-bottom: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.acessibilidade-opcoes button {
    background-color: #555;
    color: white;
    border: 1px solid #777;
    margin-bottom: 5px;
    padding: 8px;
    cursor: pointer;
    font-weight: bold;
    font-size: 1em;
    border-radius: 3px;
    width: 100%;
}

.acessibilidade-opcoes button:hover {
    background-color: #777;
}

/* --- ESTILOS PARA ALTO CONTRASTE (Com !important para garantir que sobrescreva o style.css) --- */
body.high-contrast {
    background-color: black !important;
    color: white !important;
}

body.high-contrast a, 
body.high-contrast .section-title,
body.high-contrast .vereador-info .partido,
body.high-contrast .noticia-meta {
    color: yellow !important;
}

body.high-contrast .card,
body.high-contrast .header-main {
    background-color: black !important;
    border: 1px solid white !important;
    box-shadow: none !important;
}

body.high-contrast .banner-destaque {
    background-color: #00008b !important;
}

body.high-contrast .btn-destaque {
    background-color: yellow !important;
    color: black !important;
}

body.high-contrast .main-nav,
body.high-contrast .main-nav ul li:hover {
    background-color: #00008b !important;
}

/* --- ESTILO PARA GRIFAR LINKS --- */
body.grifar-links a:hover,
body.grifar-links button:focus,
body.grifar-links a:focus {
    outline: 3px solid var(--color-tertiary, #f29a00) !important; /* Amarelo forte */
    background-color: rgba(255, 255, 0, 0.2) !important;
    color: black !important;
}

/* --- RESPONSIVIDADE PARA A BARRA FLUTUANTE --- */
@media (max-width: 768px) {
    .acessibilidade-flutuante {
        top: auto;
        bottom: 20px; /* Desloca para a parte inferior em mobile */
        right: 10px;
        transform: none;
    }
    .btn-acessibilidade-toggle {
        width: 45px;
        height: 45px;
    }
    .acessibilidade-opcoes {
        position: absolute;
        bottom: 50px; /* Acima do botão de toggle */
        right: 0;
    }
}