





.associativa-item.feedback-acerto {
    background-color: #d4edda;
}
.associativa-item.feedback-erro {
    background-color: #f8d7da;
}
.associativa-select.feedback-acerto {
    border: 2px solid #28a745;
}
.associativa-select.feedback-erro {
    border: 2px solid #dc3545;
}
.associativa-select {
    padding: 5px;
    border-radius: 4px;
    font-size: 14px;
}
/* ======================================================
   IAC-STYLE.CSS (v9.2 - COMPLETO E CORRIGIDO)
   - Botões C/E flutuantes
   - Tema Escuro completo
   - Texto de alto contraste
   - Modais funcionais
   ====================================================== */
/* Estilo da Barra de Feedback (Gabarito) */
.feedback-bar-container {
    margin-top: 15px;
    border-radius: 8px;
    overflow: hidden;
    font-family: sans-serif;
    font-size: 14px;
    animation: slideDown 0.3s ease-out;
}

.feedback-bar {
    padding: 12px 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
}

.feedback-bar.success {
    background-color: #d4edda;
    color: #155724;
    border-left: 5px solid #28a745;
}

.feedback-bar.error {
    background-color: #f8d7da;
    color: #721c24;
    border-left: 5px solid #dc3545;
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}
/* ==========================================================================
   1. ESTILO BASE E LAYOUT PRINCIPAL (TEMA CLARO - DEFAULT)
   ========================================================================== */
.question-wrapper {
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-top: 5px solid #1D4A91;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    margin-bottom: 40px;
    overflow: hidden;
    color: #333;
}

.question-header {
    padding: 12px 20px;
    background-color: #f7f8fa;
    border-bottom: 1px solid #e0e0e0;
    font-size: 14px;
    color: #555;
    font-weight: bold;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.question-body {
    background-color: #f9fafb;
    padding: 25px;
}

.text-wrapper {
    background-color: #ffffff;
    border: 1px solid #e5e7eb;
    border-left: 4px solid #b0c4de;
    border-radius: 5px;
    margin-bottom: 20px;
}

.text-header { 
    padding: 8px 15px; 
    background-color: #f0f2f5; 
    font-size: 13px; 
    font-weight: bold; 
    color: #666; 
    border-bottom: 1px solid #e5e7eb; 
}

.text-body { 
    padding: 15px; 
    font-family: 'Georgia', serif; 
    line-height: 1.7; 
    color: #333; 
}

.enunciado-wrapper { 
    margin-bottom: 25px; 
    font-size: 1.1em; 
    line-height: 1.6; 
    color: #333;
}

.custom-items { 
    list-style: none; 
    padding-left: 0; 
    margin-bottom: 0;
}

.item-text {
    line-height: 1.6;
    color: #333;
}

.item-text p { 
    margin: 0; 
}

/* ==========================================================================
   2. ESTILOS INTERATIVOS (TEMA CLARO - DEFAULT)
   ========================================================================== */

/* --- Itens de Certo/Errado (CE) --- */
.question-type-ce .interactive-item {
    position: relative; 
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 20px;
    border: 1px dashed #ccc;
    border-radius: 5px;
    margin-bottom: 15px;
    background-color: #fff;
    min-height: 120px;
}

.item-ce-text {
    line-height: 1.7;
    margin-bottom: 15px;
    color: #333;
}

.options-overlay {
    position: absolute;
    top: 4px;
    left: 4px;
    display: flex !important;
    flex-direction: row !important;
    align-items: center;
    gap: 6px;
    border-radius: 9999px;
    padding: 4px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    background: #fff;
    border: 1px solid #e0e0e0;
    z-index: 10;
    transition: opacity 0.2s ease;
    opacity: 0; 
    pointer-events: none;
    flex-wrap: nowrap !important;
}

.interactive-item:hover .options-overlay {
    opacity: 1;
    pointer-events: auto;
}

.options-overlay .option-button {
    height: 28px;
    min-width: 28px;
    padding: 0 8px;
    border-radius: 9999px;
    border: 1px solid #ccc;
    background: #f7f8fa;
    color: #333;
    font-weight: 700;
    font-size: 12px;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.options-overlay .option-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.12);
    border-color: #3A10E5;
}

.options-overlay .option-button.salvar {
    width: 28px;
    height: 28px;
    padding: 0;
    background: url('https://lumuscacd.com.br/wp-content/uploads/2025/10/database_13129901.png') center/cover no-repeat;
    border: none;
    cursor: pointer;
}

