/* Arquivo: acessibilidade.css */

/* ===== WIDGET FLUTUANTE ===== */
.btn-acessibilidade {
    position: fixed;  /* ← MUDADO de static para fixed */
    top: 0px;  /* ← VOLTADO ao original */
    right: 30px;
    width: 45px;  /* ← VOLTADO ao original */
    height: 45px;  /* ← VOLTADO ao original */
    border-radius: 50%;
    background-color: #007bff;
    color: white;
    border: none;
    cursor: pointer;
    font-size: 24px;  /* ← VOLTADO ao original */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 999;  /* ← VOLTADO ao original */
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-acessibilidade:hover {
    background-color: #0056b3;
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

/* ===== PAINEL DE ACESSIBILIDADE ===== */
.painel-acessibilidade {
    position: fixed;
    top: 110px;  /* ← VOLTADO ao original */
    right: 30px;
    width: 300px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    z-index: 999;  /* ← VOLTADO ao original */
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.painel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    border-bottom: 1px solid #e0e0e0;
    background-color: #f8f9fa;
    border-radius: 8px 8px 0 0;
}

.painel-header h5 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.btn-fechar {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #666;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-fechar:hover {
    color: #000;
}

.painel-body {
    padding: 15px;
    max-height: 400px;
    overflow-y: auto;
}

/* ===== OPÇÕES DE ACESSIBILIDADE ===== */
.opcao-acessibilidade {
    margin-bottom: 15px;
}

.opcao-acessibilidade label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 14px;
    color: #333;
    margin: 0;
}

.opcao-acessibilidade input[type="checkbox"] {
    margin-right: 10px;
    cursor: pointer;
    width: 18px;
    height: 18px;
}

/* ===== CONTROLE DE FONTE ===== */
.controle-fonte {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 8px;
    gap: 10px;
}

.btn-controle {
    background-color: #e9ecef;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    padding: 6px 10px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s ease;
}

.btn-controle:hover {
    background-color: #dee2e6;
}

#valor-fonte {
    font-weight: 600;
    color: #007bff;
    min-width: 50px;
    text-align: center;
}

/* ===== BOTÃO RESETAR ===== */
.btn-resetar {
    width: 100%;
    padding: 10px;
    background-color: #6c757d;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.2s ease;
}

.btn-resetar:hover {
    background-color: #5a6268;
}

/* ===== ALTO CONTRASTE ===== */
body.alto-contraste {
    background-color: #000 !important;
    color: #ffff00 !important;
}

body.alto-contraste * {
    background-color: #000 !important;
    color: #ffff00 !important;
    border-color: #ffff00 !important;
}

body.alto-contraste a {
    color: #00ffff !important;
    text-decoration: underline !important;
}

body.alto-contraste button,
body.alto-contraste .btn {
    background-color: #ffff00 !important;
    color: #000 !important;
    border-color: #ffff00 !important;
}

body.alto-contraste .btn-primary {
    background-color: #00ffff !important;
    color: #000 !important;
}

body.alto-contraste .navbar,
body.alto-contraste .header,
body.alto-contraste header {
    background-color: #000 !important;
    border-color: #ffff00 !important;
}

body.alto-contraste .card {
    background-color: #000 !important;
    border-color: #ffff00 !important;
}

/* ===== MODO ESCURO ===== */
body.modo-escuro {
    background-color: #1a1a1a !important;
    color: #e0e0e0 !important;
}

body.modo-escuro * {
    background-color: #1a1a1a !important;
    color: #e0e0e0 !important;
}

body.modo-escuro a {
    color: #64b5f6 !important;
}

body.modo-escuro .navbar,
body.modo-escuro header {
    background-color: #0d0d0d !important;
    border-color: #333 !important;
}

body.modo-escuro .card {
    background-color: #2a2a2a !important;
    border-color: #444 !important;
}

body.modo-escuro .btn-primary {
    background-color: #1976d2 !important;
}

body.modo-escuro .form-control,
body.modo-escuro input,
body.modo-escuro textarea {
    background-color: #2a2a2a !important;
    color: #e0e0e0 !important;
    border-color: #444 !important;
}

/* ===== AUMENTAR ESPAÇAMENTO ===== */
body.espacamento-aumentado {
    line-height: 1.8 !important;
    letter-spacing: 0.05em !important;
}

body.espacamento-aumentado p {
    margin-bottom: 1.2em !important;
    line-height: 1.8 !important;
}

body.espacamento-aumentado h1,
body.espacamento-aumentado h2,
body.espacamento-aumentado h3,
body.espacamento-aumentado h4,
body.espacamento-aumentado h5,
body.espacamento-aumentado h6 {
    margin-bottom: 0.8em !important;
    margin-top: 0.8em !important;
}

body.espacamento-aumentado li {
    margin-bottom: 0.5em !important;
}

body.espacamento-aumentado .btn,
body.espacamento-aumentado button {
    padding: 0.6em 1.2em !important;
}

/* ===== REMOVER ANIMAÇÕES ===== */
body.sem-animacoes * {
    animation: none !important;
    transition: none !important;
}

/* ===== RESPONSIVIDADE ===== */
@media (max-width: 768px) {
    .btn-acessibilidade {
        width: 50px;
        height: 50px;
        font-size: 20px;
        top: 100px;
        right: 20px;
    }

    .painel-acessibilidade {
        width: 280px;
        top: 160px;
        right: 20px;
    }
}

@media (max-width: 480px) {
    .btn-acessibilidade {
        width: 45px;
        height: 45px;
        font-size: 18px;
        top: 80px;
        right: 15px;
    }

    .painel-acessibilidade {
        width: 260px;
        top: 140px;
        right: 15px;
    }

    .painel-body {
        max-height: 300px;
    }
}