/* Quiz-specific styles for all quiz modules */

button.option-btn {
    display: block;
    width: 100%;
    text-align: left;
    margin: 0.5rem 0;
    background-color: #eee;
    color: #000;
    border: 1px solid #ccc;
    border-radius: 5px;
    padding: 0.75rem;
    font-size: 1rem;
    transition: background 0.3s;
}

button.option-btn:hover {
    background-color: #ddd;
}

button.option-btn.correct {
    background-color: #c2eabd;
    border-color: #5cb85c;
}

button.option-btn.wrong {
    background-color: #efc7c2;
    border-color: #ce4760;
}

button.option-btn.selected {
    background-color: #d0f0c0;
    border: 2px solid #4caf50;
    color: #222;
}

#progress-bar {
    width: 100%;
    background: #ddd;
    height: 20px;
    margin: 1rem 0;
    border-radius: 10px;
    overflow: hidden;
}

#progress-fill {
    height: 100%;
    width: 0;
    background-color: var(--primary-color, #4059AD);
    transition: width 0.4s ease;
}

.review-question {
    margin-bottom: 2rem;
    padding: 1rem;
    border: 1px solid #eee;
    border-radius: 8px;
    background: #fafbfc;
}

button.option-btn.review {
    margin: 0.25rem 0.5rem 0.25rem 0;
    min-width: 120px;
    cursor: default;
    opacity: 1;
}

button.option-btn.review.selected {
    background-color: #ffe082;
    border: 2px solid #ffb300;
}

button.option-btn.review.correct {
    background-color: #d0f0c0;
    border: 2px solid #4caf50;
}

button.option-btn.review.wrong {
    background-color: #ffcdd2;
    border: 2px solid #e53935;
}

.exit-btn.small {
    font-size: 0.85rem;
    padding: 0.4rem 0.8rem;
    background: #f5f5f5;
    color: #ce4760;
    border: 1px solid #ce4760;
    border-radius: 4px;
    margin-left: 1rem;
    opacity: 0.85;
    transition: background 0.2s, color 0.2s;
}

.exit-btn.small:hover {
    background: #ffeaea;
    color: #a83232;
    opacity: 1;
}

.hidden {
    display: none !important;
}

.active {
    display: block !important;
}

/* Shared quiz action button styles */
.quiz-action-btn {
    background: var(--primary-color, #4059AD);
    color: #fff;
    border: none;
    border-radius: 2rem;
    padding: 0.75rem 2rem;
    font-size: 1rem;
    font-family: var(--primary-font, 'Montserrat', sans-serif);
    font-weight: 600;
    margin: 0.5rem 0.5rem 0.5rem 0;
    cursor: pointer;
    transition: background 0.2s, box-shadow 0.2s;
    box-shadow: 0 2px 8px rgba(64, 89, 173, 0.08);
}

.quiz-action-btn:hover,
.quiz-action-btn:focus {
    background: #2c3e90;
    outline: none;
}

@media (max-width: 700px) {
    .communication-quiz {
        padding: 1rem 0.5rem;
        margin: 1rem 0.2rem;
        max-width: 100%;
    }
}