/* Kawaii Quiz Modal Styles v6.0 */

:root {
    --primary: #FF69B4;
    --primary-dark: #FF1493;
    --secondary: #87CEEB;
    --success: #4CAF50;
    --success-light: #81C784;
    --error: #F44336;
    --error-light: #EF5350;
    --warning: #FFA726;
    --bg-dark: #1a0033;
    --bg-darker: #0a0015;
    --bg-card: rgba(26, 0, 51, 0.95);
    --text-light: #ffffff;
    --text-muted: #b0b0b0;
    --border-color: rgba(255, 255, 255, 0.1);
    --shadow: 0 4px 12px rgba(0,0,0,0.5);
    --shadow-lg: 0 20px 40px rgba(0,0,0,0.7);
    --border-radius: 12px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg-dark);
    color: var(--text-light);
    min-height: 100vh;
    margin: 0;
    padding: 0;
}

/* Main Container */
.quiz-container {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
}

/* Quiz Status Bar */
.quiz-status {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: transparent;
    padding: 15px 20px;
    border-radius: var(--border-radius);
    margin-bottom: 20px;
    border: 1px solid var(--border-color);
}

.hearts {
    font-size: 24px;
}

.progress {
    font-weight: 600;
    color: var(--text-light);
}

.score {
    font-weight: 600;
    color: var(--secondary);
}

/* Question Modal */
.question-modal {
    background: var(--bg-card);
    border-radius: 20px;
    padding: 40px;
    box-shadow: var(--shadow-lg);
    text-align: center;
    border: 1px solid var(--border-color);
    color: var(--text-light);
}

.mascot-container {
    margin-bottom: 30px;
}

.mascot {
    font-size: 60px;
    display: inline-block;
}

.mascot-thinking {
    animation: think 2s ease-in-out infinite;
}

.mascot-happy {
    animation: bounce 0.5s ease-in-out;
}

.mascot-sad {
    animation: shake 0.5s ease-in-out;
}

@keyframes think {
    0%, 100% { transform: rotate(-5deg); }
    50% { transform: rotate(5deg); }
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

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

/* Question Content */
.question-content h2 {
    font-size: 24px;
    color: var(--text-light);
    margin-bottom: 30px;
    line-height: 1.4;
}

/* Answer Options */
.answer-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 30px;
}

.answer-btn {
    width: 100%;
    padding: 18px 24px;
    text-align: left;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: var(--border-radius);
    font-size: 18px;
    font-weight: 500;
    color: var(--text-light);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    display: block;
    line-height: 1.5;
    letter-spacing: 0.3px;
}

.answer-btn:hover {
    background: rgba(255, 105, 180, 0.15);
    border-color: var(--primary);
    transform: translateX(5px);
    color: var(--text-light);
}

/* Selected Answer State */
.answer-btn.selected {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-color: var(--primary-dark);
    font-weight: 600;
    color: white;
    box-shadow: 0 4px 20px rgba(255, 105, 180, 0.5);
}

.answer-btn.selected::before {
    content: '👉';
    position: absolute;
    left: -25px;
    top: 50%;
    transform: translateY(-50%);
}

/* Submit Button */
.submit-btn {
    background: var(--primary);
    color: white;
    border: none;
    padding: 14px 40px;
    border-radius: 25px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(255, 105, 180, 0.3);
}

.submit-btn:hover:not(:disabled) {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(255, 105, 180, 0.4);
}

.submit-btn:disabled {
    background: #CCCCCC;
    cursor: not-allowed;
    box-shadow: none;
}

/* Answer Feedback States */
.answer-btn.correct {
    background: var(--success-light) !important;
    border-color: var(--success) !important;
    color: white;
    font-weight: 600;
    animation: correctPulse 0.6s ease;
}

.answer-btn.correct::after {
    content: '✓';
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 20px;
    color: white;
}

.answer-btn.incorrect {
    background: var(--error-light) !important;
    border-color: var(--error) !important;
    color: white;
    font-weight: 600;
    animation: incorrectShake 0.6s ease;
}

.answer-btn.incorrect::after {
    content: '✗';
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 20px;
    color: white;
}

.answer-btn.show-correct {
    background: var(--success-light) !important;
    border-color: var(--success) !important;
    opacity: 0.7;
}

@keyframes correctPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

@keyframes incorrectShake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

/* Feedback Modal */
.feedback-modal {
    text-align: center;
    padding: 30px;
    background: var(--bg-card) !important;
    color: var(--text-light) !important;
    border-radius: 20px;
    border: 1px solid var(--border-color);
}

