﻿/* ============================================================
   assessment-core.css
   Shared styling for 12- & 15-mark assessment pages
   Clean, stable, Bootstrap-friendly
   ============================================================ */

/* ------------------------------
   Structural layout
   ------------------------------ */
.assessment-card {
  border-radius: 8px;
  background: #fff;
  font-size: 1rem;
  line-height: 1.55;
}

.assessment-title {
  font-size: 1.55rem;
  font-weight: 600;
  color: #222;
}

/* ------------------------------
   Textarea
   ------------------------------ */
#studentAnswer {
  resize: vertical;
  font-family: inherit;
  line-height: 1.5;
}

/* ------------------------------
   AO Tags + Labelling
   ------------------------------ */
.ao-row {
  margin-bottom: 0.9rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid #e9e9e9;
}

.ao-heading {
  font-weight: 600;
  margin-right: 0.3rem;
}

/* AO colours (consistent with your palette) */
.ao1-tag { color: #007bff; }   /* Blue */
.ao2-tag { color: #28a745; }   /* Green */
.ao3-tag { color: #f47a20; }   /* Orange */
.ao4-tag { color: #d63384; }   /* Pink/purple */

/* Match mobile spacing */
.ao-marks {
  font-weight: 500;
  color: #555;
}

/* ------------------------------
   Assessment result panel
   ------------------------------ */
.assessment-result {
  background: #fafafa;
  border-radius: 6px;
}

.criteria-feedback {
  padding-top: 0.5rem;
}

.personalised-feedback {
  font-style: italic;
  color: #444;
}

/* Smooth fade-in behaviour */
.fade-in {
  opacity: 0;
  transition: opacity 0.6s ease-in-out;
}
.fade-in.show {
  opacity: 1;
}

/* ------------------------------
   Buttons
   ------------------------------ */
.assess-btn {
  background-color: #f47a20 !important;
  border: none !important;
}

.assess-btn:hover {
  background-color: #d9671b !important;
}

#resetBtn {
  border: 1px solid #aaa !important;
  color: #444 !important;
}

#resetBtn:hover {
  background: #e9e9e9 !important;
  color: #000 !important;
}

/* Teacher toggle */
#teacherToggle {
  border-radius: 4px;
}

/* ------------------------------
   Teacher Panel
   ------------------------------ */
.teacher-panel {
  margin-top: 1.5rem;
  padding: 1rem;
  background: #fff7e6;
  border-left: 4px solid #f47a20;
  border-radius: 6px;
  display: none;
  white-space: pre-wrap;
  font-family: monospace;
  font-size: 0.9rem;
}

.teacher-panel.show {
  display: block;
}

/* ------------------------------
   Difficulty Engine Feedback
   ------------------------------ */
#difficultyFeedback {
  color: #555;
  font-size: 0.9rem;
}

/* ------------------------------
   Mobile optimisation
   ------------------------------ */
@media (max-width: 576px) {
  .assessment-title {
    font-size: 1.35rem;
  }
  #studentAnswer {
    font-size: 0.95rem;
  }
}

/* ------------------------------
   Accessibility / spacing tweaks
   ------------------------------ */
p, li, label, textarea {
  font-size: 1rem;
  line-height: 1.55;
}

h4, h5 {
  font-weight: 600;
  margin-top: 0.8rem;
}

/* Extra small text */
.small {
  font-size: 0.85rem !important;
}

/* ------------------------------
   Prevent image fade (sidebar fix)
   ------------------------------ */
.fade-in img {
  opacity: 1 !important;
  animation: none !important;
  transition: none !important;
}
.tm-ao-block {}
.tm-word {}
.tm-hit { color: green; font-weight: bold; }
.tm-miss { color: #999; }
#teacherPanel.open { display: block; }

