/* ============================================================
   EduJA — Teacher Portal styles
   Reuses .admin-content/.admin-tabs/.admin-table/.role-badge/etc.
   from css/admin.css (identical visual language); this file only
   adds the few things unique to the teacher portal.
   ============================================================ */

.roster-progress-cell { min-width: 160px; }
.roster-mini-bar {
       background: #2a3a2a;
       border-radius: 30px;
       height: 8px;
       width: 100%;
       overflow: hidden;
       margin-top: 4px;
}
.roster-mini-fill { background: #FDB827; height: 100%; }
.roster-quiz-avg { font-size: 0.68rem; color: #999; margin-top: 3px; }

.assign-form {
       background: rgba(0, 0, 0, 0.6);
       border-radius: 16px;
       padding: 16px;
       margin-bottom: 18px;
       display: grid;
       gap: 10px;
       max-width: 520px;
}
.assign-form label { font-size: 0.78rem; color: #ccc; }
.assign-form select, .assign-form input, .assign-form textarea {
       width: 100%;
       padding: 9px 12px;
       border-radius: 10px;
       border: 1px solid #3a4a3a;
       background: #1e2a1e;
       color: #f5e7c8;
       font-size: 0.85rem;
}
.assign-form textarea { min-height: 60px; resize: vertical; }
.assign-submit-btn {
       background: #FDB827; color: #000; border: none; padding: 10px 16px;
       border-radius: 30px; font-weight: bold; font-size: 0.85rem; cursor: pointer;
}

.assignment-card, .attempt-card {
       background: rgba(0, 0, 0, 0.6);
       border-radius: 12px;
       padding: 12px 14px;
       margin-bottom: 10px;
}
.assignment-card-top, .attempt-card-top { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 6px; }
.assignment-status { font-size: 0.7rem; padding: 2px 9px; border-radius: 30px; font-weight: bold; }
.assignment-status.done { background: #14532d; color: #86efac; }
.assignment-status.pending { background: #78350f; color: #fde68a; }
.assignment-status.booked { background: #1e3a5f; color: #93c5fd; }
.assignment-status.recalled { background: #555; color: #eee; }
.assignment-card-actions { margin-top: 8px; display: flex; gap: 8px; flex-wrap: wrap; }
.assignment-edit-history { font-size: 0.7rem; color: #b8a273; margin-top: 4px; font-style: italic; }
.assign-submit-btn.assign-small-btn { padding: 6px 12px; font-size: 0.72rem; background: #444; color: #f5e7c8; }
.assign-submit-btn.assign-recall-btn { background: #7a2020; color: #fff; }

.attempt-score { font-weight: bold; color: #FDB827; }
.attempt-comment-row { margin-top: 8px; display: flex; gap: 8px; flex-wrap: wrap; }
.attempt-comment-row textarea { flex: 1; min-width: 200px; }
.attempt-existing-comment { font-size: 0.78rem; color: #ccc; background: #1e2a1e; border-radius: 8px; padding: 8px 10px; margin-top: 6px; }

/* Student History view (items 1 & 2) — status filter chips shared by
   the Assignments and Assessment attempts sections. */
.history-filter-chips { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; }
.history-filter-chip { background: #1e2a1e; border: 1px solid #3a4a3a; color: #f5e7c8; }
.history-filter-chip.active { background: #FDB827; color: #000; border-color: #FDB827; }

/* AI Draft Questions tab (sql/042_ai_question_drafts.sql +
   netlify/functions/generate-practice-questions.js) — one card per
   pending public.question_bank row awaiting teacher/admin review. */
.ai-draft-card {
       background: rgba(0, 0, 0, 0.6);
       border-left: 3px solid #FDB827;
       border-radius: 12px;
       padding: 12px 14px;
       margin-bottom: 12px;
}
.ai-draft-q-text { font-weight: bold; margin-bottom: 8px; }
.ai-draft-opts { display: flex; flex-direction: column; gap: 4px; margin-bottom: 8px; }
.ai-draft-opt { font-size: 0.82rem; padding: 4px 8px; border-radius: 6px; background: rgba(255,255,255,0.04); }
.ai-draft-opt-correct { background: rgba(0, 204, 102, 0.18); color: #86efac; font-weight: bold; }
.ai-draft-explain { font-size: 0.78rem; color: #ccc; font-style: italic; margin-bottom: 6px; }
.ai-draft-meta { font-size: 0.7rem; color: #b8a273; margin-bottom: 8px; }
.ai-draft-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.ai-draft-q-edit, .ai-draft-explain-edit { width: 100%; margin-bottom: 8px; box-sizing: border-box; }
.ai-draft-opt-edit { display: flex; align-items: center; gap: 6px; margin-bottom: 4px; }
.ai-draft-opt-edit .ai-draft-opt-input { flex: 1; }