.option-button.selected { 
    background-color: #3A10E5; 
    color: #fff; 
    border-color: #3A10E5; 
    transform: scale(1.1);
}
/* --- Itens de Múltipla Escolha (MC) --- */
.question-type-mc .interactive-item {
    position: relative;
    padding: 15px 15px 15px 60px;  /* ✅ AUMENTADO de 50px para 60px */
    border: 1px solid #ddd;
    border-radius: 5px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    background-color: #fff;
    display: flex;
    align-items: center;
    color: #333;
}
.question-type-mc .interactive-item:hover {
    border-color: #3A10E5;
    background-color: #f7f5ff;
}
.mc-selector {
    position: absolute;
    left: 18px;  /* ✅ AUMENTADO de 15px para 18px (afasta mais da borda) */
    top: 50%;
    transform: translateY(-50%);
    width: 22px;
    height: 22px;
    border: 2px solid #ccc;
    background-color: #f0f0f1;
    border-radius: 50%;
    transition: all 0.2s ease-in-out;
    margin-right: 15px;  /* ✅ NOVO: Margem direita para afastar do texto */
}
.question-type-mc .interactive-item:hover .mc-selector {
    border-color: #3A10E5;
}
.question-type-mc .interactive-item.selected .mc-selector {
    background-color: #3A10E5;
    border-color: #3A10E5;
}
.question-type-mc .interactive-item.selected .mc-selector::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: white;
}
.mc-save-button {
    display: block;
    width: 100%;
    padding: 15px;
    margin-top: 20px;
    background-color: #10162F;
    color: #fff;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.2s ease;
}
.mc-save-button:disabled { 
    background-color: #ccc; 
    cursor: not-allowed; 
}
.mc-save-button:hover:not(:disabled) { 
    background-color: #3A10E5;
}

/* ==========================================================================
   3. FEEDBACK (TEMA CLARO - DEFAULT)
   ========================================================================== */
.feedback-acerto { 
    background-color: #e6f7ec !important; 
    border-color: #52c41a !important; 
}

.feedback-erro { 
    background-color: #fff1f0 !important; 
    border-color: #f5222d !important; 
}

.feedback-gabarito { 
    border: 2px solid #52c41a !important; 
}

.overlay-message {
    font-weight: bold;
    padding: 8px 12px;
    border-radius: 4px;
    display: inline-block;
    font-size: 13px;
    margin-top: 4px;
}

.overlay-message.acerto { 
    background-color: #e6f7ec; 
    color: #389e0d; 
}

.overlay-message.erro { 
    background-color: #fff1f0; 
    color: #cf1322; 
}

.overlay-message.em-branco { 
    background-color: #f0f0f0; 
    color: #595959; 
}

.overlay-message.gabarito-label {
    position: absolute;
    bottom: 5px;
    right: 10px;
    font-size: 0.8em;
    color: #198754;
    background-color: #d1e7dd;
    padding: 1px 5px;
    border-radius: 3px;
    font-weight: bold;
}

.overlay-message.answered-generic {
    position: absolute;
    bottom: 5px;
    right: 10px;
    font-size: 0.8em;
    color: #666;
    background-color: #e9ecef;
    padding: 1px 5px;
    border-radius: 3px;
}

body:not(.instant-feedback-active) .interactive-item.answered-no-feedback,
body:not(.instant-feedback-active) .interactive-item.selected.answered-no-feedback {
    border-left: 4px solid #adb5bd;
    background-color: #f8f9fa;
}

/* ==========================================================================
   4. DIVERSOS (Pop-up, Timer, Botão Salvar, etc.) (TEMA CLARO - DEFAULT)
   ========================================================================== */

#help-popup {
    background-color: #ffffff;
    border-top: 5px solid #1D4A91;
    border-radius: 8px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    width: 300px;
    padding: 0;
    position: fixed;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1000;
}

#help-popup h4 {
    font-size: 16px;
    color: #1D4A91;
    margin: 0;
    padding: 15px 20px;
    border-bottom: 1px solid #eef2f7;
}

#help-popup ul {
    list-style: none;
    background-color: #f9fafb;
    margin: 0;
    padding: 20px;
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
}

#help-popup li {
    font-size: 14px;
    color: #4b5563;
    margin-bottom: 12px;
    padding-left: 20px;
    position: relative;
    line-height: 1.5;
}

#help-popup li::before {
    content: '•';
    position: absolute;
    left: 0;
    top: 0;
    color: #1D4A91;
    font-weight: bold;
    font-size: 16px;
}

#help-popup .close-popup {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 30px;
    height: 30px;
    background-color: #f0f2f5;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    color: #888;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

#help-popup .close-popup:hover {
    background-color: #e5e7eb;
    color: #333;
    transform: rotate(90deg);
}

.question-timer-wrapper {
    font-size: 14px;
    color: #333;
    background-color: #eef2f7;
    padding: 5px 10px;
    border-radius: 15px;
}

.question-timer {
    font-weight: bold;
    min-width: 45px;
    display: inline-block;
    text-align: right;
}

.question-actions {
    text-align: right;
    padding-right: 10px;
    margin-top: 10px;
}