.feedback-modal h2 {
    font-size: 28px;
    margin: 20px 0;
}

.feedback-correct {
    color: var(--success);
}

.feedback-incorrect {
    color: var(--error);
}

.feedback-modal p {
    font-size: 18px;
    color: var(--text-light);
    margin-bottom: 30px;
}

.btn-continue {
    background: var(--primary);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-continue:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

/* Submit Button */
.submit-btn {
    background: var(--primary);
    color: white;
    border: none;
    padding: 14px 32px;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 20px;
    width: 100%;
}

.submit-btn:hover:not(:disabled) {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 105, 180, 0.4);
}

.submit-btn:disabled {
    background: rgba(50, 50, 70, 0.8);
    color: rgba(255, 255, 255, 0.3);
    cursor: not-allowed;
    opacity: 0.7;
}

/* All disabled buttons */
button:disabled,
.btn-primary:disabled,
.btn-secondary:disabled {
    background: rgba(50, 50, 70, 0.8) !important;
    color: rgba(255, 255, 255, 0.3) !important;
    cursor: not-allowed !important;
    opacity: 0.7 !important;
    transform: none !important;
}

/* Force all buttons to use our theme */
button:not([class]),
button[class=""],
button.button,
input[type="button"],
input[type="submit"] {
    background: linear-gradient(135deg, #FF69B4 0%, #FF1493 100%) !important;
    color: white !important;
    border: none !important;
    padding: 12px 24px !important;
    border-radius: 8px !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
}

button:not([class]):hover,
button[class=""]:hover,
button.button:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(255, 105, 180, 0.4) !important;
}

/* Modal Overlay */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #0a0015 !important; /* Very dark purple, almost black */
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.3s ease;
}

.modal-content {
    background: #000000;
    color: #ffffff;
    border-radius: 20px;
    padding: 0;
    max-width: 700px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    animation: slideIn 0.3s ease;
    border: 2px solid var(--primary);
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideIn {
    from { transform: translateY(-50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* Welcome Screen */
.welcome-screen {
    background: var(--bg-card);
    border-radius: 16px;
    padding: 40px;
    text-align: center;
    box-shadow: var(--shadow-lg);
}

.welcome-screen h1 {
    color: var(--primary);
    margin-bottom: 10px;
}

.course-info {
    background: rgba(255, 255, 255, 0.05);
    padding: 20px;
    border-radius: var(--border-radius);
    margin: 20px 0;
    border: 1px solid var(--border-color);
}

.course-info h2 {
    color: var(--text-light);
    font-size: 22px;
    margin-bottom: 10px;
}

.quiz-rules {
    display: flex;
    justify-content: space-around;
    margin: 30px 0;
    flex-wrap: wrap;
    gap: 10px;
}

.quiz-rules p {
    background: transparent;
    padding: 10px 20px;
    border-radius: 20px;
    font-weight: 500;
    color: var(--text-light);
    border: 1px solid var(--border-color);
}

.btn-start {
    background: var(--primary);
    color: white;
    border: none;
    padding: 16px 50px;
    border-radius: 30px;
    font-size: 20px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(255, 105, 180, 0.3);
}

.btn-start:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(255, 105, 180, 0.4);
}

/* Results Screen */
.results-screen {
    background: var(--bg-card);
    border-radius: 16px;
    padding: 40px;
    text-align: center;
    box-shadow: var(--shadow-lg);
}

.results-screen h1 {
    color: var(--primary);
    margin-bottom: 20px;
}

.final-score {
    background: rgba(255, 255, 255, 0.05);
    padding: 30px;
    border-radius: var(--border-radius);
    margin: 20px 0;
}

.final-score h2 {
    font-size: 36px;
    color: var(--primary);
    margin-bottom: 10px;
}

.score-breakdown p {
    font-size: 18px;
    margin: 5px 0;
}

.results-message {
    margin: 20px 0;
    font-size: 18px;
}

.game-over {
    background: #FFEBEE;
}

.game-over h1 {
    color: var(--error);
}

/* Notifications */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 20px;
    border-radius: var(--border-radius);
    background: var(--bg-card);
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 10px;
    animation: slideInRight 0.3s ease;
    z-index: 2000;
}

@keyframes slideInRight {
    from { transform: translateX(100%); }
    to { transform: translateX(0); }
}

.notification.fade-out {
    animation: fadeOutRight 0.3s ease;
}

@keyframes fadeOutRight {
    to { transform: translateX(100%); opacity: 0; }
}

.notification-success {
    border-left: 4px solid var(--success);
}

.notification-error {
    border-left: 4px solid var(--error);
}

/* Loading Spinner */
.loading-modal {
    text-align: center;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(255, 255, 255, 0.2);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Quiz Builder Cards */
.loading-card, .success-card, .error-card {
    background: var(--bg-card);
    border-radius: 16px;
    padding: 40px;
    text-align: center;
    box-shadow: var(--shadow-lg);
}

.success-card {
    border-top: 4px solid var(--success);
}

.error-card {
    border-top: 4px solid var(--error);
}

.success-icon {
    font-size: 60px;
    margin-bottom: 20px;
}

.course-summary {
    background: rgba(255, 255, 255, 0.05);
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
    text-align: left;
}

.course-summary .overview {
    font-style: italic;
    margin-bottom: 10px;
}

.course-summary .skills {
    color: var(--primary);
    font-weight: 500;
}

.button-group {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 20px;
}

.btn-large {
    font-size: 18px;
    padding: 14px 30px;
}

/* Responsive */
@media (max-width: 600px) {
    .quiz-container {
        padding: 10px;
    }
    
    .question-modal {
        padding: 20px;
    }
    
    .question-content h2 {
        font-size: 20px;
    }
    
    .answer-btn {
        font-size: 14px;
        padding: 14px 16px;
    }
    
    .quiz-rules {
        flex-direction: column;
        align-items: center;
    }
}

/* Course Summary Styles */
.course-summary {
    background: rgba(255, 255, 255, 0.05);
    padding: 20px;
    border-radius: var(--border-radius);
    margin: 20px 0;
    border: 1px solid var(--border-color);
    max-height: 400px;
    overflow-y: auto;
}

.course-summary::-webkit-scrollbar {
    width: 8px;
}

.course-summary::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
}

.course-summary::-webkit-scrollbar-thumb {
    background: rgba(255, 105, 180, 0.3);
    border-radius: 4px;
}

.course-summary::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 105, 180, 0.5);
}

