/* Avin Quiz Pro - Frontend Styles */
.avin-quiz-container {
    max-width: 800px;
    margin: 40px auto;
    padding: 30px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* Start Screen */
.avin-quiz-start {
    text-align: center;
    padding: 40px 20px;
}

.avin-quiz-start h2 {
    font-size: 32px;
    color: #2c3e50;
    margin-bottom: 15px;
}

.quiz-description {
    font-size: 16px;
    color: #7f8c8d;
    margin-bottom: 30px;
    line-height: 1.6;
}

.quiz-info {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin: 30px 0;
    text-align: left;
}

.info-item {
    padding: 10px 0;
    font-size: 16px;
    color: #34495e;
}

.info-item strong {
    color: #2c3e50;
}

/* Buttons */
.avin-btn {
    padding: 15px 40px;
    font-size: 16px;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
}

.avin-btn-primary {
    background: #3498db;
    color: white;
}

.avin-btn-primary:hover {
    background: #2980b9;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.3);
}

.avin-btn-submit {
    background: #3498db;
    color: white;
    padding: 12px 30px;
}

.avin-btn-submit:hover {
    background: #2980b9;
}

.avin-btn-next,
.avin-btn-finish {
    background: #2ecc71;
    color: white;
    display: block;
    margin: 20px auto;
}

.avin-btn-next:hover,
.avin-btn-finish:hover {
    background: #27ae60;
    transform: translateY(-2px);
}

/* Quiz Header */
.avin-quiz-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: #f8f9fa;
    border-radius: 8px;
    margin-bottom: 30px;
    border-bottom: 3px solid #3498db;
}

.quiz-progress {
    font-size: 16px;
    font-weight: 600;
    color: #34495e;
}

.quiz-timer {
    font-size: 16px;
    font-weight: 600;
    color: #e74c3c;
}

.timer-display {
    font-size: 18px;
}

/* Question Styling */
.avin-question {
    animation: fadeIn 0.3s;
}

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

.question-number {
    font-size: 14px;
    color: #95a5a6;
    font-weight: 600;
    margin-bottom: 10px;
}

.question-category {
    display: inline-block;
    background: #ecf0f1;
    color: #7f8c8d;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 15px;
}

.question-text {
    font-size: 20px;
    font-weight: 600;
    color: #2c3e50;
    line-height: 1.6;
    margin-bottom: 25px;
}

/* Options */
.question-options {
    margin: 25px 0;
}

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

.quiz-option:hover {
    background: #e9ecef;
    transform: translateX(5px);
}

.quiz-option.selected {
    border-color: #3498db;
    background: #e3f2fd;
}

.quiz-option.correct {
    background: #d4edda;
    border-color: #28a745;
    cursor: default;
}

.quiz-option.wrong {
    background: #f8d7da;
    border-color: #dc3545;
    cursor: default;
}

.option-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 32px;
    background: #3498db;
    color: white;
    border-radius: 50%;
    font-weight: 700;
    margin-right: 15px;
    font-size: 14px;
}

.quiz-option.correct .option-number {
    background: #28a745;
}

.quiz-option.wrong .option-number {
    background: #dc3545;
}

.option-text {
    flex: 1;
    font-size: 16px;
    color: #2c3e50;
}

/* Answer Input */
.question-input {
    display: flex;
    gap: 15px;
    margin: 25px 0;
}

.answer-input {
    flex: 1;
    padding: 15px;
    font-size: 18px;
    border: 2px solid #ddd;
    border-radius: 8px;
    text-align: center;
    font-weight: 600;
    transition: all 0.3s;
}

.answer-input:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.answer-input:disabled {
    background: #ecf0f1;
    cursor: not-allowed;
}

/* Feedback */
.question-feedback {
    text-align: center;
    margin: 20px 0;
    font-size: 18px;
    font-weight: 600;
    min-height: 30px;
}

.feedback-correct {
    color: #28a745;
}

.feedback-wrong {
    color: #dc3545;
}

.feedback-error {
    color: #e67e22;
}

/* Results Screen */
.avin-quiz-results {
    text-align: center;
    padding: 40px 20px;
}

.avin-quiz-results h2 {
    font-size: 32px;
    color: #2c3e50;
    margin-bottom: 30px;
}

.results-summary {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 12px;
    margin: 30px 0;
}

.result-score {
    margin-bottom: 30px;
}

.score-number {
    font-size: 48px;
    font-weight: 700;
    color: #3498db;
    margin-bottom: 10px;
}

.score-percentage {
    font-size: 32px;
    color: #7f8c8d;
    font-weight: 600;
}

.result-details {
    text-align: left;
    max-width: 400px;
    margin: 0 auto;
}

.detail-item {
    padding: 15px;
    font-size: 18px;
    border-bottom: 1px solid #ddd;
}

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

.pass-status.passed {
    color: #28a745;
    font-weight: 700;
}

.pass-status.failed {
    color: #dc3545;
    font-weight: 700;
}

.results-actions {
    margin-top: 30px;
}

/* Animation */
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-10px); }
    75% { transform: translateX(10px); }
}

.shake {
    animation: shake 0.5s;
}

/* Mobile Responsive */
@media (max-width: 600px) {
    .avin-quiz-container {
        padding: 20px;
        margin: 20px 10px;
    }

    .question-text {
        font-size: 18px;
    }

    .quiz-option {
        padding: 12px;
    }

    .option-number {
        min-width: 28px;
        height: 28px;
        font-size: 12px;
    }

    .option-text {
        font-size: 14px;
    }

    .question-input {
        flex-direction: column;
    }

    .avin-btn {
        width: 100%;
    }

    .avin-quiz-header {
        flex-direction: column;
        gap: 10px;
    }
}