
/* Gambar soal Gentsuki */
#hasil-latihan img {
  display: block;
  max-width: 100%;
  max-height: 240px;
  width: auto;
  height: auto;
  object-fit: contain;
  margin: 0 auto;
}

/* Furigana */
#hasil-latihan ruby {
  ruby-position: over;
}

#hasil-latihan rt {
  font-size: 0.55em;
  font-weight: normal;
}

/* Jarak teks soal */
#hasil-latihan p {
  line-height: 1.9;
}

/* Tombol saat tidak bisa diklik */
#hasil-latihan button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

#hasil-latihan .tombol-jawaban {
  background: #f9be35;
  color: #173e68;
  border: 2px solid transparent;
}

#hasil-latihan .tombol-jawaban.dipilih {
  background: #173e68;
  color: white;
  border: 2px solid #f9be35;
}

/* Progress bar Latihan Gentsuki */
#hasil-latihan .progres-gentsuki {
  margin-bottom: 24px;
}

#hasil-latihan .progres-info {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
  font-size: 14px;
  font-weight: 600;
  color: #173e68;
}

#hasil-latihan .progres-track {
  width: 100%;
  height: 9px;
  background: #e5eaf0;
  border-radius: 20px;
  overflow: hidden;
}

#hasil-latihan .progres-fill {
  height: 100%;
  background: #173e68;
  border-radius: 20px;
  transition: width 0.25s ease;
}

/* Pengaturan Furigana Gentsuki */
#hasil-latihan .pengaturan-furigana-gentsuki {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 20px 0;
  font-weight: 600;
  color: #173e68;
}

#hasil-latihan .sakelar-furigana {
  width: 48px;
  height: 27px;
  border: none;
  border-radius: 30px;
  background: #cbd5e1;
  padding: 3px;
  cursor: pointer;
  position: relative;
  transition: background 0.25s ease;
}

#hasil-latihan .sakelar-furigana.aktif {
  background: #173e68;
}

#hasil-latihan .bulatan-sakelar {
  display: block;
  width: 21px;
  height: 21px;
  border-radius: 50%;
  background: white;
  transition: transform 0.25s ease;
}

#hasil-latihan .sakelar-furigana.aktif .bulatan-sakelar {
  transform: translateX(21px);
}

/* Tombol jawaban O dan X di tengah */
#hasil-latihan .pilihan-jawaban {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 24px;
}

/* Navigasi soal di kiri dan kanan */
#hasil-latihan .navigasi-soal {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  width: 100%;
  margin-top: 24px;
}

/* Tombol Sebelumnya & Berikutnya */
#hasil-latihan .navigasi-soal .btn {
  background: #173e68;
  color: #ffffff;
  border: 2px solid #173e68;
}

/* Efek saat disentuh */
#hasil-latihan .navigasi-soal .btn:not(:disabled):hover {
  background: #245889;
  border-color: #245889;
}

/* Tombol yang belum bisa digunakan */
#hasil-latihan .navigasi-soal .btn:disabled {
  background: #173e68;
  color: #ffffff;
  opacity: 0.4;
  cursor: not-allowed;
}

/* Latar gelap saat sidebar terbuka */
#overlay-gentsuki {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 9999;
  display: flex;
  justify-content: flex-end;
}

/* Sidebar dari kanan */
.sidebar-gentsuki {
  width: min(360px, 90vw);
  height: 100%;
  background: #ffffff;
  padding: 24px;
  overflow-y: auto;
  box-sizing: border-box;
  box-shadow: -5px 0 25px rgba(0, 0, 0, 0.15);
  animation: masukDariKanan 0.25s ease-out;
}

@keyframes masukDariKanan {
  from {
    transform: translateX(100%);
  }
  to {
    transform: translateX(0);
  }
}

/* Judul dan tombol tutup */
.sidebar-gentsuki-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.sidebar-gentsuki-header h3 {
  margin: 0;
  color: #173e68;
}

.sidebar-gentsuki-header button {
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: #173e68;
}

/* Ringkasan jawaban */
.ringkasan-sidebar-gentsuki {
  background: #f1f5f9;
  padding: 14px;
  border-radius: 12px;
  margin-bottom: 20px;
  font-size: 14px;
  line-height: 1.6;
  overflow-wrap: anywhere;
}

/* Kotak nomor 1–48 */
.grid-nomor-gentsuki {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}

.nomor-gentsuki {
  min-width: 0;
  aspect-ratio: 1;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  color: #173e68;
  font-weight: 600;
  cursor: pointer;
}

