:root {
    --bg-app: #f8fafc;
    --card-bg: #ffffff;
    --text-main: #334155;
    --accent: #6366f1;
    --success-bg: #dcfce7;
    --success-text: #166534;
    --error-bg: #fee2e2;
    --error-text: #991b1b;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body { 
    font-family: 'Inter', sans-serif; 
    font-size: 14px; 
    line-height: 1.5; 
    background: var(--bg-app); 
    color: var(--text-main); 
}

/* --- PADRONIZAÇÃO DE CONTEÚDO --- */
.enunciado-container, .comentario-box { font-size: 14px; margin-bottom: 15px; }
.enunciado-container p, .comentario-box p { margin-bottom: 10px; }
.enunciado-container strong, .comentario-box strong { font-weight: 700; font-size: 1em; }
.enunciado-container small, .fonte { font-size: 0.85em; color: #64748b; font-style: italic; }
.texto-apoio { background: #f8fafc; padding: 15px; border-left: 4px solid var(--accent); margin: 15px 0; }

/* --- ESTRUTURA --- */
.navbar { position: sticky; top: 0; background: #ffffff; border-bottom: 1px solid #e2e8f0; padding: 15px 0; z-index: 1000; }
.nav-container { max-width: 450px; margin: 0 auto; display: flex; align-items: center; padding: 0 20px; }
.logo { font-size: 1.4rem; font-weight: 800; color: var(--accent); text-decoration: none; }
.container { width: 100%; max-width: 450px; margin: 20px auto; padding: 0 20px; }
.card { background: var(--card-bg); padding: 20px; border-radius: 16px; box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1); margin-bottom: 25px; }
.meta { font-size: 0.75rem; color: #94a3b8; text-transform: uppercase; margin-bottom: 10px; font-weight: 700; }

/* Alternativas */
.alternativa { font-size: 0.95em; padding: 14px; background: #f1f5f9; margin: 8px 0; border-radius: 10px; cursor: pointer; position: relative; transition: all 0.2s; }
.alternativa.ativa { background: #e0e7ff; }
.alternativa.correta { background: var(--success-bg) !important; color: var(--success-text); }
.alternativa.errada { background: var(--error-bg) !important; color: var(--error-text); }

/* Botões */
.btn-action { 
    width: 100%; padding: 14px; background: var(--accent); color: white; border: none; border-radius: 10px; font-weight: 700; cursor: pointer; margin-top: 10px; 
    position: relative; overflow: hidden;
}
.btn-action .progress {
    position: absolute; top: 0; left: 0; height: 100%; width: 0%;
    background: rgba(0,0,0,0.2); z-index: 0; pointer-events: none; transition: width 0.1s linear;
}
/* Garante que o texto fique por cima da barra */
.btn-action span { position: relative; z-index: 2; }

.btn-coment { display: none; width: 100%; padding: 12px; background: #f1f5f9; color: #475569; border: none; border-radius: 10px; font-weight: 600; cursor: pointer; margin-top: 10px; }
.btn-coment-destaque { background-color: #f97316 !important; color: white !important; }
.btn-coment-destaque:hover { background-color: #ea580c !important; }

.comentario-box { max-height: 0; opacity: 0; overflow: hidden; padding: 0 20px; margin-top: 0; background: #f1f5f9; border-radius: 10px; border-left: 4px solid var(--accent); transition: all 0.4s ease-in-out; }
.comentario-box.aberto { max-height: 1000px; opacity: 1; padding: 20px; margin-top: 15px; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }