/* Estilos generales para ejercicios */
.exercise-container {
    max-width: 800px;
    margin: 2rem auto;
    padding: 2rem;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.exercise-title {
    color: #2c3e50;
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
}

/* Estilos para opciones múltiples */
.options-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

.option {
    padding: 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.option:hover {
    background-color: #f5f5f5;
}

.option.selected {
    border-color: #3498db;
    background-color: #ebf5fb;
}

.option.correct {
    border-color: #2ecc71;
    background-color: #eafaf1;
}

.option.incorrect {
    border-color: #e74c3c;
    background-color: #fdedec;
}

/* Estilos para inputs de texto */
.answer-input,
.translation-input {
    width: 100%;
    padding: 0.8rem;
    margin: 0.5rem 0;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    font-size: 1rem;
}

.answer-input:focus,
.translation-input:focus {
    outline: none;
    border-color: #3498db;
}

.answer-input.correct,
.translation-input.correct {
    border-color: #2ecc71;
    background-color: #eafaf1;
}

.answer-input.incorrect,
.translation-input.incorrect {
    border-color: #e74c3c;
    background-color: #fdedec;
}

/* Estilos para botones de control */
.control-buttons {
    display: flex;
    gap: 1rem;
    margin: 2rem 0;
}

.control-button {
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

#check-answers {
    background-color: #3498db;
    color: white;
}

#check-answers:hover {
    background-color: #2980b9;
}

#reset-exercise {
    background-color: #95a5a6;
    color: white;
}

#reset-exercise:hover {
    background-color: #7f8c8d;
}

/* Estilos para resultados */
.results-container {
    display: none;
    margin-top: 2rem;
    padding: 1.5rem;
    background-color: #f8f9fa;
    border-radius: 6px;
}

#score-text {
    font-size: 1.2rem;
    color: #2c3e50;
    margin-bottom: 1rem;
}

.feedback {
    margin-top: 1rem;
}

.feedback p {
    padding: 1rem;
    border-radius: 6px;
    font-weight: 500;
}

.feedback .success {
    background-color: #eafaf1;
    color: #27ae60;
}

.feedback .good {
    background-color: #ebf5fb;
    color: #2980b9;
}

.feedback .needs-improvement {
    background-color: #fdedec;
    color: #c0392b;
}

/* Estilos responsivos */
@media (max-width: 768px) {
    .exercise-container {
        padding: 1rem;
        margin: 1rem;
    }

    .exercise-title {
        font-size: 1.5rem;
    }

    .control-buttons {
        flex-direction: column;
    }

    .control-button {
        width: 100%;
    }
} 