/* ======== CBT ADMIN STYLES ======== */
.wrap h1 {
  color: #0073aa;
  border-bottom: 2px solid #0073aa;
  padding-bottom: 6px;
}

.wrap table.widefat {
  border-collapse: collapse;
  width: 100%;
}

.wrap table.widefat th {
  background: #0073aa;
  color: white;
  text-align: left;
  padding: 8px;
}

.wrap table.widefat td {
  border: 1px solid #ddd;
  padding: 6px;
}

/* ======== FRONTEND STYLES ======== */
.cbt-exams-list {
  max-width: 700px;
  margin: 20px auto;
  background: #fff;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.cbt-exams-list ul {
  list-style: none;
  padding: 0;
}

.cbt-exams-list li {
  background: #f4f6f9;
  margin: 8px 0;
  padding: 12px;
  border-radius: 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cbt-exams-list a {
  background: #0073aa;
  color: #fff;
  padding: 6px 14px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: bold;
  transition: 0.2s;
}

.cbt-exams-list a:hover {
  background: #005f82;
}

#cbt_exam_container {
  max-width: 800px;
  margin: 20px auto;
  background: #fff;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

#cbt_timer {
  text-align: right;
  font-weight: bold;
  color: #0073aa;
}

.cbt-question {
  background: #f8f9fa;
  padding: 15px;
  margin: 10px 0;
  border-radius: 8px;
}

.cbt-option {
  margin-left: 20px;
}

/* Tombol Submit */
#cbt_submit_btn {
  display: inline-block;
  background: #0073aa;
  color: #fff;
  border: none;
  padding: 10px 18px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 16px;
}

#cbt_submit_btn:hover {
  background: #005f82;
}

/* ====== DAFTAR TES ====== */
.cbt-exam-list-wrapper{
  max-width:700px;
  margin:20px auto;
}
.cbt-exam-card{
  background:#f4f6f9;
  margin:10px 0;
  padding:15px;
  border-radius:10px;
  display:flex;
  justify-content:space-between;
  align-items:center;
}

/* ====== HALAMAN UJIAN ====== */
.cbt-exam-start{
  max-width:1000px;
  margin:20px auto;
  display:flex;
  gap:20px;
}
.cbt-exam-left{
  flex:3;
  background:#fff;
  padding:20px;
  border-radius:12px;
  box-shadow:0 2px 6px rgba(0,0,0,.1);
}
.cbt-exam-right{
  flex:1;
  background:#f8f9fa;
  padding:15px;
  border-radius:12px;
}

#cbt_timer{
  font-weight:bold;
  color:#0073aa;
}


/* ===== PANEL STATUS SOAL (FINAL FIX) ===== */
#cbt-question-list{
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  margin-top: 10px;
}

#cbt-question-list .q-item{
  width:36px;
  height:36px;
  background:#e9ecef;   /* abu = belum dijawab */
  border:1px solid #ccc;
  border-radius:6px;
  display:flex;
  align-items:center;
  justify-content:center;
  font-weight:bold;
  cursor:pointer;
}

/* soal aktif */
#cbt-question-list .q-item.active{
  background:#0073aa !important;  /* biru */
  color:#fff !important;
  border-color:#0073aa;
}

/* soal sudah dijawab */
#cbt-question-list .q-item.done{
  background:#46b450 !important;  /* hijau */
  color:#fff !important;
  border-color:#46b450;
}

/* aktif + sudah dijawab */
#cbt-question-list .q-item.active.done{
  background:#2e7d32 !important;  /* hijau tua */
}

/* ===== ADMIN TABLE CBT ===== */
.cbt-admin-table{
  width:100%;
  border-collapse:collapse;
  background:#fff;
  margin-top:15px;
}

.cbt-admin-table thead th{
  background:#0073aa;
  color:#fff;
  padding:10px;
  text-align:left;
}

.cbt-admin-table td{
  border:1px solid #ddd;
  padding:8px;
}

.cbt-admin-table tbody tr:nth-child(even){
  background:#f9fbfd;
}

.cbt-admin-table .button-warning{
  background:#f59e0b;
  color:#fff;
}

.cbt-admin-table .button-danger{
  background:#dc2626;
  color:#fff;
}

/* ===== HASIL TES USER ===== */
.cbt-result-table{
  width:100%;
  border-collapse:collapse;
  margin-top:15px;
  background:#fff;
  box-shadow:0 2px 6px rgba(0,0,0,.05);
}

.cbt-result-table th{
  background:#16a34a;
  color:#fff;
  padding:10px;
  text-align:left;
}

.cbt-result-table td{
  border:1px solid #ddd;
  padding:8px;
}

.cbt-result-table tr:nth-child(even){
  background:#f6fff9;
}