/* Sudah dijawab */
.nomor-gentsuki.terjawab {
  background: #fbbf36;
  border-color: #fbbf36;
}

/* Nomor yang sedang dibuka */
.nomor-gentsuki.sedang-aktif {
  background: #173e68;
  color: #ffffff;
  border-color: #173e68;
}

/* Furigana kiri, Daftar Soal kanan */
#hasil-latihan .baris-pengaturan-soal {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin: 20px 0;
}

#hasil-latihan .pengaturan-furigana-gentsuki {
  margin: 0;
}

#hasil-latihan .tombol-daftar-soal {
  margin-left: auto;
  white-space: nowrap;
}

/* Tombol Lihat Hasil */
#hasil-latihan .tombol-hasil-gentsuki {
  display: flex;
  justify-content: center;
  margin-top: 24px;
}

#hasil-latihan .tombol-hasil-gentsuki .btn {
  background: #173e68;
  color: white;
  border: none;
}

#hasil-latihan .tombol-hasil-gentsuki .btn:hover {
  background: #102e4f;
}
/* Gambar pada halaman pembahasan */
#hasil-latihan .gambar-pembahasan-gentsuki {
  margin: 20px auto;
  text-align: center;
}

#hasil-latihan .gambar-pembahasan-gentsuki img {
  display: block;
  max-width: 100%;
  max-height: 250px;
  width: auto;
  height: auto;
  object-fit: contain;
  margin: 0 auto;
  border-radius: 8px;
}

/* Pemisah setiap soal pada halaman pembahasan */
.pembahasan-item-gentsuki {
  padding: 24px 0;
  border-bottom: 1px solid #e2e8f0;
}

.pembahasan-item-gentsuki:last-child {
  border-bottom: none;
}

/* Pemisah setiap pernyataan nomor 47 dan 48 */
.pembahasan-subsoal-gentsuki {
  padding: 20px 0;
  border-bottom: 1px solid #e2e8f0;
}

.pembahasan-subsoal-gentsuki:last-child {
  border-bottom: none;
}

/* ===== TAMPILAN PEMBAHASAN GENTSUKI ===== */

#hasil-latihan,
#latihan-gentsuki {
  letter-spacing: normal;
  word-spacing: normal;
}

/* Teks Jepang dan furigana */
#hasil-latihan ruby,
#latihan-gentsuki ruby {
  letter-spacing: 0;
  word-spacing: 0;
  ruby-align: center;
}

#hasil-latihan rt,
#latihan-gentsuki rt {
  font-size: 0.58em;
  letter-spacing: 0;
  font-weight: 400;
}

/* Paragraf lebih nyaman dibaca */
#hasil-latihan p,
#latihan-gentsuki p {
  line-height: 1.75;
  margin: 10px 0;
  letter-spacing: 0;
  word-spacing: 0;
  overflow-wrap: anywhere;
}

/* Judul pembahasan */
#hasil-latihan h2,
#hasil-latihan h3 {
  color: #173b63;
  margin: 20px 0 12px;
}

/* Pemisah antarsoal */
#hasil-latihan hr {
  border: 0;
  border-top: 1px solid #e2e8f0;
  margin: 24px 0;
}

/* Tampilan mobile */
@media (max-width: 600px) {
  #hasil-latihan {
    font-size: 14px;
    line-height: 1.7;
  }

  #hasil-latihan rt {
    font-size: 9px;
  }
}

/* ===== DESAIN BARU HASIL LATIHAN GENTSUKI ===== */

/* Area pembahasan */
#hasil-latihan {
  max-width: 850px;
  margin: 0 auto;
  color: #193957;
  letter-spacing: normal;
  word-spacing: normal;
}

/* Setiap soal menjadi kartu */
#hasil-latihan > div {
  background: #ffffff;
  border: 1px solid #e1e7ef;
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 20px;
}

/* Judul nomor soal */
#hasil-latihan h3,
#hasil-latihan h4 {
  color: #173b63;
  font-size: 19px;
  font-weight: 750;
  margin: 0 0 18px;
}

/* Teks soal dan terjemahan */
#hasil-latihan p {
  line-height: 1.85;
  margin: 12px 0;
  letter-spacing: 0;
  word-spacing: 0;
}

/* Furigana */
#hasil-latihan ruby {
  ruby-align: center;
  letter-spacing: 0;
}

#hasil-latihan rt {
  font-size: 0.55em;
  letter-spacing: 0;
  font-weight: 400;
}

/* Garis pemisah */
#hasil-latihan hr {
  border: none;
  border-top: 1px solid #e4eaf1;
  margin: 22px 0;
}

