/* Quiz Container */
.uw-quiz-container {
    max-width: 800px;
    margin: 20px auto;
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Questions */
.uw-question {
    margin-bottom: 25px;
    padding: 15px;
    border: 1px solid #e9ecef;
    border-radius: 4px;
}

.uw-question.hidden {
    display: none;
}

.uw-question-text {
    font-size: 1.1em;
    margin-bottom: 15px;
}

.uw-question-text .question-content {
    margin-left: 15px;
}

/* Options */
.uw-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.uw-option {
    display: flex;
    align-items: center;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.uw-option:hover {
    background: #e9ecef;
}

.uw-option-text {
    margin-left: 15px;
}

/* Buttons */
.uw-submit-button,
.uw-retry-button,
.uw-show-more-button {
    display: inline-block;
    padding: 12px 24px;
    font-size: 1em;
    color: #fff;
    background-color: #e37222;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.uw-submit-button:hover,
.uw-retry-button:hover,
.uw-show-more-button:hover {
    background-color: #c45e1b;
}

/* Show More Section */
.uw-show-more-container {
    text-align: center;
    margin: 20px 0;
}

/* Results Container */
#quiz-result-container {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e9ecef;
}

/* Messages */
.uw-quiz-message {
    margin-bottom: 20px;
    padding: 15px;
    border-radius: 4px;
}

.uw-quiz-message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.uw-quiz-message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Attempts Counter */
.uw-remaining-attempts {
    text-align: center;
    font-size: 1.1em;
    margin: 15px 0;
    color: #666;
}

/* Retry Section */
#quiz-retry-container {
    display: none;
    text-align: center;
    margin-top: 20px;
}

#quiz-retry-container[style*="display: block"] {
    display: block !important;
}

/* No Attempts Message */
.uw-no-attempts {
    text-align: center;
    color: #721c24;
    background: #f8d7da;
    padding: 15px;
    border-radius: 4px;
}

/* Loading State */
.loading {
    opacity: 0.5;
    pointer-events: none;
}

/* Quiz Results Styles */
.uw-quiz-results {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin: 20px 0;
}

.uw-quiz-summary {
    text-align: center;
    padding-bottom: 20px;
    margin-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.uw-quiz-score {
    font-size: 1.2em;
    margin: 10px 0;
}

.score-pass {
    color: #28a745;
    font-weight: bold;
}

.score-fail {
    color: #dc3545;
    font-weight: bold;
}

.uw-quiz-details {
    margin-top: 20px;
}

.uw-question-review {
    margin-bottom: 25px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 6px;
}

.question-text {
    margin-bottom: 15px;
    font-size: 1.1em;
}

.answers-list {
    margin-left: 20px;
}

.answer-option {
    padding: 8px 12px;
    margin: 5px 0;
    border-radius: 4px;
    display: flex;
    align-items: center;
    background: #f8f9fa;
}

.answer-marker {
    margin-right: 10px;
    font-weight: bold;
}

.answer-marker.correct {
    color: #28a745;
}

.answer-marker.wrong {
    color: #dc3545;
}

.correct-answer {
    background: #d4edda;
    color: #155724;
    font-weight: bold;
}

.user-answer.wrong-answer {
    background: #f8d7da;
    color: #721c24;
}

.answer-option:not(.user-answer):not(.correct-answer) {
    background: #f8f9fa;
}

/* Responsive Design */
@media screen and (max-width: 600px) {
    .uw-quiz-container {
        padding: 15px;
    }

    .uw-question {
        padding: 10px;
    }

    .uw-options {
        margin-left: 15px;
    }

    .uw-submit-button,
    .uw-retry-button,
    .uw-show-more-button {
        width: 100%;
        margin-bottom: 10px;
    }

    .uw-quiz-results {
        padding: 15px;
    }

    .uw-question-review {
        padding: 10px;
    }

    .answers-list {
        margin-left: 10px;
    }
}