/* MAIN LAYOUT */
.exam-container {
  display: flex;
  min-height: 100vh;
  background: #f5f7fa;
  font-family: Arial, Helvetica, sans-serif;
}

/* LEFT PANEL */
.left-panel {
  width: 260px;
  background: #ffffff;
  padding: 20px;
  border-right: 1px solid #eee;
}

.panel-card h3 {
  font-size: 16px;
  margin-bottom: 20px;
}

/* QUESTION NAV GRID */
.question-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
}

.question-box-nav {
  height: 38px;
  width: 38px;
  background: #e9ecef;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 500;
  transition: 0.2s;
}

.question-box-nav:hover {
  background: #dfe3e7;
}

.question-box-nav.active {
  background: #1e2820;
  color: white;
}

.question-box-nav.answered {
  background: #28a745;
  color: white;
}

/* RIGHT PANEL */
.right-panel {
  flex: 1;
  padding: 40px;
}

/* TOP BAR */
.top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
}

.timer {
  background: #1e2820;
  color: white;
  padding: 8px 14px;
  border-radius: 8px;
  font-weight: 500;
}

.timer.danger {
  background: #dc3545;
}

/* QUESTION CARD */
.question-card {
  background: white;
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}

/* OPTIONS */
.options-wrapper {
  margin-top: 20px;
}

.option {
  display: flex;
  align-items: center;
  padding: 14px;
  margin-bottom: 12px;
  background: #f1f3f5;
  border-radius: 8px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: 0.2s;
}

.option:hover {
  background: #e9ecef;
}

.option input {
  display: none;
}

/* CUSTOM RADIO */
.custom-radio {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid #777;
  margin-right: 12px;
  position: relative;
}

/* RADIO SELECTED */
.option input:checked + .custom-radio {
  border-color: #1e2820;
}

.option input:checked + .custom-radio::after {
  content: "";
  width: 10px;
  height: 10px;
  background: #1e2820;
  border-radius: 50%;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

/* ANSWER STATES */
.option.correct {
  background: #e6f9ec;
  border-color: #28a745;
}

.option.wrong {
  background: #fdeaea;
  border-color: #dc3545;
}

/* BUTTONS */
.bottom-buttons {
  margin-top: 20px;
  text-align: right;
}

.next-btn {
  padding: 10px 20px;
  background: #1e2820;
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: 0.2s;
}

.next-btn:hover {
  background: #2e3c30;
}

/* RESULT OVERLAY */
.result-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

/* RESULT MODAL */
.result-modal {
  background: white;
  width: 95%;
  max-width: 450px;
  padding: 35px 30px;
  border-radius: 20px;
  text-align: center;
  animation: slideUp 0.4s ease;
  box-shadow: 0 20px 60px rgba(0,0,0,0.2);
}

/* MODAL ANIMATION */
@keyframes slideUp {
  from {
    transform: translateY(40px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.result-header h2 {
  margin-bottom: 5px;
}

.result-sub {
  font-size: 14px;
  color: #777;
  margin-bottom: 25px;
}

/* SCORE CIRCLE */
.score-circle {
  width: 130px;
  height: 130px;
  margin: 0 auto 25px;
  border-radius: 50%;
  background: conic-gradient(
    #1e2820 calc(var(--percent) * 1%),
    #e9ecef 0%
  );
  display: flex;
  align-items: center;
  justify-content: center;
}

.score-inner {
  width: 95px;
  height: 95px;
  background: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  font-weight: 700;
}

/* STATS */
.result-stats {
  display: flex;
  justify-content: space-between;
  margin-bottom: 20px;
}

.stat-box {
  flex: 1;
  background: #f8f9fa;
  padding: 12px;
  border-radius: 12px;
  margin: 0 5px;
}

.stat-box span {
  display: block;
  font-size: 12px;
  color: #666;
}

.stat-box strong {
  font-size: 18px;
}

.stat-box.correct {
  background: #e6f9ec;
}

.stat-box.wrong {
  background: #fdeaea;
}

/* PERFORMANCE BADGE */
.badge {
  display: inline-block;
  padding: 8px 16px;
  border-radius: 30px;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 20px;
}

.badge.excellent {
  background: #e6f9ec;
  color: #28a745;
}

.badge.good {
  background: #fff4e6;
  color: #ff9800;
}

.badge.poor {
  background: #fdeaea;
  color: #dc3545;
}

/* RESULT BUTTONS */
.result-actions {
  display: flex;
  gap: 10px;
}

.finish-btn {
  flex: 1;
  padding: 10px;
  border-radius: 10px;
  border: none;
  background: #1e2820;
  color: white;
  cursor: pointer;
}

.finish-btn:hover {
  background: #2e3c30;
}

/* RESPONSIVE */
@media (max-width: 768px) {

  .exam-container {
    flex-direction: column;
  }

  .left-panel {
    width: 100%;
    border-right: none;
    border-bottom: 1px solid #eee;
  }

  .right-panel {
    padding: 20px;
  }

}

.quiz-input{
width:100%;
padding:12px;
margin-top:15px;
margin-bottom:20px;
border-radius:8px;
border:1px solid #ddd;
font-size:14px;
}