/* Gambar soal */
#hasil-latihan img {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  margin: 16px auto;
}

/* Tampilan HP */
@media (max-width: 600px) {
  #hasil-latihan > div {
    padding: 16px;
    border-radius: 12px;
  }

  #hasil-latihan h3,
  #hasil-latihan h4 {
    font-size: 17px;
  }

  #hasil-latihan p {
    font-size: 14px;
    line-height: 1.8;
  }
}
/* Informasi jawaban dibuat rapat */
#hasil-latihan .hasil-jawaban,
#hasil-latihan .hasil-kunci,
#hasil-latihan .hasil-status {
  margin: 3px 0 !important;
  padding: 0 !important;
  line-height: 1.4 !important;
  background: transparent !important;
}

/* Judul pembahasan */
#hasil-latihan h4 {
  margin: 14px 0 8px !important;
  line-height: 1.4;
}

/* Paragraf pembahasan */
#hasil-latihan p {
  margin: 5px 0 !important;
  line-height: 1.2;
}

.pilihan-mode-gentsuki {
  margin-top: 24px;
  padding: 24px;
  border: 1px solid #dce5f0;
  border-radius: 16px;
  background: #f8fafc;
}

.pilihan-mode-gentsuki h3 {
  color: #173b63;
  margin: 0 0 10px;
}

.pilihan-mode-gentsuki p {
  margin-bottom: 20px;
  color: #64748b;
}

.pilihan-mode-gentsuki .btn {
  display: block;
  width: 100%;
  margin: 12px 0;
  padding: 15px;
}

/* DASHBOARD PILIHAN SET GENTSUKI */

.dashboard-gentsuki {
  width: 100%;
}

.hero-latihan-gentsuki {
  background: #173b63;
  color: white;
  padding: 24px;
  border-radius: 16px;
}

.hero-latihan-gentsuki h3 {
  color: white;
  margin: 0 0 8px;
  font-size: 21px;
}

.hero-latihan-gentsuki p {
  color: #d7e5f5;
  margin: 0;
  line-height: 1.6;
}

.statistik-gentsuki {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 22px;
}

.statistik-gentsuki > div {
  background: #244c77;
  border-radius: 10px;
  padding: 13px 8px;
  text-align: center;
}

.statistik-gentsuki strong {
  display: block;
  color: white;
  font-size: 21px;
}

.statistik-gentsuki span {
  display: block;
  color: #d7e5f5;
  font-size: 11px;
  margin-top: 4px;
}

.judul-daftar-set-gentsuki {
  margin: 28px 0 18px;
}

.judul-daftar-set-gentsuki h3 {
  margin: 0 0 6px;
  color: #173b63;
}

.judul-daftar-set-gentsuki p {
  margin: 0;
  color: #64748b;
  font-size: 14px;
}

.grid-set-gentsuki {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.kartu-set-gentsuki {
  background: white;
  border: 1px solid #e0e7ef;
  border-radius: 14px;
  padding: 18px;
  min-width: 0;
}

.kartu-set-gentsuki.set-aktif {
  border-color: #f8bf36;
}

.kepala-set-gentsuki {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.nomor-set-gentsuki {
  font-size: 18px;
  font-weight: 700;
  color: #173b63;
}

.status-set-gentsuki {
  font-size: 11px;
  color: #64748b;
}

.set-aktif .status-set-gentsuki {
  color: #187447;
  font-weight: 600;
}

.info-set-gentsuki {
  color: #64748b;
  font-size: 13px;
  margin: 14px 0;
}

.tombol-set-gentsuki {
  width: 100%;
  padding: 12px;
  font-size: 13px;
}

.set-aktif .tombol-set-gentsuki {
  background: #f8bf36;
  color: #173b63;
}

.set-terkunci .tombol-set-gentsuki {
  background: #edf1f5;
  color: #94a3b8;
  cursor: not-allowed;
}

@media (max-width: 600px) {
  .hero-latihan-gentsuki {
    padding: 18px;
  }

  .grid-set-gentsuki {
    grid-template-columns: 1fr;
  }

  .kartu-set-gentsuki {
    padding: 15px;
  }
}
.timer-gentsuki {
  background: #173b63;
  color: white;
  font-size: 24px;
  font-weight: 700;
  text-align: center;
  padding: 14px;
  border-radius: 12px;
  margin-bottom: 18px;
  font-variant-numeric: tabular-nums;
}
.judul-latihan-gentsuki {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.judul-latihan-gentsuki h2 {
  margin: 0;
}

.judul-latihan-gentsuki .timer-gentsuki {
  margin: 0;
  flex-shrink: 0;
}