/* Quiz Styles */
.paying-attention-frontend {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    margin: 20px 0;
}

/* Start Screen */
.start-screen-card {
    text-align: center;
    max-width: 500px;
    margin: 0 auto;
}

.start-screen-card h2 {
    color: #333;
    margin-bottom: 10px;
}

.quiz-description {
    color: #666;
    margin-bottom: 30px;
}

.quiz-info {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 30px 0;
    flex-wrap: wrap;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 15px;
    background: white;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    min-width: 200px;
}

.info-icon {
    font-size: 24px;
}

.info-content strong {
    display: block;
    color: #333;
}

.info-content p {
    margin: 5px 0 0 0;
    color: #666;
    font-size: 14px;
}

.start-quiz-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 15px 40px;
    font-size: 16px;
    border-radius: 50px;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
}

.start-quiz-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

/* Active Screen */
.quiz-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: white;
    padding: 15px 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.header-left h3 {
    margin: 0 0 5px 0;
    color: #333;
}

.quiz-progress {
    color: #666;
    font-size: 14px;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.timer-container, .quiz-score {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #f8f9fa;
    padding: 10px 15px;
    border-radius: 8px;
}

.timer-display.warning {
    color: #ff6b6b;
    font-weight: bold;
}

.restart-quiz-btn-small {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    padding: 5px;
    border-radius: 5px;
}

.restart-quiz-btn-small:hover {
    background: #f8f9fa;
}

/* Question Card */
.quiz-question-card {
    background: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.question-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
}

.question-number {
    font-weight: bold;
    color: #667eea;
}

.question-points {
    background: #e8f5e9;
    color: #2e7d32;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 14px;
}

.question-text {
    font-size: 18px;
    line-height: 1.6;
    color: #333;
    margin-bottom: 25px;
}

.answers-container {
    display: grid;
    gap: 12px;
    margin-bottom: 20px;
}

.answer-option {
    display: flex;
    align-items: center;
    text-align: left;
    background: #f8f9fa;
    border: 2px solid transparent;
    border-radius: 8px;
    padding: 15px;
    cursor: pointer;
    transition: all 0.3s;
}

.answer-option:hover:not(:disabled) {
    background: #e9ecef;
    border-color: #dee2e6;
}

.answer-option.selected {
    border-color: #667eea;
    background: #f0f4ff;
}

.answer-option.correct {
    border-color: #4caf50;
    background: #e8f5e9;
}

.answer-option.wrong {
    border-color: #f44336;
    background: #ffebee;
}

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

.answer-letter {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    background: #667eea;
    color: white;
    border-radius: 50%;
    margin-right: 15px;
    font-weight: bold;
}

.answer-option.correct .answer-letter {
    background: #4caf50;
}

.answer-option.wrong .answer-letter {
    background: #f44336;
}

.answer-text {
    flex: 1;
    color: #333;
}

/* Result Popup */
.result-popup {
    background: white;
    border-radius: 10px;
    margin-top: 20px;
    padding: 20px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    border-left: 6px solid #667eea;
}

.result-popup.correct {
    border-left-color: #4caf50;
}

.result-popup.wrong {
    border-left-color: #f44336;
}

.result-popup.timeout {
    border-left-color: #ff9800;
}

.popup-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.popup-icon {
    font-size: 24px;
}

.popup-title {
    margin: 0;
    font-size: 20px;
}

.correct-answer-text {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.explanation-box {
    background: #fff8e1;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.explanation-box h5 {
    margin: 0 0 10px 0;
    color: #ff8f00;
}

.explanation-text {
    margin: 0;
    line-height: 1.6;
    color: #5d4037;
}

.stats-box {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
}

.stat-item {
    flex: 1;
    text-align: center;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
}

.stat-label {
    display: block;
    color: #666;
    font-size: 14px;
    margin-bottom: 5px;
}

.stat-value {
    display: block;
    font-size: 20px;
    font-weight: bold;
    color: #333;
}

.popup-actions {
    text-align: center;
}

.next-question-btn, .finish-quiz-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 15px 30px;
    font-size: 16px;
    border-radius: 50px;
    cursor: pointer;
    transition: transform 0.3s;
}

.next-question-btn:hover, .finish-quiz-btn:hover {
    transform: translateY(-2px);
}

/* Final Results */
.results-card {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.results-header {
    margin-bottom: 30px;
}

.results-icon {
    font-size: 48px;
    display: block;
    margin-bottom: 10px;
}

.results-header h2 {
    color: #333;
    margin-bottom: 10px;
}

.results-subtitle {
    color: #666;
    margin-bottom: 20px;
}

.results-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 15px;
    margin: 30px 0;
}

.stat-card {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.stat-card.correct {
    border-top: 4px solid #4caf50;
}

.stat-card.total {
    border-top: 4px solid #2196f3;
}

.stat-card.percentage {
    border-top: 4px solid #9c27b0;
}

.stat-card.time {
    border-top: 4px solid #ff9800;
}

.stat-card .stat-value {
    font-size: 32px;
    font-weight: bold;
    margin-bottom: 5px;
}

.stat-card .stat-label {
    color: #666;
    font-size: 14px;
}

.results-details {
    background: white;
    padding: 25px;
    border-radius: 10px;
    margin: 30px 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.performance-meter {
    height: 10px;
    background: #f0f0f0;
    border-radius: 5px;
    margin: 20px 0;
    overflow: hidden;
}

.meter-fill {
    height: 100%;
    background: linear-gradient(90deg, #ff6b6b, #4caf50);
    transition: width 1s ease;
}

.performance-message {
    font-size: 18px;
    color: #333;
    font-weight: bold;
    margin-top: 15px;
}

.restart-quiz-btn-large {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 15px 40px;
    font-size: 18px;
    border-radius: 50px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: transform 0.3s;
}

.restart-quiz-btn-large:hover {
    transform: translateY(-2px);
}