/* 선생님 화면 (현황판 달력 제외).
   원래 style.css 한 파일이었다. base.html 의 읽는 순서를 바꾸면
   나중 규칙이 앞 규칙을 덮어쓰는 순서가 깨진다. */

/* =========================
   선생님 화면
   ========================= */

.dashboard-hero h1 {
  margin-bottom: 4px;
}

.dashboard-section-head {
  margin-bottom: 14px;
}

.dashboard-filter-grid {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 14px;
  align-items: end;
  margin-bottom: 18px;
}

.dashboard-filter-grid label {
  margin-top: 0;
}

.dashboard-filter-actions {
  display: flex;
  gap: 8px;
}

.assignment-card-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 14px;
}

.assignment-card {
  display: block;
  background: var(--surface-2);
  border: 1.5px solid var(--line);
  border-radius: 18px;
  padding: 14px 16px;
  text-decoration: none;
  color: var(--text);
  transition: border-color 0.12s ease, box-shadow 0.12s ease;
}

.assignment-card:hover {
  border-color: var(--border-strong);
}

.assignment-card.active {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(31, 125, 140, 0.18);
  background: var(--accent-soft);
}

.assignment-card-main {
  display: flex;
  flex-direction: column;
  margin-bottom: 8px;
}

.assignment-card-main strong {
  font-size: 15px;
}

.assignment-card-main span {
  font-size: 12.5px;
  color: var(--muted);
}

.assignment-card-meta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 12.5px;
  color: var(--muted);
  font-weight: 600;
}

.selected-assignment-card .selected-label {
  font-size: 12px;
  font-weight: 800;
  color: var(--accent);
  margin-bottom: 2px;
}

.selected-assignment-top p {
  font-size: 13.5px;
  color: var(--muted);
}

.selected-assignment-buttons {
  align-items: flex-start;
}

.dashboard-summary-grid {
  margin-bottom: 22px;
}

.teacher-dashboard-table table {
  min-width: 900px;
}

.student-name-cell {
  font-weight: 700;
}

.student-status-row.not_submitted .student-name-cell {
  color: var(--muted);
}

.teacher-student-card-list {
  display: none;
}

.teacher-student-card {
  background: var(--surface-2);
  border: 1.5px solid var(--line);
  border-radius: 18px;
  padding: 14px 16px;
  margin-bottom: 12px;
}

.teacher-student-card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 10px;
}

.teacher-student-card-top p {
  font-size: 12.5px;
  color: var(--muted);
  margin: 0;
}

.teacher-student-meta {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px 12px;
  margin-bottom: 10px;
}

.teacher-student-meta span {
  display: block;
  font-size: 11.5px;
  color: var(--muted);
  font-weight: 600;
}

.teacher-student-meta strong {
  font-size: 14.5px;
}

.attempt-timeline {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.attempt-card {
  background: var(--surface-2);
  border: 1.5px solid var(--line);
  border-radius: 18px;
  padding: 14px 16px;
}

.attempt-card-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 10px;
}

.attempt-card-head p {
  font-size: 12.5px;
  color: var(--muted);
  margin: 0;
}

.attempt-stat-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
  margin-bottom: 10px;
}

.attempt-stat-grid > div {
  background: var(--surface);
  box-shadow: var(--inset);
  border-radius: 12px;
  padding: 8px 4px;
  text-align: center;
}

.attempt-stat-grid span {
  display: block;
  font-size: 10.5px;
  color: var(--muted);
  font-weight: 600;
}

.attempt-stat-grid strong {
  font-size: 15px;
}

.attempt-detail-list p {
  font-size: 13px;
  margin: 4px 0;
}

.action-guide-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
}

.action-guide-grid p {
  font-size: 13px;
  color: var(--muted);
  margin: 6px 0 0;
}

