/* =========================================================================
   ESTILO CENTRAL DA MATRIZ DECISIVA (central/estilo_central.css)
   Folha de Estilos Modular Completa, Limpa e Auditada
   ========================================================================= */

.pergunta-texto {
    white-space: pre-wrap;
    overflow-wrap: break-word;
    word-break: break-word;
    max-width: 759px;
    padding: 12px;
    font-size: 22px;
    font-family: Arial, sans-serif;
    color: #ffd700;
    background-color: #1a1a1a;
    border: 1px solid #ffd700;
    border-radius: 6px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
    margin: 25px auto;
    text-align: center;
}

.pergunta-texto a {
    color: #00bfff;
    text-decoration: none;
}

.pergunta-texto a:hover {
    text-decoration: underline;
}

/* Campo Pergunta - Estilo Específico */
#pergunta {
    width: 100%;
    max-width: 759px;
    margin: 0 auto 15px;
    padding: 12px;
    font-size: 16px;
    font-family: Arial, sans-serif;
    color: #333;
    background-color: #f9f9f9;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    resize: none;
    box-sizing: border-box;
    transition: border-color 0.3s, box-shadow 0.3s;
}

/* Ajustes de Altura e Modos */
#pergunta.text-mode {
    height: 550px;
    line-height: 1.5;
    overflow-y: auto;
}

#pergunta.phrase-mode {
    height: 50px;
}

/* Foco - Destaque */
#pergunta:focus {
    border-color: #007bff;
    box-shadow: 0 0 6px rgba(0, 123, 255, 0.5);
    outline: none;
}

/* Responsividade */
@media (max-width: 768px) {
    #pergunta {
        font-size: 14px;
        padding: 10px;
    }

    #pergunta.text-mode {
        height: 150px;
    }

    #pergunta.phrase-mode {
        height: 40px;
    }
}

#containerNumAlternativas {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin: 20px;
}

#labelNumAlternativas {
    font-weight: bold;
    margin-bottom: 10px;
}

.inputNumAlternativas {
    width: 150px;
    padding: 8px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 5px;
    background-color: #f9f9f9;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    color: #333;
}

.alternativaTexto,
#relatorioAlternativas,
#resultadoAlternativas {
    white-space: pre-wrap;
    overflow-wrap: break-word;
    word-break: break-word;
    max-width: 759px;
    padding: 12px;
    font-size: 20px;
    font-family: Arial, sans-serif;
    color: #ffd700;
    background-color: #1a1a1a;
    border: 1px solid #ffd700;
    border-radius: 6px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
    margin: 15px auto;
    text-align: center;
}

.alternativaTexto a,
#relatorioAlternativas a,
#resultadoAlternativas a {
    color: #00bfff;
    text-decoration: none;
}

.alternativaTexto a:hover,
#relatorioAlternativas a:hover,
#resultadoAlternativas a:hover {
    text-decoration: underline;
    color: #1e90ff;
}

#legendaAlternativas {
    margin-top: 10px;
    padding: 10px;
    background-color: #f9f9f9;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    font-size: 14px;
    font-family: Arial, sans-serif;
    color: #333;
    white-space: pre-wrap;
    overflow-wrap: break-word;
}

.legenda-titulo {
    font-weight: bold;
    margin-bottom: 5px;
    font-size: 16px;
}

#resultadoGeral {
    white-space: pre-wrap;
    overflow-wrap: break-word;
    word-break: break-word;
    font-size: 16px;
    font-family: Arial, sans-serif;
    padding: 10px;
    margin-top: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    background-color: #f9f9f9;
    color: #333;
    line-height: 1.5;
}

#idiomax {
    position: fixed;
    top: 10px;
    right: 20px;
    width: auto;
    padding: 8px 16px;
    background-color: rgba(111, 79, 55, 0.8);
    color: #ffffff;
    border: 2px solid #6f4f37;
    border-radius: 5px;
    font-size: 14px;
    cursor: pointer;
    z-index: 1000;
    transition: all 0.3s ease;
}

#idiomax:hover {
    background-color: #5a3b2a;
    transform: scale(1.1);
}

