/* Custom Styles for Educaweb */

/* Exercise Interface */
.exercise-container {
    background-color: #f8f9fa;
    border-radius: 10px;
    padding: 20px;
    margin: 20px 0;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

.exercise-question {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 20px;
    text-align: center;
}

.exercise-answer-area {
    background-color: white;
    border: 2px solid #dee2e6;
    border-radius: 5px;
    padding: 15px;
    margin: 20px 0;
    min-height: 100px;
}

.exercise-controls {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin: 20px 0;
}

.btn-exercise {
    min-width: 100px;
    margin: 5px;
}

.counter-display {
    background-color: #e9ecef;
    border-radius: 5px;
    padding: 10px;
    margin: 10px 0;
    text-align: center;
}

.counter-value {
    font-weight: bold;
    font-size: 1.2rem;
    color: #0d6efd;
}

/* Feedback styling */
.feedback-correct {
    color: #198754;
    font-weight: bold;
}

.feedback-incorrect {
    color: #dc3545;
    font-weight: bold;
}

/* Modal styles */
.modal-options .form-check {
    margin-bottom: 10px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .exercise-controls {
        flex-direction: column;
        align-items: center;
    }

    .btn-exercise {
        width: 100%;
        max-width: 250px;
    }
}

/* Animation for feedback */
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

.shake {
    animation: shake 0.5s ease-in-out;
}

/* Color-coded levels */
.level-cp { background-color: #FFF3E0; }
.level-ce1 { background-color: #E8F5E9; }
.level-ce2 { background-color: #E3F2FD; }
.level-cm1 { background-color: #F3E5F5; }
.level-cm2 { background-color: #FCE4EC; }

/* Subject cards */
.subject-card {
    transition: transform 0.2s;
}

.subject-card:hover {
    transform: translateY(-5px);
}

/* Accessibility */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}