/* PETUNJUK KUIS */

.nextphp-kuis-guide {
  background: #f5f3ff;
  border: 2px solid #d3c4f3;
  border-radius: 12px;
  padding: 30px;
  max-width: 720px;
  margin: auto;
  box-shadow: 0 4px 16px rgba(108, 86, 203, 0.08);
  text-align: center;
}

.nextphp-kuis-title {
  font-size: 32px;
  font-weight: 700;
  color: #6f42c1;
  margin-bottom: 0;
}

.nextphp-kuis-subtitle {
  font-size: 18px;
  color: #555;
  margin-bottom: 25px;
}

.nextphp-kuis-instructions {
  text-align: left;
  margin-bottom: 30px;
}

.nextphp-kuis-instructions h5 {
  color: #4c2a85;
  font-weight: 600;
  margin-bottom: 10px;
}

.nextphp-kuis-instructions ol {
  padding-left: 20px;
}

.nextphp-kuis-instructions li {
  margin-bottom: 10px;
  font-size: 15px;
  color: #333;
}

.nextphp-kuis-btn-group {
  display: flex;
  justify-content: center;
  gap: 1rem;
}

.nextphp-btn-mulai,
.nextphp-btn-kembali, .nextphp-btn-back{
  text-decoration: none;
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  transition: 0.3s;
}

.nextphp-btn-mulai {
  background-color: #6f42c1;
  color: white;
}

.nextphp-btn-mulai:hover {
  background-color: #59359c;
}


.nextphp-btn-kembali {
  background-color: #d6d6e0;
  color: #333;
}

.nextphp-btn-kembali:hover {
  background-color: #bbbcd4;
}

.nextphp-btn-back {
  background-color: #d6d6e0;
  color: #333;
}

.nextphp-btn-back:hover {
  background-color: #bbbcd4;
}




/* KUIS */
.kuis-wrapper {
  max-width: 1200px;
  margin: auto;
  padding: 2rem;
}

.kuis-header-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #e5e7eb;
}

.kuis-timer-kuis1 {
  background: #fff0f3;
  padding: 6px 14px;
  border-radius: 6px;
  color: #b91c1c;
  font-weight: bold;
  font-size: 1.1rem;
  border: 1px solid #fecaca;
  box-shadow: 0 0 4px rgba(0,0,0,0.05);
}


.kuis-body {
  display: flex;
  gap: 2rem;
}

.kuis-sidebar {
  width: 250px;
  background: #f9f9ff;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 1rem;
}

.kuis-nav-buttons {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.5rem;
  margin: 1rem 0;
}

.nav-soal {
  background: #e0e7ff;
  border: none;
  border-radius: 6px;
  padding: 0.5rem;
  cursor: pointer;
  font-weight: bold;
  color: #4f46e5;
}

.nav-soal.dijawab {
  background-color: #6d28d9;
  color: white;
}

.kuis-keterangan {
  margin-top: 1rem;
  font-size: 0.85rem;
}
.kuis-keterangan .legend {
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 3px;
  margin-right: 6px;
}
.kuis-keterangan .belum {
  background: #e0e7ff;
}
.kuis-keterangan .sudah {
  background: #6d28d9;
}

.kuis-content {
  flex: 1;
}

.soal-box {
  background: #f3f4f6;
  border-radius: 8px;
  padding: 1.5rem;
  margin-bottom: 1rem;
  border: 1px solid #ddd;
}

.opsi-item {
  display: block;
  margin-bottom: 0.5rem;
  padding: 0.3rem 0.5rem;
  background: white;
  border: 1px solid #d1d5db;
  border-radius: 6px;
}

.opsi-item input {
  margin-right: 0.5rem;
}