.question-actions .save-question-toggle-btn {
    display: inline-block;
    padding: 8px 18px;
    border: none;
    border-radius: 15px;
    color: #ffffff;
    font-size: 13px;
    font-weight: bold;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: 10px;
    outline: none;
}

.question-actions .save-question-toggle-btn:not(.saved) {
    background-color: #3A10E5;
}

.question-actions .save-question-toggle-btn.saved {
    background-color: #e07a5f;
}

.question-actions .save-question-toggle-btn:not(.saved):not(:disabled):hover {
    background-color: #10162F;
    transform: translateY(-1px);
}

.question-actions .save-question-toggle-btn.saved:not(:disabled):hover {
    background-color: #a15038;
    transform: translateY(-1px);
}

.question-actions .save-question-toggle-btn:focus-visible {
    box-shadow: 0 0 0 3px rgba(58, 16, 229, 0.5);
}

.question-actions .save-question-toggle-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.feedback-toggle-wrapper {
    display: flex;
    align-items: center;
    gap: 5px;
    background-color: #f0f0f0;
    padding: 3px 8px;
    border-radius: 15px;
    font-size: 0.9em;
}

.feedback-toggle-wrapper label {
    margin-bottom: 0;
    font-weight: normal;
    color: #333;
}

#instant-feedback-toggle {
    background-color: #ccc;
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: 2px 8px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    font-weight: bold;
    min-width: 45px;
    text-align: center;
}

#instant-feedback-toggle.active {
    background-color: #2a9d8f;
}

/* ==========================================================================
   5. QUESTÕES DISCURSIVAS (TEMA CLARO - DEFAULT)
   ========================================================================== */
.question-wrapper.question-type-discursive .question-body {
    padding-bottom: 20px;
}

.discursive-items {
    margin-top: 15px;
    padding-left: 20px;
}

.discursive-items li {
    font-size: 16px;
    font-weight: 500;
    line-height: 1.5;
    color: #333;
    margin-bottom: 20px;
}

.discursive-item-wrapper {
    margin-top: 10px;
    padding-left: 5px;
}

.discursive-textarea {
    width: 100%;
    max-width: 100%;
    min-width: 100%;
    padding: 12px 15px;
    border: 1px solid #ccd0d4;
    border-radius: 4px;
    font-size: 16px;
    line-height: 1.6;
    margin-top: 15px;
    box-sizing: border-box;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    background-color: #fff;
    color: #333;
}

.discursive-textarea:focus {
    border-color: #3A10E5;
    box-shadow: 0 0 0 1px #3A10E5;
    outline: none;
}

.discursive-textarea:disabled {
    background-color: #f6f7f7;
    color: #555;
}

.discursive-actions-global,
.discursive-actions-item {
    margin-top: 10px;
    text-align: right;
}

.discursive-submit-btn {
    font-size: 14px;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    background-color: #3A10E5;
    color: #ffffff;
    transition: background-color 0.2s ease;
}

.discursive-submit-btn:hover:not(:disabled) {
    background-color: #10162F;
}

.discursive-submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.discursive-submit-btn.sent {
    background-color: #2a9d8f;
    opacity: 1;
}

/* ==========================================================================
   6. PÁGINA "MINHAS RESPOSTAS" (TEMA CLARO - DEFAULT)
   ========================================================================== */
.iac-minhas-respostas h2 {
    font-size: 24px;
    color: #222;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.resposta-item-bloco {
    background: #ffffff;
    border: 1px solid #e5e5e5;
    border-radius: 6px;
    margin-bottom: 25px;
    box-shadow: 0 1px 1px rgba(0, 0, 0, 0.04);
    overflow: hidden;
}

.resposta-item-individual {
    padding: 20px;
}

.resposta-pergunta-titulo {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin: 0 0 10px 0;
    line-height: 1.4;
}

.resposta-pergunta-titulo p {
    margin: 0;
}

.resposta-link-questao {
    display: block;
    font-size: 13px;
    font-weight: 500;
    background: #f9f9f9;
    padding: 12px 20px;
    margin: 0;
    border-bottom: 1px solid #eee;
    word-break: break-all;
    overflow-wrap: break-word;
    line-height: 1.5;
}

.resposta-link-questao a {
    text-decoration: none;
    color: #3A10E5;
}

.resposta-link-questao a:hover {
    text-decoration: underline;
}

.resposta-data {
    font-size: 12px;
    color: #777;
    display: block;
    margin-bottom: 15px;
}

.resposta-label {
    font-size: 14px;
    font-weight: 600;
    color: #222;
    display: block;
    margin-bottom: 8px;
}

.resposta-texto {
    font-size: 15px;
    line-height: 1.7;
    color: #333;
    background: #fdfdfd;
    border: 1px solid #eee;
    padding: 15px;
    border-radius: 4px;
    border-left: 3px solid #3A10E5;
    white-space: pre-wrap;
    overflow-wrap: break-word;
}

