/* ── Recall Check Modal ────────────────────────────────────────────────── */

.recall-overlay {
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: rgba(0, 0, 0, 0.55);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.15s ease-out;
}

.recall-card {
    background: #fff;
    border-radius: 20px;
    padding: 2rem;
    max-width: 480px;
    width: 90vw;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.25);
    animation: modalPop 0.2s ease-out;
    font-family: var(--font-display, 'Lexend Giga', sans-serif);
}

.recall-header {
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #6b7280;
    margin-bottom: 0.75rem;
}

.recall-progress-wrap {
    margin-bottom: 1.25rem;
}

.recall-progress-label {
    font-size: 0.75rem;
    color: #9ca3af;
    margin-bottom: 0.3rem;
}

.recall-progress-bar {
    height: 4px;
    background: #e5e7eb;
    border-radius: 2px;
    overflow: hidden;
}

.recall-progress-fill {
    height: 100%;
    background: #818cf8;
    border-radius: 2px;
    transition: width 0.3s ease;
}

.recall-topic-label {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #818cf8;
    background: rgba(129, 140, 248, 0.1);
    padding: 2px 10px;
    border-radius: 20px;
    margin-bottom: 0.75rem;
}

.recall-question {
    font-size: 1rem;
    font-weight: 400;
    color: #1e293b;
    line-height: 1.5;
    margin-bottom: 1.25rem;
}

.recall-answers {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.recall-answer-btn {
    flex: 1;
    padding: 0.75rem 0.5rem;
    border-radius: 12px;
    cursor: pointer;
    border: 2px solid #e2e8f0;
    background: #f8fafc;
    font-family: inherit;
    font-size: 0.85rem;
    color: #1e293b;
    transition: border-color 0.15s, background 0.15s;
    line-height: 1.4;
}

.recall-answer-btn:not(:disabled):hover {
    border-color: #818cf8;
    background: rgba(129, 140, 248, 0.06);
}

.recall-answer-btn.correct {
    border-color: #4ade80;
    background: rgba(74, 222, 128, 0.08);
    color: #166534;
}

.recall-answer-btn.incorrect {
    border-color: #f87171;
    background: rgba(248, 113, 113, 0.08);
    color: #991b1b;
}

.recall-feedback {
    font-size: 0.82rem;
    color: #64748b;
    line-height: 1.5;
    margin-bottom: 1rem;
    padding: 0.5rem 0.75rem;
    background: #f1f5f9;
    border-radius: 8px;
    border-left: 3px solid #cbd5e1;
}

.recall-next-btn {
    display: block;
    width: 100%;
    padding: 0.75rem;
    border-radius: 12px;
    border: none;
    background: #818cf8;
    color: #fff;
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s;
}

.recall-next-btn:hover {
    background: #6366f1;
}

/* ── Result screens ─────────────────────────────────────────────────────── */

.recall-result {
    text-align: center;
    padding: 0.5rem 0;
}

.recall-result-icon {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    color: #4ade80;
}

.recall-result-heading {
    font-size: 1.2rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 0.4rem;
}

.recall-result-sub {
    font-size: 0.85rem;
    color: #64748b;
    margin-bottom: 1.25rem;
}

.recall-continue-btn {
    display: inline-block;
    padding: 0.75rem 2.5rem;
    border-radius: 12px;
    border: none;
    background: #818cf8;
    color: #fff;
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s;
}

.recall-continue-btn:hover {
    background: #6366f1;
}

.recall-result-fail .recall-result-heading {
    color: #374151;
}

.recall-review-links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
}

.recall-review-link {
    display: block;
    padding: 0.6rem 1rem;
    border-radius: 10px;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    color: #4f46e5;
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 500;
    transition: background 0.15s, border-color 0.15s;
}

.recall-review-link:hover {
    background: rgba(129, 140, 248, 0.1);
    border-color: #818cf8;
}

.recall-continue-link {
    display: block;
    font-size: 0.8rem;
    color: #9ca3af;
    text-decoration: none;
    margin-top: 0.25rem;
    cursor: pointer;
}

.recall-continue-link:hover {
    color: #6b7280;
}

/* ── Teacher dashboard badge ────────────────────────────────────────────── */

.recall-flag-badge {
    display: inline-block;
    padding: 2px 9px;
    border-radius: 12px;
    background: rgba(251, 191, 36, 0.15);
    border: 1px solid #FBBF24;
    color: #92400e;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    white-space: nowrap;
    cursor: default;
}

/* ── Gaps question ──────────────────────────────────────────────────────── */

.recall-code-template {
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
    font-size: 0.88rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 0.75rem 1rem;
    white-space: pre;
    overflow-x: auto;
    margin: 0.5rem 0 0.75rem;
    text-align: left;
    color: #1e293b;
}

.recall-gap-input {
    width: 100%;
    box-sizing: border-box;
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
    font-size: 1rem;
    padding: 0.5rem 0.75rem;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    outline: none;
    transition: border-color 0.15s;
    margin-bottom: 0.4rem;
}

.recall-gap-input:focus {
    border-color: #818cf8;
}

.recall-gap-input.correct {
    border-color: #22c55e;
    background: rgba(34, 197, 94, 0.06);
}

.recall-gap-input.incorrect {
    border-color: #ef4444;
    background: rgba(239, 68, 68, 0.06);
}

.recall-gap-row {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 0.4rem;
}

.recall-check-btn {
    background: #4f46e5;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 0.45rem 1.2rem;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s;
}

.recall-check-btn:hover:not(:disabled) {
    background: #4338ca;
}

.recall-check-btn:disabled {
    opacity: 0.5;
    cursor: default;
}

/* ── Spots question ─────────────────────────────────────────────────────── */

.recall-lines {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    margin: 0.5rem 0 0.75rem;
}

.recall-line-btn {
    width: 100%;
    text-align: left;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 0.4rem 0.75rem;
    cursor: pointer;
    transition: background 0.12s, border-color 0.12s;
}

.recall-line-btn:hover:not(:disabled) {
    background: rgba(129, 140, 248, 0.08);
    border-color: #818cf8;
}

.recall-line-btn code {
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
    font-size: 0.88rem;
    color: #1e293b;
    white-space: pre;
}

.recall-line-btn.correct {
    background: rgba(34, 197, 94, 0.1);
    border-color: #22c55e;
}

.recall-line-btn.incorrect {
    background: rgba(239, 68, 68, 0.1);
    border-color: #ef4444;
}

.recall-line-btn:disabled {
    cursor: default;
}
