/* Quiz List Styles */
.quiz-item {
    display: flex;
    align-items: center;
    border-bottom: 1px solid #dee2e6;
    padding: 20px 0;
    gap: 20px;
}

.quiz-item:last-child {
    border-bottom: none;
}

.quiz-icon {
    font-size: 2rem;
    flex-shrink: 0;
    width: 60px;
    text-align: center;
}

.quiz-details {
    flex-grow: 1;
}

.quiz-details h5 {
    margin-bottom: 5px;
    color: #333;
}

.quiz-details p {
    margin-bottom: 10px;
    color: #666;
}

.quiz-meta {
    display: flex;
    gap: 15px;
    align-items: center;
}

.quiz-meta small {
    color: #6c757d;
}

.quiz-action {
    flex-shrink: 0;
}

/* Quiz Page Styles */
.quiz-progress {
    margin: 20px 0;
}

.progress-text {
    text-align: center;
    margin-top: 5px;
    font-size: 0.9rem;
    color: #6c757d;
}

.question-card {
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 20px;
    overflow: hidden;
}

.question-header {
    background: linear-gradient(135deg, #4361ee, #3a0ca3);
    color: white;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.question-text {
    font-size: 1.3rem;
    font-weight: 600;
    margin: 0;
    flex-grow: 1;
}

.question-status {
    background: rgba(255,255,255,0.2);
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
}

.question-status.correct {
    background: rgba(40, 167, 69, 0.8);
}

.question-status.incorrect {
    background: rgba(220, 53, 69, 0.8);
}

.question-body {
    padding: 20px;
}

.options-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.quiz-option {
    padding: 15px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 12px;
}

.quiz-option:hover {
    border-color: #4361ee;
    background-color: #f8f9fa;
}

.quiz-option.selected {
    background-color: #4361ee;
    color: white;
    border-color: #4361ee;
}

.quiz-option.correct {
    background-color: #d4edda;
    border-color: #c3e6cb;
    color: #155724;
}

.quiz-option.incorrect {
    background-color: #f8d7da;
    border-color: #f5c6cb;
    color: #721c24;
}

.option-letter {
    font-weight: bold;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    font-size: 0.9rem;
}

.quiz-option.selected .option-letter {
    background: rgba(255,255,255,0.3);
}

.quiz-option.correct .option-letter,
.quiz-option.incorrect .option-letter {
    background: rgba(255,255,255,0.8);
}

.option-text {
    flex-grow: 1;
    font-size: 1rem;
}

.status-icon {
    font-weight: bold;
    font-size: 1.1rem;
}

.quiz-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #dee2e6;
}

/* Feedback Styles */
.question-feedback {
    padding: 15px;
    border-radius: 8px;
    margin-top: 20px;
}

.question-feedback.correct {
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
}

.question-feedback.incorrect {
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
}

.feedback-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}
/* New Quiz Badge Styles */
.new-badge {
    display: inline-block;
    margin-right: 10px;
    vertical-align: middle;
}

.new-badge img {
    height: 24px;
    width: auto;
    transition: transform 0.2s ease;
}

.new-badge img:hover {
    transform: scale(1.1);
}

/* Adjust quiz title to accommodate the badge */
.quiz-details h5 {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}
.feedback-status {
    font-size: 0.9rem;
    opacity: 0.8;
}

.explanation {
    font-size: 0.95rem;
    line-height: 1.4;
}

/* Results Styles */
.results-container {
    text-align: center;
}

.score-summary {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

.score-display {
    font-size: 3rem;
    font-weight: bold;
    color: #4361ee;
    margin: 10px 0;
}

.score-percentage {
    font-size: 1.5rem;
    color: #6c757d;
    margin-bottom: 10px;
}

.score-message {
    font-size: 1.2rem;
    color: #495057;
    font-style: italic;
}

.results-breakdown {
    text-align: left;
}

.result-item {
    background: white;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 1px 5px rgba(0,0,0,0.1);
    border-left: 4px solid #dee2e6;
}

.result-item.correct {
    border-left-color: #28a745;
}

.result-item.incorrect {
    border-left-color: #dc3545;
}

.result-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
}

.result-header h5 {
    margin: 0;
    flex-grow: 1;
    margin-right: 15px;
}

.result-status {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
    white-space: nowrap;
}

.result-status.correct {
    background-color: #d4edda;
    color: #155724;
}

.result-status.incorrect {
    background-color: #f8d7da;
    color: #721c24;
}

.result-details p {
    margin-bottom: 8px;
}

.progress-mini {
    margin-top: 10px;
}

.progress-mini .progress {
    height: 6px;
}

.result-actions {
    margin-top: 30px;
    text-align: center;
}

/* Difficulty Badges */
.badge-easy {
    background-color: #28a745;
}

.badge-intermediate {
    background-color: #ffc107;
    color: #212529;
}

.badge-mixed {
    background-color: #17a2b8;
}

.badge-hard {
    background-color: #dc3545;
    color: white;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .quiz-item {
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
        gap: 15px;
    }
    
    .quiz-icon {
        align-self: flex-start;
    }
    
    .quiz-action {
        width: 100%;
    }
    
    .quiz-action .btn {
        width: 100%;
    }
    
    .quiz-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .quiz-navigation {
        flex-direction: column;
        gap: 10px;
    }
    
    .quiz-navigation .btn {
        width: 100%;
    }
    
    .question-header {
        padding: 15px;
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .question-body {
        padding: 15px;
    }
    
    .quiz-option {
        padding: 12px;
    }
    
    .result-header {
        flex-direction: column;
        gap: 10px;
    }
    
    .score-display {
        font-size: 2rem;
    }
}

@media (max-width: 576px) {
    .quiz-header h1 {
        font-size: 1.5rem;
    }
    
    .question-text {
        font-size: 1.1rem;
    }
}