.resposta-texto p {
    margin-top: 0;
    margin-bottom: 1em;
}

.resposta-texto p:last-child {
    margin-bottom: 0;
}

/* ##########################################################################
   ##########################################################################
   
   TEMA ESCURO (DARK MODE) - BLOCO COMPLETO E CORRIGIDO

   ##########################################################################
   ########################################################################## */

/* === 1. Layout Principal (Caixas) === */
body.theme-dark .question-wrapper {
    background-color: #1b263b;
    border-color: #415a77;
    border-top-color: #3A10E5;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    color: #e0e6ed; 
}

body.theme-dark .question-header {
    background-color: rgba(13, 27, 42, 0.5);
    border-bottom-color: #415a77;
    color: #9bbcff;
}

body.theme-dark .question-body {
    background-color: transparent;
}

/* === 2. Conteúdo Interno (Textos de Apoio, etc.) === */
body.theme-dark .text-wrapper {
    background-color: #0d1b2a;
    border-color: #415a77;
    border-left-color: #7fb3ff;
}

body.theme-dark .text-header { 
    background-color: #1b263b; 
    color: #9bbcff; 
    border-bottom-color: #415a77; 
}

body.theme-dark .text-body,
body.theme-dark .enunciado-wrapper,
body.theme-dark .item-ce-text,
body.theme-dark .item-text,
body.theme-dark .question-type-mc .interactive-item,
body.theme-dark .discursive-items li {
    color: #f1f5f9; 
}

/* === 3. Itens Certo/Errado (CE) === */
body.theme-dark .question-type-ce .interactive-item {
    border-color: rgba(65, 90, 119, 0.7);
    background-color: #10162F;
}

body.theme-dark .question-type-ce .interactive-item:hover {
    border-color: #7fb3ff;
    background-color: #1b263b;
}

body.theme-dark .options-overlay {
    background: #1b263b;
    border-color: #415a77;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

body.theme-dark .options-overlay .option-button {
    background: #0d1b2a;
    border-color: #415a77;
    color: #e0e6ed;
}

body.theme-dark .options-overlay .option-button:hover {
    border-color: #7fb3ff;
    color: #fff;
}

body.theme-dark .option-button.selected {
    background-color: #3A10E5; 
    border-color: #3A10E5; 
    color: #fff;
}

body.theme-dark .options-overlay .option-button.salvar {
    background-color: transparent;
    filter: invert(1) brightness(0.9);
}

body.theme-dark .options-overlay .option-button.salvar:hover {
    filter: invert(1) brightness(1.1);
}

/* === 4. Itens Múltipla Escolha (MC) === */
body.theme-dark .question-type-mc .interactive-item {
    border-color: #415a77;
    background-color: #10162F;
}

body.theme-dark .question-type-mc .interactive-item:hover {
    border-color: #3A10E5;
    background-color: #1b263b;
}

body.theme-dark .mc-selector {
    border-color: #778da9;
    background-color: #415a77;
}

body.theme-dark .question-type-mc .interactive-item:hover .mc-selector {
    border-color: #7fb3ff;
}

body.theme-dark .question-type-mc .interactive-item.selected .mc-selector {
    background-color: #3A10E5;
    border-color: #3A10E5;
}

body.theme-dark .mc-save-button {
    background-color: #3A10E5;
}

body.theme-dark .mc-save-button:disabled { 
    background-color: #415a77; 
    color: #778da9;
}

body.theme-dark .mc-save-button:hover:not(:disabled) {
    background-color: #10162F; 
}

/* === 5. Feedback (Acerto/Erro) === */
body.theme-dark .feedback-acerto { 
    background-color: rgba(42, 157, 143, 0.1) !important; 
    border-color: #2a9d8f !important;
}

body.theme-dark .feedback-erro {
    background-color: rgba(224, 122, 95, 0.1) !important; 
    border-color: #e07a5f !important;
}

body.theme-dark .feedback-gabarito { 
    border: 2px solid #2a9d8f !important; 
}

body.theme-dark .overlay-message.acerto { 
    background-color: rgba(42, 157, 143, 0.1);
    color: #2a9d8f; 
}

body.theme-dark .overlay-message.erro { 
    background-color: rgba(224, 122, 95, 0.1); 
    color: #e07a5f;
}

body.theme-dark .overlay-message.em-branco {
    background-color: rgba(65, 90, 119, 0.2); 
    color: #778da9;
}

body.theme-dark .overlay-message.gabarito-label {
    color: #2a9d8f;
    background-color: rgba(42, 157, 143, 0.1);
}

body.theme-dark .overlay-message.answered-generic {
    color: #778da9;
    background-color: rgba(65, 90, 119, 0.2);
}

body.theme-dark:not(.instant-feedback-active) .interactive-item.answered-no-feedback,
body.theme-dark:not(.instant-feedback-active) .interactive-item.selected.answered-no-feedback {
    border-left-color: #415a77;
    background-color: rgba(13, 27, 42, 0.5);
}

/* === 6. Diversos (Pop-up, Timer, etc.) === */
body.theme-dark #help-popup {
    background-color: #1b263b;
    border-top-color: #3A10E5;
    border: 1px solid #415a77;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

body.theme-dark #help-popup h4 {
    color: #7fb3ff;
    border-bottom-color: #415a77;
}

