/* Frontend Styles for Quiz Creator */



/* Quiz Container */
.quizCreator-quiz-container {
    max-width: 800px;
    margin: 0 auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.quizCreator-quiz-title {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 15px;
    color: #333;
    text-align: center;
}

.quizCreator-quiz-description {
    margin-bottom: 25px;
    font-size: 16px;
    line-height: 1.6;
    color: #555;
}

/* Questions */
.quizCreator-questions {
    margin-bottom: 30px;
}

.quizCreator-question {
    background: #f9f9f9;
    border: 1px solid #e5e5e5;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.quizCreator-question:hover {
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.quizCreator-question-header {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
}

.quizCreator-question-number {
    font-weight: bold;
    margin-right: 10px;
    color: #666;
}

.quizCreator-question-text {
    font-size: 18px;
    margin: 0;
    flex: 1;
    color: #333;
}

/* Answer Options */
.quizCreator-answer-options {
    padding-left: 25px;
}

.quizCreator-answer-option {
    margin-bottom: 12px;
}

.quizCreator-answer-option label {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.quizCreator-answer-option input[type="radio"] {
    margin-right: 10px;
}

.quizCreator-option-text {
    font-size: 16px;
    color: #444;
}

/* Submit Button */
.quizCreator-submit {
    text-align: center;
    margin-top: 20px;
}

.quizCreator-submit-button {
    background: #0073aa;
    border: none;
    color: white;
    padding: 12px 25px;
    cursor: pointer;
    font-size: 16px;
    border-radius: 4px;
    font-weight: 600;
    transition: background 0.3s ease;
}

.quizCreator-submit-button:hover {
    background: #005a87;
}

/* Results */
.quizCreator-result {
    text-align: center;
    padding: 20px;
    margin-bottom: 30px;
    border-radius: 5px;
}

.quizCreator-result-pass {
    background: #e7f7e7;
    border: 1px solid #c3e6cb;
    color: #155724;
}

.quizCreator-result-fail {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

.quizCreator-result h3 {
    margin-top: 0;
    font-size: 24px;
}

/* Answer Review */
.quizCreator-review .quizCreator-question {
    border-left: 4px solid #ddd;
}

.quizCreator-review .quizCreator-correct {
    border-left: 4px solid #28a745;
}

.quizCreator-review .quizCreator-incorrect {
    border-left: 4px solid #dc3545;
}

.quizCreator-answer-review {
    background: rgba(0, 0, 0, 0.03);
    padding: 10px 15px;
    border-radius: 4px;
}

/* Actions */
.quizCreator-actions {
    text-align: center;
    margin-top: 20px;
}

.quizCreator-button {
    display: inline-block;
    background: #0073aa;
    color: white;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 600;
    transition: background 0.3s ease;
}

.quizCreator-button:hover {
    background: #005a87;
    color: white;
    text-decoration: none;
}

.quizCreator-retry-button {
    background: #6c757d;
}

.quizCreator-retry-button:hover {
    background: #5a6268;
}















/* Sequential Questions Styling */
.quizCreator-question-container {
    margin-bottom: 20px;
}

.quizCreator-question-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
}

.quizCreator-prev-button,
.quizCreator-next-button {
    background: #f0f0f0;
    border: 1px solid #ccc;
    color: #333;
    padding: 8px 15px;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.quizCreator-prev-button:hover,
.quizCreator-next-button:hover {
    background: #e0e0e0;
}

.quizCreator-question-number {
    display: block;
    margin-bottom: 10px;
    color: #666;
    font-size: 14px;
}

/* Progress Bar */
.quizCreator-progress-bar {
    height: 10px;
    background: #f0f0f0;
    border-radius: 5px;
    margin: 15px 0;
    overflow: hidden;
}

.quizCreator-progress-indicator {
    height: 100%;
    background: #0073aa;
    transition: width 0.3s ease;
}

/* Email Collection Form */
.quizCreator-email-form {
    background: #f9f9f9;
    border: 1px solid #e5e5e5;
    padding: 20px;
    border-radius: 5px;
    margin-top: 20px;
}

.quizCreator-form-field {
    margin-bottom: 15px;
}

.quizCreator-form-field label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
}

.quizCreator-form-field input[type="text"],
.quizCreator-form-field input[type="email"] {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.quizCreator-checkbox {
    display: flex;
    align-items: center;
}

.quizCreator-checkbox input {
    margin-right: 10px;
}

.quizCreator-checkbox label {
    margin-bottom: 0;
    font-weight: normal;
}















/* Timer Container */
.quizCreator-timer-container {
    background: #f8f9fa;
    border: 2px solid #dee2e6;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 25px;
    text-align: center;
}

.quizCreator-timer-label {
    font-size: 14px;
    font-weight: 600;
    color: #495057;
    margin-bottom: 8px;
}

.quizCreator-timer-display {
    font-size: 32px;
    font-weight: bold;
    color: #28a745;
    margin-bottom: 12px;
    font-family: 'Courier New', monospace;
}

.quizCreator-timer-display.warning {
    color: #ffc107;
}

.quizCreator-timer-display.danger {
    color: #dc3545;
    animation: pulse 1s infinite;
}

/* Timer Progress Bar */
.quizCreator-timer-progress-bar {
    width: 100%;
    height: 24px;
    background-color: #e9ecef;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
}

.quizCreator-timer-progress-fill {
    height: 100%;
    width: 100%;
    background: linear-gradient(90deg, #28a745 0%, #20c997 100%);
    transition: width 0.3s linear, background 0.3s ease;
    border-radius: 12px;
}

.quizCreator-timer-progress-fill.warning {
    background: linear-gradient(90deg, #ffc107 0%, #fd7e14 100%);
}

.quizCreator-timer-progress-fill.danger {
    background: linear-gradient(90deg, #dc3545 0%, #c82333 100%);
}

/* Time's Up Overlay */
.quizCreator-time-up-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.quizCreator-time-up-message {
    background: white;
    padding: 20px 30px;
    border-radius: 8px;
    font-size: 24px;
    font-weight: bold;
    color: #dc3545;
}

/* Disabled state for expired questions */
.quizCreator-question-container.time-expired {
    opacity: 0.6;
    pointer-events: none;
}

.quizCreator-question-container.time-expired .quizCreator-options input {
    cursor: not-allowed;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}





/* Start Quiz Button/Overlay */
.quizCreator-start-overlay {
    background: rgba(0, 0, 0, 0.05);
    border: 2px solid #0073aa;
    border-radius: 8px;
    padding: 30px;
    margin-bottom: 25px;
    text-align: center;
}

.quizCreator-start-message {
    font-size: 18px;
    color: #333;
    margin-bottom: 20px;
    font-weight: 500;
}

.quizCreator-timer-info {
    font-size: 16px;
    color: #666;
    margin-bottom: 20px;
}

.quizCreator-start-button {
    background: #0073aa;
    border: none;
    color: white;
    padding: 15px 40px;
    cursor: pointer;
    font-size: 18px;
    border-radius: 4px;
    font-weight: 600;
    transition: background 0.3s ease;
}

.quizCreator-start-button:hover {
    background: #005a87;
}
