/* Quiz Styles for DreamSLMS Theme */

.quiz-item {
    background: #f8f9fa;
    border: 1px solid #dee2e6 !important;
    transition: all 0.3s ease;
    border-radius: 8px;
}

.quiz-item:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.question-item {
    background: #ffffff !important;
    border: 1px solid #e9ecef;
    margin-bottom: 1rem;
    border-radius: 6px;
}

.question-item h6 {
    color: #495057;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.answers-list {
    margin-top: 0.5rem;
}

.answer-item {
    padding: 0.5rem;
    border-radius: 4px;
    transition: background-color 0.2s ease;
    margin-bottom: 0.25rem;
}

.answer-item:hover {
    background-color: #f8f9fa;
}

.answer-item .text-success {
    color: #28a745 !important;
}

.answer-item .text-danger {
    color: #dc3545 !important;
}

.quiz-actions {
    margin-top: 1rem;
}

.quiz-actions .btn {
    font-size: 0.875rem;
    padding: 0.5rem 1rem;
    border-radius: 6px;
}

/* Quiz Progress Badge */
.quiz-item .badge {
    font-size: 0.75rem;
    padding: 0.375rem 0.75rem;
    border-radius: 20px;
}

.quiz-item .bg-success {
    background-color: #28a745 !important;
}

.quiz-item .bg-warning {
    background-color: #ffc107 !important;
    color: #212529 !important;
}

/* Quiz Icons */
.answer-item .fa-check-circle {
    color: #28a745;
}

.answer-item .fa-times-circle {
    color: #dc3545;
}

/* Quiz Section Header */
.quiz-section h5 {
    color: #2c3e50;
    font-weight: 600;
    border-bottom: 2px solid #3498db;
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem;
}

/* Responsive Quiz Layout */
@media (max-width: 768px) {
    .quiz-item {
        padding: 1rem !important;
    }
    
    .question-item {
        padding: 1rem !important;
    }
    
    .quiz-actions .btn {
        width: 100%;
        margin-bottom: 0.5rem;
    }
    
    .quiz-actions .btn + .btn {
        margin-left: 0 !important;
    }
    
    .quiz-item .d-flex {
        flex-direction: column;
        align-items: flex-start !important;
    }
    
    .quiz-item .badge {
        margin-top: 0.5rem;
    }
}

/* Quiz Loading States */
.quiz-loading {
    text-align: center;
    padding: 2rem;
    color: #6c757d;
}

.quiz-loading .spinner-border {
    width: 2rem;
    height: 2rem;
}

/* Quiz Empty State */
.quiz-empty {
    text-align: center;
    padding: 3rem 1rem;
    color: #6c757d;
}

.quiz-empty i {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}