/* Barra Colorida */
@keyframes rapidMixColors {
    0% {
        background: linear-gradient(60deg, #ff6347, #32cd32, #1e90ff, #ff69b4, #ffff00);
    }
    25% {
        background: linear-gradient(60deg, #32cd32, #1e90ff, #ff6347, #ffff00, #ff69b4);
    }
    50% {
        background: linear-gradient(60deg, #1e90ff, #ff6347, #32cd32, #ff69b4, #ffff00);
    }
    75% {
        background: linear-gradient(60deg, #ff6347, #ffff00, #32cd32, #1e90ff, #ff69b4);
    }
    100% {
        background: linear-gradient(60deg, #ffff00, #ff69b4, #ff6347, #32cd32, #1e90ff);
    }
}

/* Entrada de texto na seção de votação */
textarea[id^="alternativa"] {
    width: 100%;
    max-width: 759px;
    height: auto;
    margin: 0 auto 15px;
    padding: 12px;
    font-size: 16px;
    font-family: Arial, sans-serif;
    color: #333;
    background-color: #f9f9f9;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    box-sizing: border-box;
    resize: vertical;
    overflow-wrap: break-word;
    word-break: break-word;
}

@media (max-width: 768px) {
    textarea[id^="alternativa"] {
        height: 40px;
        font-size: 14px;
    }
}

/* Estilo genérico para resultados e opções */
#voto,
.custom-option {
    white-space: pre-wrap;
    overflow-wrap: break-word;
    word-break: break-word;
    height: auto;
    padding: 12px;
    font-size: 16px;
    font-family: Arial, sans-serif;
    border: 1px solid #ccc;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease-in-out;
}

.custom-option {
    margin: 5px 0;
    border-bottom: 1px solid #eee;
    background-color: #fff;
    color: #000;
    cursor: pointer;
}

.custom-option:last-child {
    border-bottom: none;
}

.custom-option:nth-child(odd) {
    background-color: #d9edf7;
    color: #004085;
}

.custom-option:nth-child(even) {
    background-color: #d4edda;
    color: #155724;
}

.custom-option:hover {
    background-color: #ffeeba;
    color: #856404;
    transform: scale(1.02);
}

.custom-option.selected {
    background-color: #007bff;
    color: #fff;
    border-color: #0056b3;
    box-shadow: 0 0 10px rgba(0, 123, 255, 0.5);
}

.custom-select {
    border: 1px solid #ccc;
    border-radius: 8px;
    padding: 12px;
    max-width: 100%;
    max-height: 300px;
    overflow-y: auto;
    font-size: 16px;
    font-family: Arial, sans-serif;
    background-color: #fff;
}

#btnCopiarFormulario {
    display: inline-block;
    background-color: #ffffff;
    color: #000000;
    font-size: 13px;
    font-weight: bold;
    padding: 12px 24px;
    border: 2px solid #000000;
    border-radius: 8px;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

#btnCopiarFormulario:hover {
    background-color: #000000;
    color: #ffffff;
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.2);
    transform: scale(1.05);
}

#btnCopiarFormulario:active {
    transform: scale(0.95);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

#btnCompartilharEspecial {
    display: inline-block;
    font-size: 16px;
    font-weight: bold;
    text-align: center;
    color: #ffffff;
    background-color: #FF7800;
    border: none;
    border-radius: 8px;
    padding: 12px 20px 12px 50px;
    position: relative;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s, background-color 0.3s;
}

#btnCompartilharEspecial:hover {
    background-color: #cc0000;
    transform: scale(1.05);
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.2);
}

#btnCompartilharEspecial::before {
    content: "";
    position: absolute;
    left: 15px;
    top: 50%;
    width: 18px;
    height: 24px;
    transform: translateY(-50%);
    background: #ffffff;
    clip-path: polygon(50% 0, 100% 30%, 70% 30%, 70% 100%, 30% 100%, 30% 30%, 0 30%);
}

