/* Exam custom styles (AdminLTE tweaks + exam UI) */

body.skin-blue .main-header .logo {
  background-color: #367fa9;
}

.small-box .icon i {
  font-size: 70px;
}

/* Exam interface */
.exam-body {
  background: #e9eef3;
  margin: 0;
}
.exam-header {
  background: #2c3e50;
  color: #fff;
  padding: 12px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 100;
}
.exam-header .text-muted {
  color: #b8c4d0 !important;
}
.exam-header-right {
  display: flex;
  align-items: center;
  gap: 12px;
}
.exam-timer {
  font-size: 22px;
  font-weight: bold;
  background: #1a252f;
  padding: 4px 14px;
  border-radius: 4px;
  letter-spacing: 1px;
}
.exam-timer.danger {
  background: #dd4b39;
}
.exam-wrap {
  display: flex;
  gap: 20px;
  padding: 20px;
  align-items: flex-start;
}
.exam-main {
  flex: 1;
  background: #fff;
  border-radius: 4px;
  padding: 20px;
  min-height: 60vh;
}
.exam-side {
  width: 280px;
  background: #fff;
  border-radius: 4px;
  padding: 20px;
}
.exam-question h4 {
  margin-top: 0;
}
.question-text {
  font-size: 17px;
  margin-bottom: 16px;
}
.exam-option {
  display: block;
  padding: 10px 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  margin-bottom: 8px;
  cursor: pointer;
  font-weight: normal;
}
.exam-option:hover {
  background: #f4f8fb;
}
.exam-option input {
  margin-right: 8px;
}
.exam-actions {
  margin-top: 20px;
  padding-top: 15px;
  border-top: 1px solid #eee;
}
.exam-actions .btn {
  margin-right: 8px;
}
.palette {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.palette-btn {
  width: 36px;
  height: 36px;
  border: 1px solid #ccc;
  background: #fff;
  border-radius: 3px;
  font-weight: bold;
}
.palette-btn.answered {
  background: #00a65a;
  color: #fff;
  border-color: #00a65a;
}
.palette-btn.current {
  outline: 2px solid #3c8dbc;
}
.legend {
  margin-top: 12px;
  font-size: 12px;
  color: #555;
}
.legend .dot {
  display: inline-block;
  width: 12px;
  height: 12px;
  border: 1px solid #ccc;
  margin-right: 6px;
  vertical-align: middle;
}
.legend .dot-answered {
  background: #00a65a;
  border-color: #00a65a;
}
.legend .dot-current {
  outline: 2px solid #3c8dbc;
}

/* Candidate result */
.result-summary {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
  margin-bottom: 15px;
}
.result-box {
  flex: 1;
  min-width: 120px;
  text-align: center;
  border: 1px solid #e0e6ea;
  border-radius: 4px;
  padding: 15px;
  background: #f9fbfd;
}
.result-box .value {
  font-size: 26px;
  font-weight: bold;
  color: #2c3e50;
}
.result-box .label-text {
  color: #7a8b99;
  font-size: 13px;
}
.review-item {
  border-bottom: 1px solid #eee;
  padding: 10px 0;
}
.review-item:last-child {
  border-bottom: none;
}

@media (max-width: 768px) {
  .exam-wrap {
    flex-direction: column;
  }
  .exam-side {
    width: 100%;
  }
}
