/* Estilos para el frontend del Quiz */

.harmony-quiz-wrapper {
    border: 1px solid #e0e0e0;
    padding: 20px;
    border-radius: 5px;
    background-color: #f9f9f9;
    max-width: 700px;
    margin: 20px auto;
    font-family: sans-serif;
}

.hql-timer {
    text-align: right;
    font-size: 1.2em;
    font-weight: bold;
    color: #333;
    margin-bottom: 15px;
    background-color: #fff;
    padding: 10px;
    border-radius: 4px;
    border: 1px solid #ddd;
}

.hql-questions-list {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

.hql-question {
    background-color: #fff;
    border: 1px solid #ddd;
    padding: 15px;
    margin-bottom: 15px;
    border-radius: 4px;
}

.hql-question-title {
    margin-top: 0;
    font-size: 1.2em;
}

.hql-answers-list {
    list-style-type: none;
    padding: 0;
    margin: 10px 0 0 0;
}

.hql-answers-list li {
    padding: 5px 0;
}

.hql-answers-list label {
    cursor: pointer;
    display: block;
    padding: 5px;
    border-radius: 3px;
}

.hql-answers-list label:hover {
    background-color: #f0f0f0;
}

.hql-answers-list input[type="radio"] {
    margin-right: 10px;
}

.hql-fill-in-the-blanks-input {
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 3px;
    margin: 0 5px;
}

.hql-open-ended-input {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 3px;
    margin-top: 10px;
}

.hql-submit-button {
    display: inline-block;
    background-color: #2ea44f;
    color: #fff;
    border: none;
    padding: 10px 20px;
    font-size: 1em;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.hql-submit-button:hover {
    background-color: #2c974b;
}

.hql-submit-button:disabled {
    background-color: #94d3a2;
    cursor: not-allowed;
}

.hql-quiz-results {
    border: 1px solid #ddd;
    background-color: #fff;
    padding: 20px;
    margin-top: 20px;
    border-radius: 5px;
    text-align: left;
}

/* --- Estilos para el Estado de Aprobado/Reprobado --- */
.hql-pass-status {
    text-align: center;
    padding: 15px;
    margin-bottom: 20px;
    font-size: 1.5em;
    font-weight: bold;
    border-radius: 4px;
    color: #fff;
}

.hql-pass-status-passed {
    background-color: #2ea44f;
    border: 1px solid #2c974b;
}

.hql-pass-status-failed {
    background-color: #d9534f;
    border: 1px solid #c9302c;
}

.hql-pass-status-pending {
    background-color: #f0ad4e;
    border: 1px solid #eea236;
}


/* --- Estilos para la Revisión --- */

.hql-review-list {
    list-style-type: none;
    padding: 0;
    margin-top: 20px;
}

.hql-review-question {
    background-color: #f9f9f9;
    border: 1px solid #eee;
    padding: 15px;
    margin-bottom: 15px;
    border-radius: 4px;
}

.hql-review-question h5 {
    margin-top: 0;
    font-size: 1.1em;
    border-bottom: 1px solid #e0e0e0;
    padding-bottom: 10px;
    margin-bottom: 10px;
}

.hql-review-question p {
    margin: 5px 0;
}

.user-answer-correct {
    color: #2ea44f;
    font-weight: bold;
}

.user-answer-incorrect {
    color: #d9534f;
    font-weight: bold;
}

.correct-answer-text {
    color: #555;
    font-style: italic;
}

.answer-feedback {
    font-style: italic;
    color: #333;
    background-color: #f0f0f0;
    padding: 8px;
    border-radius: 3px;
    margin-top: 10px;
    border-left: 3px solid #1e8cbe;
}

.user-answer-open {
    font-weight: bold;
    color: #555;
}

.user-answer-open-text {
    background-color: #fff;
    border: 1px solid #e0e0e0;
    padding: 10px;
    border-radius: 3px;
    white-space: pre-wrap; /* Conservar saltos de línea */
}
