/* Frontend styles for ThePrepLabs Quiz plugin */

.tpl-quiz-container {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: #333;
    max-width: 1200px;
    margin: 0 auto;
}

.tpl-quiz-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 15px;
    margin-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.tpl-timer {
    font-size: 1.2em;
    font-weight: bold;
    color: #d32f2f;
    background: #ffebee;
    padding: 8px 15px;
    border-radius: 20px;
}

.tpl-quiz-body {
    display: flex;
    gap: 25px;
    flex-wrap: wrap;
}

.tpl-question-section {
    flex: 1;
    min-width: 300px;
}

.tpl-navigation-section {
    width: 250px;
}

.tpl-question {
    font-size: 1.2em;
    margin-bottom: 20px;
    line-height: 1.5;
}

.tpl-options {
    list-style: none;
    padding: 0;
}

.tpl-options li {
    padding: 12px 15px;
    margin: 8px 0;
    background: #f8f9fa;
    border: 1px solid #ddd;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
}

.tpl-options li:hover {
    background: #eef5ff;
}

.tpl-options li.selected {
    background: #0073aa;
    color: white;
    border-color: #005a87;
}

.tpl-options li.correct {
    background: #4CAF50;
    color: white;
}

.tpl-options li.incorrect {
    background: #f44336;
    color: white;
}

.tpl-question-palette {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.palette-item {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #e0e0e0;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s;
}

.palette-item.current {
    background: #1a237e;
    color: white;
    transform: scale(1.1);
}

.palette-item.answered {
    background: #4CAF50;
    color: white;
}

.palette-item.marked {
    background: #FF9800;
    color: white;
}

.tpl-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.tpl-btn {
    padding: 10px 18px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    margin-left: 10px;
}

.tpl-btn-primary {
    background: #0073aa;
    color: white;
}

.tpl-btn-secondary {
    background: #6c757d;
    color: white;
}

.tpl-btn-warning {
    background: #FF9800;
    color: white;
}

.tpl-btn-success {
    background: #4CAF50;
    color: white;
}

.tpl-btn:hover {
    opacity: 0.9;
}

.tpl-quiz-title {
    font-size: 1.5em;
    margin-bottom: 10px;
}

.tpl-quiz-description {
    color: #666;
    margin-bottom: 15px;
}

.tpl-weekly-badge {
    background: #ffeb3b;
    color: #333;
    padding: 3px 10px;
    border-radius: 12px;
    font-weight: bold;
    margin-left: 10px;
    font-size: 0.9em;
}

.tpl-help-section {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    margin-top: 20px;
}

.tpl-notification {
    background: #e3f2fd;
    border-left: 4px solid #2196F3;
    padding: 10px 15px;
    margin: 15px 0;
}

.tpl-score-display {
    text-align: center;
    padding: 30px 0;
}

.tpl-score-value {
    font-size: 3em;
    font-weight: bold;
    color: #0073aa;
    margin: 10px 0;
}

.tpl-score-details {
    color: #666;
}

/* Detailed results */
.tpl-detailed-results {
    margin-top: 30px;
}

.tpl-question-result {
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

.tpl-question-header {
    padding-bottom: 10px;
    margin-bottom: 15px;
    border-bottom: 1px solid #f0f0f0;
}

.tpl-correct-answer {
    background: #e8f5e9 !important;
    color: #2e7d32;
    font-weight: bold;
}

.tpl-incorrect-answer {
    background: #ffebee !important;
    color: #c62828;
    text-decoration: line-through;
}

.tpl-correct {
    color: #2e7d32;
    font-weight: bold;
}

.tpl-incorrect {
    color: #c62828;
    font-weight: bold;
}

.tpl-marked-badge {
    color: #FF9800;
    font-weight: bold;
}