
/* Question View Styles */
.question-view {
    padding: 1rem 0;
}

/* Questions interface styling */


.question-container {
    margin: 2rem 0;
}

.question-text {
    font-size: 1.2rem;
    font-weight: 500;
    margin-bottom: 2rem;
    color: #333;
}

.question-options {
    margin: 1.5rem 0;
    
}

.question-option {
    display: flex;
    align-items: center;
    padding: 1rem;
    margin: 0.75rem 0;
    background-color: rgba(255, 255, 255, 0.3); 
    box-shadow: 0 2px 4px 0 rgba(0,0,0,0.2);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.question-option:hover {

    background-color: var(--white-transparent-strong)
}

.option-input {
    margin-right: 1rem;
    cursor: pointer;
    width: 18px;
    height: 18px;
    appearance: auto;
}

.option-input:disabled {
    cursor: not-allowed;
    opacity: 0.7;
}

/* text for selected options  */
.question-option:has(.option-input:checked) {
    background-color: var(--white-transparent-strongest);
    font-weight: 500;
}

.option-text {
    flex: 1;
    text-align: left;
}

.question-explanation {
    margin: 2rem 0;
    padding: 1.5rem;
    background: #e8f5e9;
    border-left: 4px solid #4caf50;
    border-radius: 4px;
}

.question-explanation h4 {
    margin-top: 0;
    color: #2e7d32;
}

.question-explanation p {
    margin: 0.5rem 0;
    color: #333;
}

.question-navigation {
    width: 100%;
    display: flex;
    gap: 1rem;
    margin: 2rem 0;
    justify-content: center;
}

.question-navigation .btn {
    flex: 0 1 auto;
    min-width: 150px;
}

.no-content-view {
    text-align: center;
    padding: 3rem;
}

.no-content-view h3 {
    color: #999;
    margin-bottom: 1rem;
}


/* Feedback Styles */
.question-option.correct {
    border-color: #4caf50;
    border-width: 2px;
    background-color: #c8e6c9;
    box-shadow: inset 0 0 0 3px rgba(76, 175, 80, 0.3);
}

.question-option.correct .option-input {
    appearance: auto;
}




.option-text {
    flex-grow: 1;
    line-height: 1.5;
}



.question-navigation {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 2rem auto;
    padding: 1rem 0;
}

.question-navigation .btn {
    padding: 0.75rem 1.5rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.results-summary {
    text-align: center;
    padding: 2rem;
    background: #f8f9fa;
    border-radius: 12px;
    margin: 2rem 0;
}

.results-summary h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
}

.score-display {
    font-size: 1.5rem;
    margin: 1.5rem 0;
    color: #28a745;
}

.results-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
}

.answer-explanation {
    margin-top: 1.5rem;
    padding: 1rem;
    background: #e8f4fd;
    border-left: 4px solid #007bff;
    border-radius: 0 8px 8px 0;
    line-height: 1.6;
}



/* Answer feedback styles - both during submission and review */
.question-option.correct {
    background-color: #72bc83 !important;
}

.question-option.incorrect {
    background-color: #ff929b !important;
}



/* Explanation styles for displaying after incorrect answer */
.incorrect-explanation {
    margin-top: 2rem;
    padding: 1.5rem;
    background: #fff8dc;
    border-left: 4px solid #ffc107;
    border-radius: 0 8px 8px 0;
    line-height: 1.6;
}

.incorrect-explanation .explanation-header {
    margin-bottom: 1rem;
}

.incorrect-explanation .explanation-header h3 {
    color: #856404;
    margin: 0;
    font-size: 1.25rem;
}

.incorrect-explanation .explanation-text {
    color: #664d03;
    line-height: 1.6;
    margin: 0;
}

.incorrect-explanation .explanation-text p {
    margin: 0;
}

/* Explanation page styles */
.explanation-page {
    text-align: center;
    padding: 2rem;
    background: white;
    border-radius: 12px;
    margin: 1rem 0;
}

.explanation-header {
    margin-bottom: 1.5rem;
}

.explanation-header h3 {
    color: #dc3545;
    margin: 0;
    font-size: 1.5rem;
}

.explanation-text {
    margin: 2rem 0;
    padding: 1.5rem;
    background: #f8f9fa;
    border-left: 4px solid #dc3545;
    border-radius: 0 8px 8px 0;
    text-align: left;
}

.explanation-text p {
    line-height: 1.6;
    margin: 0;
    color: #2c3e50;
}

.explanation-navigation {
    margin-top: 2rem;
}

.explanation-navigation .btn {
    padding: 0.75rem 2rem;
    font-size: 1.1rem;
}

/* Question interface feedback backgrounds */
/*
#question-container.correct {
    background-color: #d4edda !important;
    transition: background-color 0.3s ease;
}

#question-container.incorrect {
    background-color: #f8d7da !important;
    transition: background-color 0.3s ease;
}

/* Mobile Responsiveness */
@media (max-width: 480px) {
    .question-navigation {
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .question-navigation .btn {
        min-width: auto;
        flex: 0 1 calc(50% - 0.25rem);
    }

    .results-actions {
        flex-direction: column;
    }

    .results-actions .btn {
        width: 100%;
    }
}
*/