body.theme-dark #help-popup ul {
    background-color: #0d1b2a;
}

body.theme-dark #help-popup li {
    color: #e0e6ed;
}

body.theme-dark #help-popup li::before {
    color: #7fb3ff;
}

body.theme-dark #help-popup .close-popup {
    background-color: #415a77;
    color: #e0e6ed;
}

body.theme-dark #help-popup .close-popup:hover {
    background-color: #7fb3ff;
    color: #0d1b2a;
}

body.theme-dark .question-timer-wrapper {
    color: #9bbcff;
    background-color: rgba(13, 27, 42, 0.8);
    border: 1px solid #415a77;
}

body.theme-dark .feedback-toggle-wrapper {
    background-color: #0d1b2a;
    border: 1px solid #415a77;
    color: #e0e6ed;
}

body.theme-dark .feedback-toggle-wrapper label {
    color: #e0e6ed;
}

body.theme-dark #instant-feedback-toggle {
    background-color: #415a77;
    color: #e0e6ed;
}

body.theme-dark #instant-feedback-toggle.active {
    background-color: #2a9d8f;
    color: #fff;
}

/* === 7. Discursivas === */
body.theme-dark .discursive-textarea {
    background-color: #0d1b2a;
    border-color: #415a77;
    color: #e0e6ed;
}

body.theme-dark .discursive-textarea:focus {
    border-color: #3A10E5;
    box-shadow: 0 0 0 3px rgba(58, 16, 229, 0.2);
}

body.theme-dark .discursive-textarea:disabled {
    background-color: #1b263b;
    color: #778da9;
    opacity: 0.7;
}

body.theme-dark .discursive-submit-btn {
    background-color: #3A10E5;
}

body.theme-dark .discursive-submit-btn:hover:not(:disabled) {
    background-color: #10162F;
}

body.theme-dark .discursive-submit-btn.sent {
    background-color: #2a9d8f;
}

/* === 8. Página "Minhas Respostas" === */
body.theme-dark .iac-minhas-respostas h2 {
    color: #e0e6ed;
    border-bottom-color: #415a77;
}

body.theme-dark .resposta-item-bloco {
    background: #1b263b;
    border-color: #415a77;
    box-shadow: 0 1px 1px rgba(0, 0, 0, 0.2);
}

body.theme-dark .resposta-pergunta-titulo {
    color: #e0e6ed;
}

body.theme-dark .resposta-link-questao {
    background: #0d1b2a;
    border-bottom-color: #415a77;
}

body.theme-dark .resposta-link-questao a {
    color: #7fb3ff;
}

body.theme-dark .resposta-data {
    color: #778da9;
}

body.theme-dark .resposta-label {
    color: #9bbcff;
}

body.theme-dark .resposta-texto {
    color: #e0e6ed;
    background: #10162F;
    border-color: #415a77;
    border-left-color: #7fb3ff;
}

/* === 9. Botão de Tema === */
#theme-toggle-btn {
    background-color: #f0f0f0;
    border: 1px solid #ccc;
    border-radius: 20px;
    cursor: pointer;
    padding: 5px 10px;
    font-size: 18px;
    line-height: 1;
}

body.theme-dark #theme-toggle-btn {
    background-color: #0d1b2a;
    border-color: #415a77;
    color: #e0e6ed;
}

body.theme-dark #theme-toggle-btn .icon-light {
    display: none;
}

body:not(.theme-dark) #theme-toggle-btn .icon-dark {
    display: none;
}

/* ======================================================
   PATCH v9.2: Modal e Discursivas (COMPLETO E LIMPO)
   ====================================================== */

/* --- 1. Caixa de Resposta (Textarea) --- */
.discursive-answer-wrapper {
    margin-top: 15px;
    border-top: 1px dashed #ddd;
    padding-top: 15px;
}

.interactive-item .discursive-answer-wrapper {
    margin-top: 10px;
    border-top: 1px dashed #eee;
    padding-top: 10px;
}

/* --- 2. Botões (Salvar Resposta e Ações do Modal) --- */
.discursive-answer-wrapper .save-discursive-answer-btn,
.discursive-actions-wrapper .button,
.discursive-actions-wrapper .button-secondary {
    font-size: 14px;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    background-color: #3A10E5;
    color: #ffffff;
    transition: background-color 0.2s ease;
    text-decoration: none;
    display: inline-block;
}

