/* TEMA DARK GALACTIC */
body {
  font-family: "Poppins", sans-serif;
  margin: 0;
  padding: 20px;
  background: radial-gradient(circle at top right, #2b1055, #7597de);
  background-color: #1e1e2e;
  color: #e0e0e0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.container {
  width: 95%;
  max-width: 1200px;
  background: rgba(30, 30, 46, 0.9);
  padding: 30px;
  border-radius: 20px;
  box-shadow: 0 0 40px rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

h1 {
  font-family: "Orbitron", sans-serif;
  color: #00f2ff;
  text-align: center;
  margin-bottom: 30px;
  letter-spacing: 2px;
}

.header-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 10px;
}

.btn-back {
  text-decoration: none;
  background: #444;
  color: white;
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: bold;
  transition: 0.3s;
}
.btn-back:hover {
  background: #666;
}

/* TOMBOL DOWNLOAD PDF (BARU) */
.btn-print {
  background: linear-gradient(45deg, #ff9800, #ff5722);
  color: white;
  padding: 10px 20px;
  border: none;
  border-radius: 8px;
  font-weight: bold;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: 0.3s;
}
.btn-print:hover {
  transform: scale(1.05);
  box-shadow: 0 0 15px rgba(255, 87, 34, 0.5);
}

.table-wrapper {
  overflow-x: auto;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 10px;
  padding: 10px;
}

/* Base Table Style */
table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 10px;
}

/* Default TH/TD */
th,
td {
  padding: 15px;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

th {
  background: rgba(0, 242, 255, 0.1);
  color: #00f2ff;
  font-family: "Orbitron", sans-serif;
}

tr:hover {
  background: rgba(255, 255, 255, 0.05);
}

.avatar-mini {
  width: 35px;
  height: 35px;
  border-radius: 50%;
  vertical-align: middle;
  margin-right: 10px;
}

.score-val {
  font-weight: bold;
  color: #ffeb3b;
}

select.role-select {
  padding: 5px 10px;
  border-radius: 5px;
  border: none;
  font-weight: bold;
  cursor: pointer;
}
select.role-select:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  background: #222;
  border: 1px solid #555;
}

.search-box {
  width: 100%;
  padding: 12px;
  margin-bottom: 20px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid #555;
  color: white;
  border-radius: 8px;
}

.badge-info {
  font-size: 0.8rem;
  padding: 5px 10px;
  border-radius: 5px;
  border: 1px solid;
  display: inline-block;
  margin-bottom: 10px;
}

.text-center {
  text-align: center;
}
.mb-20 {
  margin-bottom: 20px;
}

/* --- Tambahan Style untuk Input Soal --- */
.container-input {
  background: rgba(43, 16, 85, 0.5); /* Ungu gelap transparan */
  padding: 20px;
  border-radius: 15px;
  margin-top: 20px;
  border: 1px solid #00f2ff;
}

.container-input h2 {
  color: #fff;
  font-size: 1.4rem;
  margin-bottom: 15px;
}

.input-row {
  display: flex;
  gap: 15px;
  margin-bottom: 20px;
  align-items: center;
  flex-wrap: wrap; /* Agar responsif di layar kecil */
}

.input-row label {
  font-weight: bold;
  color: #00f2ff;
  flex-shrink: 0;
}

.input-row select {
  padding: 8px;
  border-radius: 5px;
  border: none;
  background: #333;
  color: white;
}

textarea,
input[type="text"].soal-input {
  width: 100%;
  padding: 10px;
  margin-top: 5px;
  margin-bottom: 10px;
  border-radius: 8px;
  border: 1px solid #555;
  background: #111;
  color: white;
}



table {
  font-size: 0.85rem;
}
th,
td {
  padding: 10px 5px;
  text-align: center;
}
.col-nama {
  text-align: left;
  min-width: 150px;
}

/* Warna Header Khusus Agama */
th.agama {
  background-color: #16a085;
  color: white;
}

/* Class Hidden (PENTING untuk Toggle Panel) */
.hidden {
  display: none !important;
}

/* =========================================
   PEMBERSIHAN INLINE STYLE (Tambahan Baru)
   ========================================= */

/* 1. Header Kedua (Tombol Buka Panel) */
.header-actions.secondary-header {
  margin-top: 15px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 15px;
  justify-content: flex-start;
}

/* 2. Wrapper Input Group */
.input-group-wrapper {
  margin-bottom: 15px;
}

/* 3. Label Cyan Tebal */
.label-cyan {
  color: #00f2ff;
  font-weight: bold;
  display: block;
  margin-bottom: 5px;
}

/* 4. Input dengan Border Orange */
.input-border-orange {
  border: 1px solid #ff9800 !important;
}

/* 5. Input dengan Margin Bawah */
.mb-20 {
  margin-bottom: 20px;
}

/* 6. Text Kecil Abu-abu */
.text-muted-small {
  color: #aaa;
  font-size: 0.9rem;
}

/* 7. Pesan Kuning (Pilih Game) */
.text-info-yellow {
  color: #ffeb3b;
  margin-top: 20px;
}

/* 8. Container Prioritas (Border Orange) */
.container-priority {
  margin-top: 30px;
  padding: 15px;
  border-color: #ff9800;
}

/* 9. Text Deskripsi Abu Muda */
.text-desc {
  color: #ccc;
  font-size: 0.8rem;
  margin-bottom: 10px;
}

/* 10. Label Orange */
.label-orange {
  color: #ff9800;
  font-weight: 600;
}

/* 11. Status Display (Current Setting) */
.status-display {
  font-size: 0.85rem;
  color: #00f2ff;
  margin-left: 10px;
}

/* 12. Helper Utilitas */
.mt-20 {
  margin-top: 20px;
}
.flex-wrap {
  flex-wrap: wrap;
}

/* --- CLASS KHUSUS JAVASCRIPT INJECTION --- */
/* (Class ini dipakai di dalam string JS) */

.error-msg {
  color: red; 
  margin-top: 20px;
}

.flex-align-center {
  display: flex; 
  align-items: center;
}

.text-teal-bold {
  color: #16a085; 
  font-weight: bold;
}

.text-red-bold {
  color: #ef473a; 
  font-weight: bold; /* Digunakan juga untuk ADMIN */
}

.text-green-bold {
  color: #38ef7d;
  border-color: #38ef7d; /* Digunakan untuk GURU */
}