/* ================================
   GLOBAL BASE
================================ */
body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto;
  background: #eef2f6;
  color: #1a1a1a;
}

/* ================================
   HEADER (TIMER BAR)
================================ */
.ibps-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: linear-gradient(90deg, #1f3c88, #2b55c7);
  color: #fff;
  padding: 12px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
}

#timer {
  font-size: 15px;
  background: rgba(255,255,255,0.15);
  padding: 6px 10px;
  border-radius: 6px;
}

/* ================================
   PALETTE (TOP – CBT STYLE)
================================ */
.ibps-palette-top {
  position: sticky;
  top: 52px;
  z-index: 90;
  display: flex;
  gap: 8px;
  padding: 10px;
  background: #ffffff;
  overflow-x: auto;
  border-bottom: 1px solid #ddd;
}

.pal-btn {
  min-width: 38px;
  height: 38px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  border: 1px solid #bbb;
  background: #f2f2f2;
  color: #333;
}

/* Palette states */
.pal-btn.answered {
  background: #2e7d32;
  color: #fff;
  border-color: #2e7d32;
}

.pal-btn.marked {
  background: #f9a825;
  color: #000;
  border-color: #f9a825;
}

.pal-btn.visited {
  background: #90caf9;
  color: #000;
}

.pal-btn.not-visited {
  background: #e0e0e0;
}

/* ================================
   QUESTION AREA
================================ */
.ibps-question-area {
  padding: 18px 16px 80px;
}

.qtext {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 16px;
}

/* ================================
   OPTIONS
================================ */
.option {
  border: 1px solid #cfd8dc;
  padding: 14px;
  margin-bottom: 12px;
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
  transition: all 0.2s ease;
}

.option:hover {
  background: #f5f9ff;
  border-color: #1f3c88;
}

.option.selected {
  background: #e3f2fd;
  border-color: #1f3c88;
  box-shadow: 0 0 0 1px #1f3c88 inset;
}

/* ================================
   BOTTOM ACTION BAR
================================ */
.ibps-bottom-bar {
  position: sticky;
  bottom: 0;
  z-index: 100;
  display: flex;
  gap: 10px;
  padding: 12px;
  background: #ffffff;
  border-top: 1px solid #d0d0d0;
}

.ibps-bottom-bar button {
  flex: 1;
  padding: 14px 10px;
  font-size: 14px;
  font-weight: 600;
  border-radius: 10px;
  border: none;
  cursor: pointer;
}

/* Buttons */
.ibps-bottom-bar button:nth-child(1) {
  background: #eeeeee;
  color: #333;
}

.ibps-bottom-bar button:nth-child(2) {
  background: #fff3cd;
  color: #8a6d3b;
}

.ibps-bottom-bar .primary {
  background: linear-gradient(135deg, #1f3c88, #2b55c7);
  color: #fff;
}

.ibps-bottom-bar .danger {
  background: linear-gradient(135deg, #c62828, #e53935);
  color: #fff;
}

/* ================================
   RESULT PAGE (GREEN / RED)
================================ */
.result-box h2 {
  text-align: center;
  color: #1f3c88;
}

.result-q {
  background: #ffffff;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 16px;
}

.result-q .ua {
  color: #c62828;
  font-weight: 600;
}

.result-q .ca {
  color: #2e7d32;
  font-weight: 600;
}

.result-q .exp {
  background: #f5f7fa;
  padding: 10px;
  border-radius: 6px;
  margin-top: 8px;
}

/* ================================
   MOBILE OPTIMIZATION
================================ */
@media (max-width: 768px) {
  .qtext {
    font-size: 15px;
  }

  .ibps-bottom-bar button {
    font-size: 13px;
    padding: 12px 8px;
  }
}
/* ===== Result Review Options ===== */
.res-option {
  border: 1px solid #ddd;
  padding: 10px;
  margin-bottom: 8px;
  border-radius: 6px;
  background: #fafafa;
}

.res-option.correct {
  background: #e6f4ea;
  border-color: #2e7d32;
  color: #2e7d32;
  font-weight: 600;
}

.res-option.wrong {
  background: #fdecea;
  border-color: #c62828;
  color: #c62828;
  font-weight: 600;
}
/* ================================
   RESULT SUMMARY BOX
================================ */
.result-summary {
  display: flex;
  gap: 12px;
  margin: 20px 0;
}

.sum-card {
  flex: 1;
  padding: 14px;
  border-radius: 10px;
  text-align: center;
  font-weight: 600;
}

.sum-num {
  font-size: 22px;
  margin-bottom: 4px;
}

.sum-card.correct {
  background: #e6f4ea;
  color: #2e7d32;
}

.sum-card.wrong {
  background: #fdecea;
  color: #c62828;
}

.sum-card.unattempted {
  background: #f1f3f4;
  color: #555;
}
/* ================================
   RESULT TITLE & SCORE UI
================================ */
.result-title {
  text-align: center;
  font-size: 22px;
  font-weight: 700;
  color: #1f3c88;
  margin-bottom: 12px;
}

.score-card {
  background: linear-gradient(135deg, #1f3c88, #2b55c7);
  color: #fff;
  text-align: center;
  padding: 18px;
  border-radius: 14px;
  margin: 15px 0 25px;
}

.score-label {
  font-size: 14px;
  opacity: 0.9;
}

.score-value {
  font-size: 34px;
  font-weight: 800;
  margin-top: 6px;
}