.discursive-answer-wrapper .save-discursive-answer-btn:hover,
.discursive-actions-wrapper .button:hover,
.discursive-actions-wrapper .button-secondary:hover {
    background-color: #10162F;
    color: #ffffff;
}

.discursive-actions-wrapper {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px dashed #ddd;
    display: flex;
    gap: 10px;
}

.discursive-answer-wrapper .save-discursive-feedback {
    margin-left: 10px;
    font-size: 13px;
    font-style: italic;
    color: #555;
}

/* --- 3. Modal (Pop-up) --- */
.iac-modal {
    display: none !important;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.6);
    padding-top: 60px;
}

.iac-modal.is-visible {
    display: block !important;
}

.iac-modal-content {
    background-color: #fefefe;
    margin: 2% auto;
    padding: 25px 30px;
    border: 1px solid #888;
    width: 80%;
    max-width: 700px;
    border-radius: 5px;
    position: relative;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    color: #333;
}

.iac-modal-close {
    color: #aaa;
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.2s ease;
}

.iac-modal-close:hover,
.iac-modal-close:focus {
    color: #000;
}

.iac-modal-content h3 {
    margin-top: 0;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
    color: #333;
}

.iac-modal-content ul {
    padding-left: 20px;
    list-style-type: disc;
}

.iac-modal-content li {
    margin-bottom: 15px;
    color: #333;
}

.iac-modal-content li p {
    margin: 5px 0 0 0;
    display: inline;
}

/* ===== TEMA ESCURO - Modal ===== */

body.theme-dark .discursive-answer-wrapper,
body.theme-dark .discursive-actions-wrapper {
    border-top-color: #415a77;
}

body.theme-dark .discursive-answer-wrapper .save-discursive-feedback {
    color: #7fb3ff;
}

body.theme-dark .iac-modal-content {
    background-color: #1b263b;
    border-color: #415a77;
    color: #e0e6ed;
}

body.theme-dark .iac-modal-close {
    color: #aaa;
}

body.theme-dark .iac-modal-close:hover {
    color: #fff;
}

body.theme-dark .iac-modal-content h3 {
    color: #e0e6ed;
    border-bottom-color: #415a77;
}

body.theme-dark .iac-modal-content li {
    color: #e0e6ed;
}







/* =================================
   NOVOS ESTILOS v10.0: Múltiplos Exemplos e Padrão de Resposta
   ================================= */

/* Estiliza o novo botão "Padrão de Resposta" */
.discursive-actions-wrapper .view-standard-answer-btn {
    background: #f0f0f0;
    border-color: #ccc;
    color: #555;
}
.discursive-actions-wrapper .view-standard-answer-btn:hover {
    background: #e0e0e0;
    border-color: #999;
    color: #333;
}

/* Estiliza os exemplos múltiplos dentro do modal */
.iac-modal-content h4 {
    font-size: 1.1em;
    color: #1D4A91;
    margin-top: 20px;
    margin-bottom: 5px;
}
.iac-modal-content h4:first-of-type {
    margin-top: 0;
}

.iac-modal-content hr {
    margin: 25px 0;
    border: 0;
    border-top: 1px dashed #ccc;
}

/* TEMA ESCURO para os novos elementos */
body.theme-dark .discursive-actions-wrapper .view-standard-answer-btn {
    background: #415a77;
    border-color: #778da9;
    color: #e0e6ed;
}
body.theme-dark .discursive-actions-wrapper .view-standard-answer-btn:hover {
    background: #778da9;
    color: #fff;
}
body.theme-dark .iac-modal-content h4 {
    color: #7fb3ff;
}
body.theme-dark .iac-modal-content hr {
    border-top-color: #415a77;
}











/* Animação de entrada do feedback */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Feedback detalhado */
.feedback-bar-container {
    margin-top: 12px;
    animation: fadeIn 0.3s ease-out;
}

.feedback-bar {
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.feedback-bar.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.feedback-bar.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Mensagem de login sobreposta */
.overlay-message {
    z-index: 1000 !important;
}




























/* ================================================================
   PATCH v10.1 - EXPANSÃO DE CONTAINERS E RESPONSIVIDADE MELHORADA
   Para adicionar ao FINAL do iac-style.css
   ================================================================ */

/* === 1. REMOVER LIMITES DE LARGURA E EXPANDIR CONTAINERS === */

/* Container geral - remover máximos e garantir 100% */
#csh-root,
.lumus-container-limitado,
.question-wrapper,
.question-body {
    width: 100%;
    box-sizing: border-box;
}

/* Remover padding excessivo em mobile */
.question-wrapper {
    margin-left: 0 !important;
    margin-right: 0 !important;
    border-radius: 8px;
}

.question-body {
    padding: 25px;
    box-sizing: border-box;
}

/* === 2. TEXTO DE APOIO (TEXT-WRAPPER) === */
.text-wrapper {
    width: 100%;
    box-sizing: border-box;
}

.text-body {
    font-size: 1rem;
    line-height: 1.7;
    word-break: break-word;
    overflow-wrap: break-word;
}

/* === 3. ASSOCIATIVA - FLEXIBILIDADE === */
.associativa-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 100%;
}

