.quiz-container {
    max-width: 700px;
    margin: 0 auto;
    padding: 24px;

}

.quiz-selection-screen {
    display: flex;
    flex-direction: column;
    gap: 24px;

}

.quiz-selection-card {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 24px;
    transition: transform 0.2s, box-shadow 0.2s;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;

}

.quiz-selection-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    border-color: var(--primary-color);

}

.quiz-info h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;

}

.quiz-info p {
    color: var(--text-muted);
    font-size: 14px;
        
}

.active-quiz-screen {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);

}

.quiz-header {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 24px;

}

.quiz-title-area {
    display: flex;
    justify-content: space-between;
    align-items: center;

}

.quiz-title {
    font-size: 20px;
    font-weight: 700;

}

.quiz-progress-text {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-muted);
    background-color: var(--bg-color);
    border: 1px solid var(--border-color);
    padding: 4px 12px;
    border-radius: 20px;

}

.quiz-progress-bar-bg {
    width: 100%;
    height: 8px;
    background-color: var(--border-color);
    border-radius: 4px;
    overflow: hidden;

}

.quiz-progress-bar-fill {
    height: 100%;
    background-color: var(--primary-color);
    width: 0%;
    transition: width 0.3s ease;

}

.question-text {
    font-size: 20px;
    font-weight: 600;
    line-height: 1.5;
    margin-bottom: 32px;

}

.options-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 32px;

}

.option-btn {
    background-color: var(--bg-color);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 16px 20px;
    font-size: 16px;
    font-weight: 500;
    color: var(--text-main);
    text-align: left;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    width: 100%;

}

.option-btn:hover:not(:disabled) {
    border-color: #cbd5e1;
    background-color: #f8fafc;

}

.option-btn.selected {
    border-color: var(--primary-color);
    background-color: #eff6ff;

}

.option-btn.correct {
    border-color: #22c55e;
    background-color: #f0fdf4;
    color: #166534;

}

.option-btn.incorrect {
    border-color: #ef4444;
    background-color: #fef2f2;
    color: #991b1b;

}

.option-btn:disabled {
    cursor: default;

}

.option-indicator {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 2px solid var(--border-color);
    margin-right: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.2s;

}

.option-btn.selected .option-indicator {
    border-color: var(--primary-color);
    background-color: var(--primary-color);

}

.option-btn.option-btn.correct .option-indicator {
    border-color: #22c55e;
    background-color: #22c55e;

}

.option-btn.option-btn.incorrect .option-indicator {
    border-color: #ef4444;
    background-color: #ef4444;

}

.option-indicator::after {
    content: '';
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: white;
    transform: scale(0);
    transition: transform 0.2s;

}

.option-btn.option-btn.correct .option-indicator::after,
.option-btn.option-btn.incorrect .option-indicator::after,
.option-btn.option-btn.selected .option-indicator::after {
    transform: scale(1);

}

.feedback-section {
    padding: 24px;
    border-radius: 12px;
    margin-bottom: 24px;
    animation: fadeIn 0.3s ease;

}

.feedback-section.correct-feedback {
    background-color: #f0fdf4;
    border: 1px solid #bbf7d0;

}

.feedback-section.incorrect-feedback {
    background-color: #fef2f2;
    border: 1px solid #fecaca;

}

.feedback-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 0px;

}

.correct-feedback .feedback-title {
    color: #166534;

}

.incorrect-feedback .feedback-title {
    color: #991b1b;

}

.feedback-text {
    font-size: 15px;
    line-height: 1.6;
    color: var(--text-main);

}

.feedback-correct-answer {
    font-weight: 600;
    margin-bottom: 8px;

}

.quiz-action-area {
    display: flex;
    justify-content: flex-end;

}

.quiz-results-screen {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 40px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);

}

.results-header {
    margin-bottom: 32px;

}

.results-header h2 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 8px;

}

.results-score-circle {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    border: 8px solid var(--primary-color);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin: 0 auto 32px auto;

}

.score-number {
    font-size: 32px;
    font-weight: 800;
    color: var(--text-main);

}

.score-percentage {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-muted);

}

.results-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-bottom: 40px;

}

.stat-item {
    display: flex;
    flex-direction: column;
    gap: 8px;

}

.stat-value {
    font-size: 24px;
    font-weight: 700;

}

.stat-label {
    font-size: 14px;
    color: var(--text-muted);
    font-weight: 500;

}

.stat-correct .stat-value {
    color: #22c55e;

}

.stat-incorrect .stat-value {
    color: #ef4444;

}

@keyframes fadeIn {
    from {opacity: 0; transform: translateY(10px);}
    to {opacity: 1; transform: translateY(0);}
}