body {
    font-family: Arial, sans-serif;
    background: #f4f6f9;
    margin: 0;
    padding: 0;
    color: #222;
}

.container {
    width: 90%;
    max-width: 1000px;
    margin: 30px auto;
    background: #fff;
    padding: 25px;
    border-radius: 14px;
    box-shadow: 0 4px 14px rgba(0,0,0,0.08);
}

label {
    display: block;
    margin-top: 15px;
    margin-bottom: 6px;
    font-weight: bold;
}

input[type="text"],
input[type="number"],
select,
textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 10px;
    box-sizing: border-box;
}

textarea {
    resize: vertical;
}

button, .btn {
    display: inline-block;
    margin-top: 18px;
    padding: 10px 16px;
    border: none;
    border-radius: 10px;
    background: #1d4ed8;
    color: #fff;
    text-decoration: none;
    cursor: pointer;
}

.card {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    padding: 16px;
    margin-top: 15px;
    border-radius: 12px;
}

.filtros {
    display: grid;
    gap: 12px;
    margin: 20px 0;
}

.alert {
    padding: 14px 16px;
    border-radius: 10px;
    margin-bottom: 20px;
    font-weight: bold;
}

.alert.erro {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.alert.sucesso {
    background: #dcfce7;
    color: #166534;
    border: 1px solid #bbf7d0;
}

.estudo {
    max-width: 950px;
}

.topo-questao {
    margin-bottom: 25px;
}

.meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}

.meta span {
    background: #eef2ff;
    padding: 8px 12px;
    border-radius: 999px;
    font-size: 14px;
}

.bloco-enunciado,
.bloco-explicacao {
    margin-top: 25px;
}

.form-resposta {
    margin-top: 25px;
}

.alternativa {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 14px;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    margin-bottom: 12px;
    cursor: pointer;
    background: #fff;
    transition: 0.2s;
}

.alternativa:hover {
    background: #f9fafb;
}

.alternativa input[type="radio"] {
    margin-top: 4px;
    width: auto;
}

.alternativa.correta {
    background: #dcfce7;
    border-color: #22c55e;
}

.alternativa.errada {
    background: #fee2e2;
    border-color: #ef4444;
}

.resultado {
    margin-top: 30px;
    padding: 18px;
    border-radius: 14px;
    font-weight: bold;
}

.resultado.acerto {
    background: #dcfce7;
    color: #166534;
    border: 1px solid #86efac;
}

.resultado.erro {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fca5a5;
}

.texto-longo {
    background: #f9fafb;
    padding: 16px;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    line-height: 1.6;
    white-space: pre-wrap;
}

.meta-info {
    background: #f9fafb;
    padding: 14px;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
}

.acoes-pos-resposta,
.rodape-acoes {
    margin-top: 20px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}