.associativa-item {
    width: 100%;
    box-sizing: border-box;
}

.associativa-select {
    width: 100%;
    box-sizing: border-box;
    min-height: 40px;
    padding: 8px 12px;
}

/* === 4. QUESTÕES DISCURSIVAS === */
.discursive-textarea {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 100% !important;
    box-sizing: border-box;
    min-height: 150px;
    padding: 12px 15px;
    font-size: 1rem;
    line-height: 1.6;
}

.discursive-items {
    width: 100%;
    padding-left: 20px;
}

/* === 5. MÚLTIPLA ESCOLHA === */
.question-type-mc .interactive-item {
    width: 100%;
    box-sizing: border-box;
    padding: 15px 15px 15px 60px;
    min-height: 50px;
    display: flex;
    align-items: center;
}

.mc-selector {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    flex-shrink: 0;
}

.mc-save-button {
    width: 100%;
    box-sizing: border-box;
    min-height: 44px;
    padding: 15px;
    font-size: 1rem;
}

/* === 6. CERTO/ERRADO === */
.question-type-ce .interactive-item {
    width: 100%;
    box-sizing: border-box;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 120px;
}

.item-ce-text {
    word-break: break-word;
    overflow-wrap: break-word;
    margin-bottom: 15px;
}

/* === 7. RESPONSIVIDADE - TABLET (768px - 1024px) === */
@media (max-width: 1024px) {
    .question-body {
        padding: 20px;
    }

    .text-body {
        font-size: 0.95rem;
        padding: 12px;
    }

    .question-type-mc .interactive-item {
        padding: 12px 12px 12px 50px;
        font-size: 0.95rem;
    }

    .question-type-ce .interactive-item {
        padding: 16px;
        min-height: 100px;
    }

    .item-ce-text {
        font-size: 0.95rem;
    }

    .discursive-textarea {
        font-size: 0.95rem;
        min-height: 130px;
    }

    .mc-selector {
        width: 20px;
        height: 20px;
        left: 15px;
    }
}

/* === 8. RESPONSIVIDADE - CELULAR (480px - 767px) === */
@media (max-width: 768px) {
    .question-wrapper {
        margin-bottom: 25px;
        border-radius: 10px;
    }

    .question-header {
        padding: 10px 15px;
        font-size: 13px;
        flex-wrap: wrap;
        gap: 8px;
    }

    .question-body {
        padding: 16px;
    }

    .text-wrapper {
        margin-bottom: 15px;
    }

    .text-header {
        padding: 6px 12px;
        font-size: 12px;
    }

    .text-body {
        padding: 12px;
        font-size: 0.9rem;
        line-height: 1.6;
    }

    .enunciado-wrapper {
        font-size: 1rem;
        margin-bottom: 15px;
    }

    /* Múltipla Escolha em mobile */
    .question-type-mc .interactive-item {
        padding: 12px 12px 12px 48px;
        min-height: 45px;
        font-size: 0.9rem;
        border-radius: 6px;
    }

    .mc-selector {
        width: 18px;
        height: 18px;
        left: 12px;
    }

    .mc-save-button {
        padding: 12px;
        font-size: 0.9rem;
        min-height: 40px;
    }

    /* Certo/Errado em mobile */
    .question-type-ce .interactive-item {
        padding: 14px;
        min-height: 90px;
    }

    .item-ce-text {
        font-size: 0.9rem;
        margin-bottom: 12px;
        line-height: 1.5;
    }

    /* Overlay de botões C/E */
    .options-overlay {
        top: 2px;
        left: 2px;
        padding: 3px;
        gap: 4px;
    }

    .options-overlay .option-button {
        height: 24px;
        min-width: 24px;
        padding: 0 6px;
        font-size: 11px;
    }

    /* Discursivas em mobile */
    .discursive-textarea {
        font-size: 0.9rem;
        padding: 10px 12px;
        min-height: 120px;
        border-radius: 6px;
    }

    .discursive-items {
        padding-left: 16px;
        margin-top: 12px;
    }

    .discursive-items li {
        font-size: 0.95rem;
        margin-bottom: 16px;
    }

    /* Associativa em mobile */
    .associativa-container {
        gap: 12px;
    }

    .associativa-item {
        padding: 12px;
        font-size: 0.9rem;
    }

    .associativa-select {
        font-size: 0.9rem;
        min-height: 36px;
        padding: 6px 10px;
    }

    /* Help popup em mobile */
    #help-popup {
        width: 90%;
        right: 5%;
        left: auto;
        max-width: calc(100vw - 10%);
    }

    #help-popup h4 {
        font-size: 14px;
        padding: 12px 16px;
    }

    #help-popup ul {
        padding: 16px;
    }

    #help-popup li {
        font-size: 13px;
        margin-bottom: 10px;
    }

    /* Modal em mobile */
    .iac-modal-content {
        width: 90%;
        padding: 18px 20px;
        max-width: 100%;
    }

    .iac-modal-content h3 {
        font-size: 1.1rem;
    }

    .iac-modal-content h4 {
        font-size: 0.95rem;
    }

    /* Botões em mobile */
    .question-actions .save-question-toggle-btn {
        padding: 6px 14px;
        font-size: 12px;
    }

    .discursive-submit-btn,
    .save-discursive-answer-btn {
        padding: 8px 14px;
        font-size: 13px;
        width: 100%;
        box-sizing: border-box;
    }
}