.course-summary h3 {
    color: var(--primary);
    margin-bottom: 10px;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.description-scroll {
    max-height: 150px;
    overflow-y: auto;
    padding-right: 10px;
    color: var(--text-muted);
}

.description-scroll::-webkit-scrollbar {
    width: 6px;
}

.description-scroll::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 3px;
}

.description-scroll::-webkit-scrollbar-thumb {
    background: rgba(255, 105, 180, 0.3);
    border-radius: 3px;
}

.overview {
    color: var(--text-light);
    font-style: italic;
    margin-bottom: 10px;
}

.skills {
    color: var(--secondary);
    font-weight: 500;
}

/* Success Card */
.success-card {
    background: var(--bg-card);
    padding: 40px;
    border-radius: 20px;
    text-align: center;
    border: 1px solid var(--border-color);
    margin-bottom: 30px;
}

.success-icon {
    font-size: 60px;
    margin-bottom: 20px;
}

/* Action Buttons */
.action-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 30px;
}

.action-buttons button,
.action-buttons .btn-primary,
.action-buttons .btn-secondary {
    background: transparent !important;
    border: none !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
}

.action-buttons .btn-primary {
    background: linear-gradient(135deg, #FF69B4 0%, #FF1493 100%) !important;
    color: white !important;
    padding: 16px 36px !important;
    border-radius: 10px !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    box-shadow: 0 4px 15px rgba(255, 105, 180, 0.3) !important;
}

.action-buttons .btn-primary:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(255, 105, 180, 0.4) !important;
}

.action-buttons .btn-secondary {
    background: transparent !important;
    color: #87CEEB !important;
    border: 2px solid #87CEEB !important;
    padding: 14px 32px !important;
    border-radius: 10px !important;
    font-size: 16px !important;
    font-weight: 600 !important;
}

.action-buttons .btn-secondary:hover {
    background: rgba(135, 206, 235, 0.2) !important;
    transform: translateY(-2px) !important;
}

.btn-large {
    padding: 18px 40px !important;
    font-size: 18px !important;
}

/* Modal Overlay Styles */
#modal {
    background: rgba(0, 0, 0, 0.85) !important;
}

#modal .modal-content,
.modal-content {
    background: var(--bg-card) !important;
    border: 1px solid var(--border-color) !important;
    color: var(--text-light) !important;
}

