/* exam_quiz.css */
:root {
    --bg-main: #0f172a;
    --bg-panel: #1e293b;
    --text-main: #e2e8f0;
    --accent-violet: #8b5cf6;
    --accent-pink: #ec4899;
}

body {
    background-color: var(--bg-main);
    color: var(--text-main);
    font-family: 'Inter', sans-serif;
    min-height: 100vh;
}

#quiz-container {
    max-width: 900px;
    margin: 40px auto;
    padding: 0 20px;
    padding-bottom: 100px;
    /* Space for footer/floating bars */
}

.question-card {
    background: var(--bg-panel);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 30px;
    position: relative;
}

.question-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 10px;
}

.q-num {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--accent-violet);
}

.q-marks {
    background: rgba(0, 0, 0, 0.3);
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
    color: #94a3b8;
}

.q-text {
    font-size: 1.05rem;
    line-height: 1.6;
    margin-bottom: 20px;
}

/* User Input Area */
.answer-area textarea {
    width: 100%;
    background: #0f172a;
    border: 1px solid #334155;
    border-radius: 8px;
    padding: 15px;
    color: #cbd5e1;
    font-family: inherit;
    resize: vertical;
    min-height: 100px;
    margin-bottom: 15px;
}

.answer-area textarea:focus {
    outline: none;
    border-color: var(--accent-violet);
    box-shadow: 0 0 0 2px rgba(139, 92, 246, 0.2);
}

.reveal-btn {
    background: #334155;
    color: white;
    padding: 8px 16px;
    border-radius: 6px;
    font-weight: 600;
    transition: all 0.2s;
    border: none;
    cursor: pointer;
}

.reveal-btn:hover {
    background: #475569;
}

/* Mark Scheme Area */
.mark-scheme {
    border-top: 1px solid #334155;
    margin-top: 20px;
    padding-top: 20px;
    display: none;
    /* Hidden initially */
    animation: slideDown 0.3s ease-out;
}

.mark-scheme.visible {
    display: block;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.ms-title {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--accent-pink);
    font-weight: 700;
    margin-bottom: 10px;
}

.ms-content {
    background: rgba(236, 72, 153, 0.1);
    border-left: 3px solid var(--accent-pink);
    padding: 15px;
    border-radius: 0 8px 8px 0;
    margin-bottom: 15px;
    font-family: 'Fira Code', monospace;
    /* Use mono for precise checking */
    font-size: 0.9rem;
    line-height: 1.5;
}

.self-mark-controls {
    display: flex;
    align-items: center;
    gap: 15px;
    background: rgba(0, 0, 0, 0.2);
    padding: 10px;
    border-radius: 8px;
}

.mark-input {
    width: 60px;
    background: #0f172a;
    border: 1px solid #475569;
    color: white;
    padding: 5px;
    border-radius: 4px;
    text-align: center;
}

/* Floating Footer */
#exam-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(15, 23, 42, 0.95);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 15px 0;
    z-index: 50;
    backdrop-filter: blur(8px);
}

.footer-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.total-score {
    font-family: 'Outfit', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-violet);
}