.conteudo-ajustada {
    max-width: 100%;
    padding: 2px;
    background-color: #333;
    color: #f2f2f2;
    border-radius: 2px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

button:hover {
    background-color: #d4a300;
    transform: scale(1.02);
}

button:active {
    background-color: #e9e8e4;
    transform: scale(0.98);
}

.centralizado {
    display: block;
    text-align: left;
    width: 100%;
}

#whatsapp-link {
    display: inline-block;
    background-color: #25D366;
    color: white;
    text-decoration: none;
    font-family: Arial, sans-serif;
    font-size: 14px;
    padding: 10px 15px;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

#whatsapp-link:hover {
    background-color: #1DA851;
}

#whatsapp-link img {
    vertical-align: middle;
}

#containerRelatorio {
    position: fixed;
    top: 50%;
    right: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 300px;
    max-height: 90vh;
    overflow-y: auto;
    background-color: #333;
    color: #f2f2f2;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    z-index: 1000;
}

.justificado {
    text-align: justify;
    line-height: 1.5;
    margin: 2px 0;
}

#EnviarCopia {
    display: inline-block;
    font-size: 16px;
    font-weight: bold;
    text-align: center;
    color: #ffffff;
    background-color: #007aff;
    border: none;
    border-radius: 8px;
    padding: 12px 20px 12px 50px;
    position: relative;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s, background-color 0.3s;
}

#EnviarCopia:hover {
    background-color: #005bb5;
    transform: scale(1.05);
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.2);
}

#EnviarCopia::before {
    content: "";
    position: absolute;
    left: 15px;
    top: 50%;
    width: 18px;
    height: 24px;
    transform: translateY(-50%);
    background: #ffffff;
    clip-path: polygon(50% 0, 100% 30%, 70% 30%, 70% 100%, 30% 100%, 30% 30%, 0 30%);
}

.submodo-item {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    margin-bottom: 4px;
    gap: 8px;
}

.submodo-item input[type="checkbox"] {
    margin: 0;
    padding: 0;
    border: 2px solid transparent;
    outline: none;
    cursor: pointer;
    width: 32px;
    height: 28px;
}

.submodo-item input[type="checkbox"]:hover,
.submodo-item input[type="checkbox"]:focus {
    border-color: #f2ca02;
    border-radius: 4px;
}

.submodo-item span {
    font-size: 14px;
    color: #f2f2f2;
    text-align: left;
    line-height: 1.5;
}

#language-selector {
    position: absolute;
    top: 11px;
    right: 11px;
    z-index: 9999;
    font-size: 11px;
    color: #fff;
}

#language {
    background-color: #fff;
    color: #000;
    border: 1px solid #f2ca02;
    font-size: 11px;
    padding: 8px;
    margin: 5px 0;
    border-radius: 5px;
    position: relative;
}

#language:focus {
    background-color: #fff;
    border-color: #f2ca02;
    color: #000;
}

