#questionText {
  font-weight: 500;
}

.form-check {
  padding: 10px;
  border-radius: 10px;
  transition: 0.2s;
}

.form-check:hover {
  background-color: #f1f3f5;
}

/*  */
/* ================= EXAM CARD ================= */

.exam-card {
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.35s ease;
  background: #fff;
}

.exam-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.18);
}

/* ================= IMAGE WRAPPER ================= */

.img-wrapper {
  position: relative;
}

.img-wrapper img {
  height: 180px;
  width: 100%;
  object-fit: cover;
}

/* ================= GRADIENT OVERLAY ================= */

.gradient-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.65),
    rgba(0, 0, 0, 0.1)
  );
}

/* ================= CATEGORY BADGE ================= */

.exam-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  font-size: 0.75rem;
  padding: 6px 10px;
  border-radius: 20px;
}

/* ================= CARD BODY ================= */

.exam-card .card-body {
  padding: 20px;
}

.exam-card h5 {
  font-weight: 600;
  margin-bottom: 8px;
}

.exam-card p {
  font-size: 0.9rem;
  color: #666;
}

/* ================= EXAM TIMER ================= */
.timer-display {
  background: linear-gradient(135deg, #f4b41a, #f59e0b);
  padding: 8px 18px;
  border-radius: 20px;
  font-weight: 700;
  font-size: 16px;
  color: #182848;
  box-shadow: 0 4px 12px rgba(244, 180, 26, 0.4);
  letter-spacing: 1px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.timer-display i {
  font-size: 18px;
}

@keyframes timerPulse {
  0%, 100% { transform: scale(1); box-shadow: 0 6px 20px rgba(255, 71, 87, 0.6); }
  50% { transform: scale(1.05); box-shadow: 0 8px 25px rgba(255, 71, 87, 0.8); }
}

/* ================= QUESTION PALETTE ================= */

.palette-wrapper {
  background: #ffffff;
  position: sticky;
  top: 56px; /* navbar height */
  z-index: 99;
}

.palette-scroll {
  overflow-x: auto;
  white-space: nowrap;
  scrollbar-width: thin;
}

/* scrollbar (chrome) */
.palette-scroll::-webkit-scrollbar {
  height: 6px;
}

.palette-scroll::-webkit-scrollbar-thumb {
  background: #ced4da;
  border-radius: 10px;
}
/* ================= PALETTE ITEMS ================= */

.palette-item {
  min-width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 2px solid #dee2e6;
  background: #f8f9fa;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.palette-item:hover {
  transform: scale(1.1);
  background: #e9ecef;
}

/* current question */
.palette-item.active {
  border-color: #0d6efd;
  background: #0d6efd;
  color: #fff;
}

/* answered */
.palette-item.answered {
  background: #198754;
  border-color: #198754;
  color: #fff;
}

/* visited but not answered */
.palette-item.visited {
  background: #ffc107;
  border-color: #ffc107;
  color: #000;
}
/* ================= QUESTION CARD ================= */

.card.shadow {
  border-radius: 18px;
}

#questionText {
  line-height: 1.5;
}
/* ================= NAV BUTTONS ================= */

#prevBtn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

#prevBtn:disabled {
  background-color: #6c757d;
  border-color: #6c757d;
  opacity: 0.6;
}
#submitAlert {
  min-width: 260px;
  z-index: 1055; /* bootstrap modal se bhi upar */
}

/* anti - cheating */
#antiCheatModal .modal-content {
  background: linear-gradient(135deg, #0f172a, #1e293b);
  color: #ffffff;
  border-radius: 18px;
}

#antiCheatModal .modal-title {
  color: #facc15; /* yellow */
  font-weight: 600;
}

#antiCheatModal .modal-body {
  color: #e5e7eb;
  font-size: 15px;
  line-height: 1.6;
}

#antiCheatModal .btn-warning {
  background: #facc15;
  color: #000;
  font-weight: 600;
  border-radius: 12px;
}