.kuis-actions {
  display: flex;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.btn-next {
  padding: 0.5rem 1rem;
  background: #6366f1;
  color: white;
  border: none;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
}

.btn-selesai, .btns-kuis1 {
  background: #10b981;
  color: white;
  padding: 0.7rem 2rem;
  border: none;
  border-radius: 6px;
  font-weight: 600;
  font-size: 1rem;
  margin-top: 1rem;
  display: block;
}

.btnb-kuis1 {
  background: #b91610;
  color: white;
  padding: 0.7rem 2rem;
  border: none;
  border-radius: 6px;
  font-weight: 600;
  font-size: 1rem;
  margin-top: 1rem;
  display: block;
}

.btn-selesai:disabled {
  background: #d1d5db;
  cursor: not-allowed;
}
.modal-content {
  border-radius: 12px;
  border: 2px solid #d3c4f3;
  box-shadow: 0 8px 24px rgba(108, 86, 203, 0.2);
}

.modal-header {
  background: #f5f3ff;
  border-bottom: 1px solid #d3c4f3;
}

.modal-footer {
  background: #f9f9ff;
  border-top: 1px solid #e0d6ff;
}

.kode-box {
  background-color: #f8f9ff;
  border: 1px solid #ccc;
  padding: 16px;
  border-radius: 10px;
  font-family: monospace;
  white-space: pre-wrap; /* sudah oke */
  overflow-x: auto;      /* ⬅ penting agar horizontal scroll muncul jika butuh */
  word-wrap: break-word; /* ⬅ agar kode tidak keluar kotak */
  max-width: 100%;       /* ⬅ pastikan tidak melebihi container */
  font-size: 14px;
}

  .drop-zone {
  display: inline-block;
  min-width: 50px; /* ⬅ lebih kecil */
  padding: 2px 4px;
  margin: 3px;
  border: 2px dashed #aaa;
  border-radius: 4px;
  text-align: center;
  font-size: 13px;
  color: #555;
  line-height: 1.4;
}

.drop-zone:hover {
  background-color: #f1f1f1;
}

.drag-item {
  background-color: #eef;
  padding: 8px 10px;
  margin-bottom: 8px;
  cursor: grab;
  border-radius: 5px;
  font-family: monospace;
  font-size: 14px;
  border: 1px solid #99c;
  width: fit-content;
}

.drag-item.dragging {
  opacity: 0.6;
}

.input-fill.small {
  width: 60px;
  font-size: 14px;
  padding: 2px 4px;
  text-align: center;
}





/* HASIL KUIS */
.hasil-kuis-wrapper {
  background: #f7f4ff;
  border: 2px solid #cdbdff;
  border-radius: 14px;
  padding: 35px 30px;
  max-width: 720px;
  margin: auto;
  box-shadow: 0 6px 20px rgba(108, 86, 203, 0.1);
  text-align: center;
}

.hasil-kuis-title {
  font-size: 32px;
  font-weight: 800;
  color: #7c3aed;
  margin-bottom: 5px;
  text-transform: uppercase;
}

.hasil-kuis-subtitle {
  font-size: 18px;
  color: #666;
  margin-bottom: 20px;
}

.hasil-kuis-heading {
  font-size: 18px;
  font-weight: 700;
  color: #444;
  margin: 30px 0 20px;
  position: relative;
}

.hasil-kuis-heading::after {
  content: "";
  display: block;
  width: 100%;
  height: 1px;
  background-color: #ddd;
  margin-top: 15px;
}

.hasil-kuis-section {
  margin-top: 20px;
  margin-bottom: 30px;
  text-align: left;
}

.hasil-kuis-label {
  font-weight: 700;
  font-size: 15px;
  color: #6b21a8;
  margin-bottom: 5px;
}

.hasil-kuis-nilai {
  margin-bottom: 30px;
  /* text-align: center; */
}

.hasil-kuis-score {
  background-color: transparent !important;
  padding: 0 !important;
  display: inline-block;
  border-radius: 0 !important;
  font-size: 60px;
  font-weight: bold;
  color: #dc2626;
  text-align: center !important;
}


.hasil-kuis-score::after {
  content: " poin";
  display: block;
  font-size: 18px;
  color: #888;
  font-weight: 500;
}

#jawaban-benar, #jawaban-salah {
  font-size: 16px;
  font-weight: 600;
  color: #333;
  margin: 3px 0;
}

.hasil-kuis-alert {
  font-size: 15px;
  padding: 14px 20px;
  border-radius: 10px;
  margin: 30px auto;
  max-width: 90%;
}

.alert-success {
  background-color: #ecfdf5;
  color: #065f46;
  border: 1px solid #34d399;
}

.alert-danger {
  background-color: #fee2e2;
  color: #991b1b;
  border: 1px solid #f87171;
}

.nextphp-kuis-btn-group {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.nextphp-btn-mulai,
.nextphp-btn-kembali {
  text-decoration: none;
  padding: 12px 28px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 1rem;
  color: white;
  transition: 0.2s ease-in-out;
}

.nextphp-btn-mulai {
  background-color: #8b5cf6;
}

.nextphp-btn-mulai:hover {
  background-color: #7c3aed;
}

.nextphp-btn-kembali {
  background-color: #d4d4d8;
  color: #1f2937;
}

.nextphp-btn-kembali:hover {
  background-color: #a1a1aa;
  color: white;
}


  .refleksi-jawaban .accordion-button {
    background-color: #f1f5f9;
    transition: background-color 0.3s ease;
  }

  .refleksi-jawaban .accordion-button:hover {
    background-color: #e2e8f0;
  }

  .refleksi-jawaban .list-group-item {
    transition: background-color 0.3s ease;
  }





/* RESPONSIF */
/* Default (Desktop) */
.kuis-body {
  display: flex;
  gap: 2rem;
  flex-direction: row; /* Sidebar kanan */
}

.kuis-sidebar {
  width: 250px;
}

.kuis-content {
  flex: 1;
}


/* Responsif: Tablet & HP */
@media (max-width: 992px) {
  .kuis-body {
    flex-direction: column;
  }

  .kuis-sidebar {
    width: 100%;
    order: -1; /* Sidebar pindah ke atas */
    margin-bottom: 1rem;
  }

  .kuis-content {
    width: 100%;
    order: 1;
  }

  .kuis-nav-buttons {
    grid-template-columns: repeat(6, 1fr); /* versi kamu */
  }

  .kuis-header-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .btn-next,
  .btn-selesai,
  .btns-kuis1,
  .btnb-kuis1 {
    width: 100%;
    margin-bottom: 1rem;
  }
}


/*untuk layar sangat kecil */
@media (max-width: 576px) {
  .kuis-nav-buttons {
    grid-template-columns: repeat(4, 1fr); /* supaya tombol tidak kepadatan */
  }
}