.container {
    max-width: 800px;
    width: 100%;
    background-color: #333;
    padding: 20px;
    border-radius: 10px;
    box-sizing: border-box;
    overflow: hidden;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

h1,
h2,
h3 {
    color: #f2ca02;
    text-align: center;
}

h4 {
    color: #f8f8f5;
    text-align: center;
}

input,
select {
    width: 100%;
    padding: 10px;
    margin: 10px 0;
    font-size: 16px;
    box-sizing: border-box;
    border-radius: 5px;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

th,
td {
    border: 1px solid #f2ca02;
    padding: 10px;
    text-align: center;
}

@media (max-width: 600px) {
    h1,
    h2,
    h3 {
        font-size: 20px;
    }

    button,
    input,
    select {
        font-size: 14px;
    }

    table {
        font-size: 12px;
    }
}

.dynamic-section {
    margin-top: 20px;
    padding: 10px;
    background-color: #444;
    border-radius: 8px;
    overflow: hidden;
}

.center {
    text-align: center;
}

body {
    font-family: Arial, sans-serif;
    background-color: #222;
    color: #f2f2f2;
    margin: 0;
    padding: 0;
    padding-bottom: 100px;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

.hidden {
    display: none;
}

.input-group {
    margin: 20px 0;
    text-align: center;
}

.input-label {
    display: block;
    margin-bottom: 10px;
    font-size: 16px;
}

input[type="number"] {
    border: none;
    border-radius: 5px;
    box-sizing: border-box;
}

.result,
.final-result {
    font-weight: bold;
    color: #ffcc00;
}

.final-result {
    margin-top: 20px;
}

.result-container {
    width: 100%;
    max-width: 759px;
    margin: 0 auto;
    padding: 10px;
    overflow-x: auto;
}

.input-group-result {
    text-align: left;
    margin: 15px 0;
    color: #ffcc00;
    background-color: #444;
    padding: 10px;
    border-radius: 5px;
}

.botao-clicado {
    background-color: #007bff;
    color: #fff;
}

button.voltar-ao-inicio {
    background-color: transparent;
    color: #f2ca02;
    border: 1px solid #f2ca02;
    font-size: 14px;
    padding: 8px;
    margin: 5px 0;
}

button.voltar-ao-inicio:hover {
    background-color: #444;
    color: #fff;
}

.recolher-tela {
    background-color: transparent;
    color: #f2ca02;
    border: 1px solid #f2ca02;
    font-size: 14px;
    padding: 8px;
    margin: 5px 0;
    cursor: pointer;
}

.recolher-tela:hover {
    background-color: #444;
    color: #fff;
}

#textoProcessado {
    text-align: justify;
    background-color: #444;
    color: #f2f2f2;
    padding: 10px;
    border-radius: 5px;
}

#fileUpload {
    display: block;
}

#submodosSection select[multiple] {
    height: auto;
    min-height: 170px;
    max-height: none;
}

@media (max-width: 768px) {
    #submodosSection select[multiple] {
        max-height: 300px;
        overflow-y: auto;
    }
}

button {
    width: 100%;
    padding: 12px;
    margin: 10px 0;
    font-size: 16px;
    background-color: #f2ca02;
    color: #222;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.link-button {
    display: inline-block;
    padding: 10px 20px;
    margin: 5px;
    font-size: 16px;
    color: #fff;
    background-color: #f2ca02;
    border: none;
    border-radius: 5px;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.3s;
}

.link-button:hover {
    background-color: #d4a300;
}

.pix-button {
    display: inline-block;
    padding: 10px 20px;
    font-size: 16px;
    color: #222;
    background-color: hsl(120, 23%, 97%);
    border: none;
    border-radius: 5px;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.3s;
}

.pix-button:hover {
    background-color: #45a049;
}

#decisiva-link {
    color: blue;
    text-decoration: none;
    font-family: Arial, sans-serif;
    font-size: 16px;
    font-weight: bold;
}

#decisiva-link:hover {
    color: #007BFF;
}

.info-div {
    position: fixed;
    bottom: 10px;
    left: 10px;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 10px;
    border-radius: 5px;
    max-width: 300px;
    overflow-wrap: break-word;
}

.file-list {
    margin-top: 10px;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    max-height: 200px;
    overflow-y: auto;
}

.file-list ul {
    padding-left: 20px;
}

.prateado {
    background-color: #c0c0c0;
    color: #333;
    border: 1px solid #a0a0a0;
    padding: 8px 16px;
    font-size: 16px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.prateado:hover {
    background-color: #b0b0b0;
    border-color: #888;
}

.prateado:active {
    background-color: #a0a0a0;
    border-color: #666;
}

.compara-list {
    margin-top: 10px;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    max-height: 200px;
    overflow-y: auto;
    background-color: #f9f9f9;
    color: #333;
    font-family: Arial, sans-serif;
    font-size: 14px;
}

/* === Estilo do Modal do Vídeo Flutuante === */
#modalVideoEvolutivo {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    z-index: 999999;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(4px);
}

/* Oculta as divs de lista e comparação quando estiverem vazias */
#fileList:empty,
#compara:empty {
    display: none !important;
}

/* Oculta títulos e caixas de perguntas na tela inicial quando estiverem totalmente vazios */
#telaInicial h2:empty,
#perguntaTextoX:empty {
    display: none !important;
    margin: 0 !important;
    padding: 0 !important;
}