/* Ensure all modal content uses dark theme */
.modal-container > div {
    background: var(--bg-card) !important;
    color: var(--text-light) !important;
}

/* Quiz Editor Modal - Make it sexy! */
.question-editor {
    background: transparent !important;
    color: var(--text-light) !important;
}

.question-editor {
    background: #000000 !important;
    color: #ffffff !important;
    border-radius: 20px !important;
    padding: 0 !important;
}

.question-editor .modal-content {
    background: #000000 !important;
    color: #ffffff !important;
}

.question-editor .editor-header {
    background: rgba(255, 105, 180, 0.1) !important;
    border-bottom: 2px solid var(--primary) !important;
    padding: 20px !important;
    border-radius: 20px 20px 0 0 !important;
}

.question-editor .editor-content {
    background: #000000 !important;
    color: #ffffff !important;
    padding: 20px !important;
}

.question-editor .form-group {
    background: transparent !important;
    color: #ffffff !important;
}

.question-editor .editor-header h2 {
    color: #ffffff !important;
    font-size: 24px !important;
    margin: 0 !important;
}

.question-editor .editor-header h3 {
    color: var(--primary) !important;
    font-size: 24px !important;
    margin: 0 !important;
}

.question-editor .btn-close {
    background: rgba(255, 255, 255, 0.1) !important;
    color: var(--text-light) !important;
    border: none !important;
    width: 36px !important;
    height: 36px !important;
    border-radius: 50% !important;
    font-size: 20px !important;
    transition: all 0.3s ease !important;
}

.question-editor .btn-close:hover {
    background: rgba(255, 255, 255, 0.2) !important;
    transform: rotate(90deg) !important;
}

.question-editor label {
    color: var(--text-light) !important;  /* Changed to white */
    font-weight: 600 !important;
    margin-bottom: 8px !important;
    display: block !important;
}

.question-editor textarea,
.question-editor input[type="text"] {
    background: rgba(255, 255, 255, 0.05) !important;
    border: 2px solid rgba(255, 255, 255, 0.1) !important;
    color: var(--text-light) !important;
    padding: 12px !important;
    border-radius: 8px !important;
    width: 100% !important;
    font-size: 16px !important;
    transition: all 0.3s ease !important;
    font-family: inherit !important;
}

.question-editor textarea:focus,
.question-editor input[type="text"]:focus {
    border-color: var(--primary) !important;
    background: rgba(255, 255, 255, 0.08) !important;
    outline: none !important;
    box-shadow: 0 0 0 3px rgba(255, 105, 180, 0.2) !important;
}

/* Clean Answer Editor Styles */
.answer-options-editor {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.answer-editor-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px;
    border-radius: 8px;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.15);
}

.answer-editor-row.correct-answer {
    background: rgba(76, 175, 80, 0.3);
    border: 2px solid #4CAF50;
}

.mark-correct-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: #ffffff;
    font-size: 36px;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mark-correct-btn:hover {
    background: rgba(255, 105, 180, 0.2);
    border-color: var(--primary);
}

.mark-correct-btn.selected {
    background: #4CAF50;
    border-color: #4CAF50;
    color: white;
    font-weight: bold;
}

.answer-editor-row .answer-text {
    flex: 1;
    background: rgba(255, 255, 255, 0.08);
    border: 2px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 16px;
    word-wrap: break-word;
    overflow-wrap: break-word;
    white-space: normal;
    min-height: 44px;
    resize: vertical;
}

.answer-editor-row.correct-answer .answer-text {
    background: rgba(76, 175, 80, 0.1);
    border-color: #4CAF50;
}

.answer-editor-row .answer-text:focus {
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.1);
    outline: none;
}

.question-editor .editor-footer {
    background: rgba(255, 105, 180, 0.05) !important;
    border-top: 2px solid var(--primary) !important;
    padding: 20px !important;
}

/* Quiz Builder Card - Match Learner Style */
.quiz-builder-card {
    background: var(--bg-card) !important;
    color: var(--text-light) !important;
    border: 1px solid var(--border-color) !important;
    padding: 40px !important;
    border-radius: 20px !important;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5) !important;
    text-align: center !important;
}

.quiz-builder-card h1 {
    color: var(--primary) !important;
    font-size: 42px !important;
    margin-bottom: 20px !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3) !important;
}

.quiz-builder-card h2 {
    color: var(--secondary) !important;
    margin: 20px 0 !important;
}

