/* Estilos generales del cuestionario */
.dracko-quiz-container {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    box-sizing: border-box;
}

.dracko-quiz-header {
    text-align: center;
    margin-bottom: 30px;
}

.dracko-quiz-header img {
    max-width: 100%;
    height: auto;
    margin-bottom: 20px;
}

.dracko-quiz-description {
    color: #666;
    margin-bottom: 20px;
    text-align: center;
}

/* Estilos de las preguntas */
.dracko-quiz-question {
    margin-bottom: 30px;
    width: 100%;
}

/* Estilos para la imagen de la pregunta */
.dracko-quiz-question-image {
    text-align: center;
    margin: 0 auto 20px;
    width: 516px;
    height: 290px;
    padding: 0;
    box-sizing: border-box;
    overflow: hidden;
    position: relative;
    background-color: #f8f9fa;
    border-radius: 8px;
}

.dracko-quiz-question-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    position: absolute;
    top: 0;
    left: 0;
    display: block;
    margin: 0 auto;
}

.dracko-quiz-question-text {
    font-size: 1.2em;
    margin-bottom: 15px;
    color: #333;
    padding: 0 15px;
}

.dracko-quiz-answers {
    list-style: none;
    padding: 0 15px;
    margin: 0;
    width: 100%;
    box-sizing: border-box;
}

.dracko-quiz-answer {
    padding: 10px;
    margin: 5px 0;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s;
    display: flex;
    align-items: center;
    user-select: none;
}

.dracko-quiz-answer:hover {
    background: #e9ecef;
}

.dracko-quiz-answer input[type="radio"],
.dracko-quiz-answer input[type="checkbox"] {
    margin-right: 10px;
}

.dracko-quiz-answer label {
    flex: 1;
    cursor: pointer;
    margin: 0;
    padding: 5px 0;
    user-select: none;
}

.dracko-quiz-answer.selected {
    background: #cce5ff;
    border-color: #b8daff;
}

/* Estilos de los botones */
.dracko-quiz-buttons {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
    padding: 0 15px;
    gap: 10px;
    flex-wrap: nowrap;
}

.dracko-quiz-button {
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    background: #6c63ff;
    color: white;
    cursor: pointer;
    transition: background-color 0.2s;
    width: auto;
    min-width: 120px;
}

.dracko-quiz-button:hover {
    background: #5a52d5;
}

.dracko-quiz-button:disabled {
    background: #ccc;
    cursor: not-allowed;
}

/* Estilos del progreso */
.dracko-quiz-progress {
    text-align: right;
    color: #666;
    margin-bottom: 10px;
    padding: 0 15px;
}

/* Estilos del resultado */
.dracko-quiz-result {
    text-align: center;
    padding: 0 15px;
}

.dracko-quiz-score {
    font-size: 1.5em;
    margin: 20px 0;
    color: #333;
}

.dracko-quiz-score-message {
    margin: 20px 0;
    color: #666;
    font-size: 1.1em;
    line-height: 1.5;
}

.dracko-quiz-progress-bar {
    width: 100%;
    height: 20px;
    background: #e9ecef;
    border-radius: 10px;
    margin: 20px 0;
    overflow: hidden;
}

.dracko-quiz-progress-bar-fill {
    height: 100%;
    background: #6c63ff;
    transition: width 0.5s ease-in-out;
}

/* Estilos del resumen de preguntas */
.dracko-quiz-summary {
    margin-top: 30px;
    text-align: left;
    width: 100%;
}

.dracko-quiz-summary-question {
    margin-bottom: 20px;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #dee2e6;
}

.dracko-quiz-summary-status {
    font-weight: bold;
    margin-bottom: 10px;
}

.dracko-quiz-question-correct {
    background-color: #d4edda;
    border-color: #c3e6cb;
}

.dracko-quiz-question-correct .dracko-quiz-summary-status {
    color: #155724;
}

.dracko-quiz-question-incorrect {
    background-color: #f8d7da;
    border-color: #f5c6cb;
}

.dracko-quiz-question-incorrect .dracko-quiz-summary-status {
    color: #721c24;
}

.dracko-quiz-question-unanswered {
    background-color: #fff3cd;
    border-color: #ffeeba;
}

.dracko-quiz-question-unanswered .dracko-quiz-summary-status {
    color: #856404;
}

.dracko-quiz-summary-text {
    font-size: 1.1em;
    margin-bottom: 10px;
    color: #333;
}

/* Aumentando la especificidad para los estilos de la lista de respuestas */
.single-content .dracko-quiz-container .dracko-quiz-summary .dracko-quiz-summary-answers,
.dracko-quiz-summary-answers {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
    padding-left: 0 !important;
}

.dracko-quiz-summary-answer {
    padding: 8px;
    margin: 5px 0;
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 4px;
}

.dracko-quiz-answer-selected {
    background-color: #cce5ff;
    border-color: #b8daff;
}

/* Estilos del indicador de carga */
.dracko-quiz-loading {
    text-align: center;
    padding: 40px 20px;
}

.dracko-quiz-loading-spinner {
    display: inline-block;
    width: 50px;
    height: 50px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid #6c63ff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 15px;
}

.dracko-quiz-loading-text {
    color: #666;
    font-size: 1.1em;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Media Queries para responsividad */
@media screen and (max-width: 768px) {
    .dracko-quiz-container {
        padding: 15px;
    }

    .dracko-quiz-question-text {
        font-size: 1.1em;
    }

    .dracko-quiz-question-image {
        width: 100%;
        height: auto;
        aspect-ratio: 516/290;
    }

    .dracko-quiz-buttons {
        flex-direction: row;
    }

    .dracko-quiz-button {
        width: 100%;
        margin: 5px 0;
    }

    .dracko-quiz-score {
        font-size: 1.3em;
    }
}

@media screen and (max-width: 480px) {
    .dracko-quiz-container {
        padding: 10px;
    }

    .dracko-quiz-question-image {
        width: 100%;
        height: auto;
        aspect-ratio: 516/290;
    }

    .dracko-quiz-question-text {
        font-size: 1em;
        padding: 0 10px;
    }

    .dracko-quiz-answers {
        padding: 0 10px;
    }

    .dracko-quiz-answer {
        padding: 8px;
    }

    .dracko-quiz-progress {
        padding: 0 10px;
    }
}