/* === 9. RESPONSIVIDADE - CELULAR PEQUENO (< 480px) === */
@media (max-width: 480px) {
    .question-wrapper {
        border-radius: 8px;
        margin-bottom: 20px;
    }

    .question-header {
        padding: 8px 12px;
        font-size: 12px;
    }

    .question-body {
        padding: 12px;
    }

    .text-header {
        padding: 5px 10px;
        font-size: 11px;
    }

    .text-body {
        padding: 10px;
        font-size: 0.85rem;
        line-height: 1.5;
    }

    .enunciado-wrapper {
        font-size: 0.9rem;
        margin-bottom: 12px;
    }

    /* MC - bem compacto */
    .question-type-mc .interactive-item {
        padding: 10px 10px 10px 42px;
        min-height: 42px;
        font-size: 0.85rem;
        gap: 8px;
    }

    .mc-selector {
        width: 16px;
        height: 16px;
        left: 10px;
    }

    .mc-save-button {
        padding: 10px;
        font-size: 0.85rem;
    }

    /* CE - bem compacto */
    .question-type-ce .interactive-item {
        padding: 12px;
        min-height: 80px;
    }

    .item-ce-text {
        font-size: 0.85rem;
        margin-bottom: 10px;
    }

    .options-overlay {
        top: 2px;
        left: 2px;
        padding: 2px;
        gap: 3px;
    }

    .options-overlay .option-button {
        height: 22px;
        min-width: 22px;
        padding: 0 5px;
        font-size: 10px;
    }

    /* Discursivas - bem compacto */
    .discursive-textarea {
        font-size: 0.85rem;
        padding: 9px 10px;
        min-height: 100px;
    }

    .discursive-items li {
        font-size: 0.9rem;
        margin-bottom: 14px;
    }

    /* Associativa */
    .associativa-item {
        padding: 10px;
        font-size: 0.85rem;
    }

    .associativa-select {
        font-size: 0.85rem;
        min-height: 34px;
        padding: 5px 8px;
    }

    /* Help popup */
    #help-popup {
        width: 95%;
        right: 2.5%;
        padding: 0;
    }

    #help-popup h4 {
        font-size: 13px;
        padding: 10px 12px;
    }

    #help-popup ul {
        padding: 12px;
    }

    #help-popup li {
        font-size: 12px;
        margin-bottom: 8px;
    }

    /* Modal */
    .iac-modal-content {
        width: 95%;
        padding: 16px 18px;
    }

    .iac-modal-content h3 {
        font-size: 1rem;
    }

    .iac-modal-content h4 {
        font-size: 0.9rem;
    }

    /* Botões */
    .question-actions .save-question-toggle-btn {
        padding: 5px 12px;
        font-size: 11px;
    }

    .discursive-submit-btn,
    .save-discursive-answer-btn {
        padding: 7px 12px;
        font-size: 12px;
    }

    /* Timer e header */
    .question-timer-wrapper {
        font-size: 12px;
        padding: 4px 8px;
    }

    .question-timer {
        min-width: 40px;
    }
}

/* === 10. TEMA ESCURO - Manter consistência === */
body.theme-dark .question-body,
body.theme-dark .text-body,
body.theme-dark .item-ce-text {
    word-break: break-word;
    overflow-wrap: break-word;
}

body.theme-dark .discursive-textarea {
    word-break: break-word;
    overflow-wrap: break-word;
}

/* === 11. GARANTIR BOX-SIZING GLOBAL === */
* {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    overflow-x: hidden;
}

/* === 12. FIXES EXTRAS === */
.question-type-associativa .interactive-item,
.question-type-associativa .associativa-item {
    width: 100%;
}

/* Prevenir overflow em textos muito longos */
.text-body,
.enunciado-wrapper,
.item-ce-text,
.item-text {
    max-width: 100%;
}

/* Textarea nunca maior que 100% */
textarea {
    max-width: 100%;
}

/* Select nunca maior que 100% */
select {
    max-width: 100%;
}