.quiz-builder-card p {
    color: var(--text-muted) !important;
    font-size: 18px !important;
    margin-bottom: 30px !important;
}

.loading-card {
    background: var(--bg-card) !important;
    color: var(--text-light) !important;
    border: 1px solid var(--border-color) !important;
    padding: 60px !important;
    border-radius: 20px !important;
    text-align: center !important;
}

.loading-card p {
    color: var(--text-muted) !important;
}

/* Error Card */
.error-card {
    background: var(--bg-card) !important;
    color: var(--text-light) !important;
    border: 1px solid var(--border-color) !important;
    padding: 40px !important;
    border-radius: 20px !important;
    text-align: center !important;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5) !important;
}

.error-card h2 {
    color: var(--error) !important;
    margin-bottom: 20px !important;
}

.error-card p {
    color: var(--text-muted) !important;
    margin-bottom: 30px !important;
}

/* Generation Success Container */
.generation-success-container {
    max-width: 800px !important;
    margin: 0 auto !important;
}

/* Existing Quiz Card */
.existing-quiz-card {
    background: var(--bg-card) !important;
    color: var(--text-light) !important;
    border: 1px solid var(--border-color) !important;
    padding: 40px !important;
    border-radius: 20px !important;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5) !important;
}

.existing-quiz-card h2 {
    color: var(--primary) !important;
    margin-bottom: 20px !important;
}

.existing-quiz-card p {
    color: var(--text-muted) !important;
    margin-bottom: 30px !important;
}
/* Instructor/Quiz Builder Text Fix */
.quiz-builder,
.quiz-builder *,
.question-editor,
.question-editor *,
.modal-content,
.modal-content * {
    color: var(--text-light) \!important;
}

/* Keep buttons and special elements their intended colors */
.quiz-builder button,
.quiz-builder .btn-primary,
.quiz-builder .notification {
    color: white \!important;
}

/* Override all text colors for instructor view - MAXIMUM SPECIFICITY */
html body .modal-overlay {
    background-color: #0a0015 \!important;
    background: #0a0015 \!important;
}

html body .quiz-builder,
html body .quiz-builder *:not(button),
html body .question-editor,
html body .question-editor *,
html body .question-editor label,
html body .question-editor input,
html body .question-editor textarea,
html body .modal-content,
html body .modal-content * {
    color: #ffffff \!important;
}

/* NUCLEAR OPTION - Override Bootstrap and everything else */
html body #app .modal-overlay,
html body .modal-overlay,
.modal-overlay {
    background-color: #0a0015 \!important;
    background: #0a0015 \!important;
}

/* Override Bootstrap modal styles */
html body .modal,
html body .modal-dialog,
html body .modal-content,
html body .modal-header,
html body .modal-body,
html body .modal-footer {
    background-color: #000000 \!important;
    background: #000000 \!important;
    color: #ffffff \!important;
}

/* Override all text - including Bootstrap */
html body .quiz-builder *,
html body .question-editor *,
html body .modal *,
html body .modal-content *,
html body .form-group *,
html body .form-control,
html body label,
html body input,
html body textarea,
html body p,
html body h1,
html body h2,
html body h3,
html body h4,
html body h5,
html body h6 {
    color: #ffffff \!important;
}

/* Override Bootstrap form controls */
html body .form-control,
html body input[type="text"],
html body input[type="email"],
html body textarea,
html body select {
    background-color: rgba(255, 255, 255, 0.1) \!important;
    background: rgba(255, 255, 255, 0.1) \!important;
    color: #ffffff \!important;
    border: 1px solid rgba(255, 255, 255, 0.3) \!important;
}

/* Override Bootstrap buttons */
html body .btn:not(.btn-primary):not(.btn-success):not(.btn-danger) {
    color: #ffffff \!important;
}

/* Target the specific modal by ID */
#modal,
#modal.modal-overlay,
div#modal,
div#modal.modal-overlay {
    background-color: #0a0015 \!important;
    background: #0a0015 \!important;
}

/* Target all children of the modal ID */
#modal *,
#modal .modal-content,
#modal .modal-body,
#modal .modal-header,
#modal .modal-footer,
#modal label,
#modal input,
#modal textarea,
#modal p,
#modal h1,
#modal h2,
#modal h3,
#modal h4,
#modal h5,
#modal h6 {
    color: #ffffff \!important;
}

/* Ensure modal content has dark background */
#modal .modal-content,
#modal .modal-dialog .modal-content {
    background-color: #000000 \!important;
    background: #000000 \!important;
}
