/* Hasil, laporan orang tua, dashboard siswa, dan rekap guru */

.level-badge {
  display: inline-flex; align-items: center; gap: .5rem; margin-top: 1rem;
  padding: .7rem 1.5rem; border-radius: 999px; background: var(--sun); color: var(--ink);
  font: 800 clamp(1.25rem, 3vw, 1.6rem)/1.1 var(--font-display); box-shadow: 0 5px 0 var(--sun-dark);
}
.note { margin-top: 1rem; color: var(--muted); font-size: .98rem; }

.info-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: .75rem; }
.info-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
.info { padding: 1rem 1.15rem; border-radius: var(--radius-md); background: var(--soft); }
.info dt { font-size: .88rem; font-weight: 600; color: var(--muted); }
.info dd { margin: .15rem 0 0; font-weight: 700; font-size: 1.08rem; color: var(--text); }
@media (max-width: 760px) { .info-grid.cols-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 420px) { .info-grid, .info-grid.cols-4 { grid-template-columns: 1fr; } }

.section-title { font-size: 1.35rem; margin-bottom: 1rem; }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; list-style: none; }
.chips li { padding: .35rem .9rem; border-radius: 999px; background: var(--sea-soft); color: var(--ink); font-weight: 600; font-size: .95rem; }
.box-green .chips li { background: #fff; color: var(--ink); }

.quote { font-family: var(--font-display); font-size: 1.3rem; line-height: 1.4; color: var(--ink); }
.quote-by { margin-top: .6rem; font-weight: 600; color: var(--muted); }

.actions { display: grid; gap: .75rem; margin-top: 2rem; }
.actions-2 { grid-template-columns: 1fr 1fr; }
@media (max-width: 560px) { .actions-2 { grid-template-columns: 1fr; } }
.sent-note { text-align: center; color: var(--mint-ink); font-weight: 600; }
.sent-note:empty { display: none; }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
@media (max-width: 700px) { .two-col { grid-template-columns: 1fr; } }

.report-meta { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem; color: var(--muted); font-size: .92rem; border-bottom: 2px solid var(--line); padding-bottom: 1rem; margin-bottom: 1.5rem; }

/* ---------- Dashboard: perjalanan belajar ---------- */
.journey-progress { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.25rem; }
.journey-progress .meter-track { flex: 1; margin: 0; height: 14px; }
.journey-progress strong { white-space: nowrap; }
.journey { list-style: none; display: grid; gap: .6rem; }
.journey li {
  display: grid; grid-template-columns: 36px 1fr auto; align-items: center; gap: .9rem;
  padding: .8rem 1rem; border-radius: var(--radius-md); background: var(--soft);
}
.journey .j-mark {
  width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center;
  border: 2px dashed var(--muted); color: var(--muted); font-weight: 800;
}
.journey li.is-done .j-mark { background: var(--mint-ink); border: 0; color: #fff; }
.journey li.is-done .j-title { color: var(--muted); text-decoration: line-through; text-decoration-thickness: 2px; }
.journey .j-title { font-weight: 700; }
.journey .j-desc { display: block; font-weight: 500; font-size: .92rem; color: var(--muted); text-decoration: none; }
.journey .btn { min-height: 40px; }
@media (max-width: 560px) {
  .journey li { grid-template-columns: 36px 1fr; }
  .journey .btn { grid-column: 2; justify-self: start; }
}

/* ---------- Rekap guru ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: .75rem; margin-bottom: 1.5rem; }
.stat { padding: 1rem; border-radius: var(--radius-md); background: var(--soft); text-align: center; }
.stat strong { display: block; font: 800 2rem/1.1 var(--font-display); color: var(--ink); }
.stat span { font-size: .9rem; color: var(--muted); font-weight: 600; }
@media (max-width: 640px) { .stats { grid-template-columns: repeat(2, 1fr); } }

.toolbar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .75rem; margin-bottom: 1rem; }
.toolbar .input { max-width: 280px; min-height: 44px; }
.toolbar .btn-row { gap: .5rem; }

.table-wrap { overflow-x: auto; border: 2px solid var(--line); border-radius: var(--radius-md); }
.table { width: 100%; border-collapse: collapse; font-size: .95rem; min-width: 760px; }
.table th, .table td { white-space: nowrap; padding: .75rem .9rem; text-align: left; vertical-align: middle; border-bottom: 1px solid var(--line); }
.table th { background: var(--soft); font-weight: 700; color: var(--text); white-space: nowrap; }
.table tr:last-child td { border-bottom: 0; }
.table .t-name { font-weight: 700; }
.table .t-sub { display: block; font-size: .85rem; color: var(--muted); }
.table .t-actions { display: flex; gap: .4rem; white-space: nowrap; }
.table .btn-sm { min-height: 36px; padding: .35em .85em; font-size: .88rem; }
.btn-danger-text { background: none; border: 0; color: var(--danger); font-weight: 700; cursor: pointer; padding: .35em .5em; }
.device-note { margin-top: 1.25rem; font-size: .92rem; color: var(--muted); }

.strength { margin-top: .9rem; font-weight: 700; color: var(--ink); }
.info-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 760px) { .info-grid.cols-3 { grid-template-columns: repeat(2, 1fr); } }
#pNotes p + p { margin-top: .6rem; }
.creative-answer { margin: 0; padding: 1rem 1.25rem; border-left: 5px solid var(--sun-dark); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; background: var(--sun-soft); }
.creative-answer figcaption { font-size: .9rem; font-weight: 600; color: var(--ink); margin-bottom: .35rem; }
.creative-answer blockquote { margin: 0; white-space: pre-line; font-size: 1.05rem; }
.creative-answer + .creative-answer { margin-top: .75rem; }

/* ---------- Status kirim di halaman hasil ---------- */
.sync-note { text-align: center; font-weight: 600; font-size: .95rem; margin: 0; }
.sync-note.is-done { color: var(--mint-ink); }
.sync-note.is-pending { color: var(--ink); background: var(--sun-soft); padding: .6rem .9rem; border-radius: var(--radius-sm); }

/* ---------- Halaman admin ---------- */
.admin-login { max-width: 420px; margin-inline: auto; padding: 1rem 0; }
.login-error { min-height: 1.4em; margin-top: .45rem; color: var(--danger); font-weight: 600; font-size: .95rem; }
.admin-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 1rem; margin-bottom: 1.5rem; }
.admin-head h1 { font-size: clamp(1.7rem, 4vw, 2.3rem); margin-bottom: .2rem; }
.stats-5 { grid-template-columns: repeat(5, 1fr); }
@media (max-width: 760px) { .stats-5 { grid-template-columns: repeat(2, 1fr); } .stats-5 .stat:first-child { grid-column: span 2; } }
.filters { display: flex; flex-wrap: wrap; gap: .5rem; flex: 1; }
.filters .input { min-height: 44px; }
.filters input { flex: 1 1 220px; max-width: 320px; }
.filters select { flex: 0 1 180px; }
.toolbar .btn-row { align-items: center; }

.panel-admin { max-width: 1180px; }
.table a.t-name { color: var(--ink); text-decoration: underline; text-decoration-color: var(--sea-line); text-underline-offset: 3px; }
.table a.t-name:hover { text-decoration-color: var(--sea); }
.stat span { display: block; line-height: 1.35; }
.panel-admin .table td { white-space: normal; }
.panel-admin .table td:last-child, .panel-admin .table .t-sub { white-space: nowrap; }
.panel-admin .table { min-width: 720px; }
