.quiz-widget {
    font-family: inherit;
    margin: 20px 0;
    width: 100%;
}

.quiz-widget-error {
    color: var(--red_05, red);
    padding: 10px;
    border: 1px solid var(--red_05, red);
    border-radius: 4px;
    background: #ffeeee;
}

.quiz-question-container {
    background-color: var(--grey_02, #fafafa);
    border: 1px solid var(--grey_03, #e0e0e0);
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 12px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.quiz-question-title {
    /* font-size: 1.2rem; */
    /* font-weight: bold; */
    /* color: var(--blue_02, #333); */
    margin-bottom: 15px;
}

.quiz-matching-grid {
    display: flex;
    flex-direction: row;
    gap: 12px;
}

.quiz-matching-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.quiz-matching-item,
.quiz-mc-option {
    background-color: white;
    border: 2px solid var(--blue_04, #b0bec5);
    border-radius: 6px;
    padding: 6px 12px;
    cursor: pointer;
    text-align: left;
    font-size: 0.9rem;
    font-weight: normal;
    color: var(--grey_08, #333);
    transition: all 0.2s ease;
    user-select: none;
    font-family: inherit;
    width: 100%;
}

.quiz-matching-item:hover:not(:disabled),
.quiz-mc-option:hover:not(:disabled) {
    background-color: var(--blue_01, #e3f2fd);
    border-color: var(--blue_02, #2196f3);
}

.quiz-matching-item.selected {
    background-color: var(--blue_02, #2196f3);
    color: var(--blue_08);
    border-color: var(--blue_02, #2196f3);
}

.quiz-matching-item.correct,
.quiz-mc-option.correct {
    background-color: var(--green_01, #e8f5e9) !important;
    border-color: var(--green_05, #4caf50) !important;
    color: var(--green_08, #1b5e20) !important;
    cursor: default;
    opacity: 0.8;
}

.quiz-matching-item.incorrect,
.quiz-mc-option.incorrect {
    background-color: var(--red_01, #ffebee) !important;
    border-color: var(--red_05, #f44336) !important;
    color: var(--red_08, #b71c1c) !important;
    animation: quizShake 0.4s;
}

.quiz-mc-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.quiz-mc-option {
    text-align: left;
}

.quiz-feedback {
    margin-top: 15px;
    padding: 12px;
    border-radius: 6px;
    background-color: var(--grey_02, #f5f5f5);
    border-left: 4px solid var(--blue_02, #2196f3);
}

@keyframes quizShake {
    0% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-5px);
    }

    50% {
        transform: translateX(5px);
    }

    75% {
        transform: translateX(-5px);
    }

    100% {
        transform: translateX(0);
    }
}

@media (max-width: 600px) {
    .quiz-matching-grid {
        flex-direction: column;
    }
}