<!-- start Simple Custom CSS and JS -->
<style type="text/css">
 <style>
/* Base Styles */
.mcq-test-wrapper {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  max-width: 800px;
  margin: 0 auto;
  padding: 20px;
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Instructions Box */
.instructions-box {
  background-color: #f8f9fa;
  border-left: 4px solid #3498db;
  padding: 15px;
  margin-bottom: 20px;
  border-radius: 4px;
}

.instructions-box h3 {
  margin-top: 0;
  color: #2c3e50;
}

.instructions-box ul {
  padding-left: 20px;
}

/* Control Bar */
.mcq-control-bar {
  display: none;
  justify-content: space-between;
  align-items: start;
  padding: 12px 15px;
  background-color: #f5f5f5;
  border-radius: 6px;
  margin-bottom: 20px;
}

.timer-controls {
  display: flex;
  align-items: center;
  gap: 12px;
}

#mcq-timer {
  font-weight: bold;
  color: #2c3e50;
  font-size: 15px;
}

.pause-resume-btn {
  padding: 8px 15px;
  background-color: #3498db;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: background-color 0.2s;
}

.pause-resume-btn:hover {
  background-color: #2980b9;
}

#fullscreen-btn {
  padding: 8px 15px;
  background-color: #2ecc71;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: background-color 0.2s;
}

#fullscreen-btn:hover {
  background-color: #27ae60;
}

/* Question Navigation Index */
.mcq-nav-index {
  display: flex;
  flex-wrap: wrap;
  gap: 5.5px;
  margin-bottom: 20px;
  padding: 10px;
  background-color: #f8f9fa;
  border-radius: 6px;
  overflow-y: scroll;
  max-height: 118px;
}

.mcq-nav-index .nav-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid #ddd;
  background: black;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  transition: all 0.2s;
}

.mcq-nav-index .nav-btn.current {
  border-color: #3498db;
  background-color: #3498db;
  color: white;
  transform: scale(1.1);
}

.mcq-nav-index .nav-btn.answered {
  background-color: #2ecc71;
  color: white;
  border-color: #2ecc71;
}

.mcq-nav-index .nav-btn:hover:not(.answered) {
  background-color: #f1f1f1;
}

/* Questions */
.mcq-question {
  display: none;
  margin-bottom: -20px;
  padding-bottom: 0px;
  border-bottom: 0px solid #eee;
}

.mcq-question.active {
  display: block;
}

.mcq-question strong {
  display: block;
  margin-bottom: 18px;
  font-size: 18px;
  color: #2c3e50;
  line-height: 1.4;
}

/* Options */
.option {
  padding: 12px 16px;
  margin-bottom: 10px;
  border: 1px solid #ddd;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
  line-height: 1.0;
}

.option:hover {
  background-color: #f8f9fa;
}

.option.selected {
  background-color: #e1f5fe;
  border-color: #3498db;
}

.option.correct {
  background-color: #d4edda;
  border-color: #28a745;
  color: #155724;
}

.option.incorrect {
  background-color: #f8d7da;
  border-color: #dc3545;
  color: #721c24;
}

/* Explanation */
.explanation {
  margin-top: 18px;
  padding: 12px;
  background-color: #e7f3ff;
  border-left: 3px solid #3498db;
  border-radius: 6px;
  font-style: italic;
  line-height: 1.5;
}

/* Navigation Controls */
.mcq-navigation {
  display: flex;
  justify-content: space-between;
  margin-top: 25px;
  padding-top: 15px;
  border-top: 1px solid #eee;
  align-items: flex-start;
}

.nav-buttons {
  display: flex;
  gap: 12px;
}

button {
  padding: 10px 18px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 15px;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 5px;
}

.start-test-btn, .resume-btn {
  background-color: #2ecc71;
  color: white;
}

.start-test-btn:hover, .resume-btn:hover {
  background-color: #27ae60;
}

.submit-btn {
  background-color: #e74c3c;
  color: white;
}

.submit-btn:hover {
  background-color: #c0392b;
}

.prev-btn, .next-btn {
  background-color: #3498db;
  color: white;
}

.prev-btn:hover, .next-btn:hover {
  background-color: #2980b9;
}

button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Results */
#mcq-results {
  margin-top: 30px;
}

.result-summary {
  background-color: #f8f9fa;
  padding: 20px;
  border-radius: 8px;
  margin-bottom: 25px;
}

.result-item {
  display: flex;
  justify-content: space-between;
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid #eee;
}

.result-label {
  font-weight: 600;
  color: #2c3e50;
}

.result-value {
  font-weight: 700;
  color: #3498db;
}

/* Review Section */
#review-questions {
  display: none;
  margin-top: 30px;
}

#review-questions h3 {
  color: #2c3e50;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid #3498db;
}

#review-questions .mcq-question {
  margin-bottom: 30px;
  padding: 20px;
  background-color: #f8f9fa;
  border-radius: 8px;
  border-bottom: none;
}

/* Responsive */
@media (max-width: 600px) {
  .mcq-navigation {
    flex-direction: column;
    gap: 12px;
  }
  
  .nav-buttons {
    justify-content: space-between;
  }
  
  .mcq-control-bar {
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
  }
  
  .timer-controls {
    width: 100%;
    justify-content: space-between;
  }
  
  #fullscreen-btn {
    width: 100%;
    justify-content: center;
  }
}

/* Animation for timer warning */
@keyframes pulse {
  0% { background-color: #e74c3c; }
  50% { background-color: #ff6b5b; }
  100% { background-color: #e74c3c; }
}

.timer-warning {
  animation: pulse 1s infinite;
}

/* Fullscreen specific styles */
.mcq-test-wrapper:fullscreen {
  width: 100% !important;
  height: 100% !important;
  background: white;
  padding: 20px;
  overflow-y: auto;
}

.mcq-test-wrapper:-webkit-full-screen {
  width: 100% !important;
  height: 100% !important;
  background: white;
  padding: 20px;
  overflow-y: auto;
}

.mcq-test-wrapper:-moz-full-screen {
  width: 100% !important;
  height: 100% !important;
  background: white;
  padding: 20px;
  overflow-y: auto;
}

.mcq-test-wrapper:-ms-fullscreen {
  width: 100% !important;
  height: 100% !important;
  background: white;
  padding: 20px;
  overflow-y: auto;
}

/* Email Submission Popup (if used instead of prompt) */
.mcq-email-popup {
  background: white;
  border: 1px solid #ccc;
  padding: 20px;
  max-width: 400px;
  margin: 20px auto;
  text-align: center;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

/* Leaderboard Table Styling */
table.mcq-leaderboard {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
}

table.mcq-leaderboard th,
table.mcq-leaderboard td {
  border: 1px solid #ccc;
  padding: 8px 12px;
  text-align: left;
}

table.mcq-leaderboard th {
  background: #3498db;
  color: white;
}
  </style></style>
<!-- end Simple Custom CSS and JS -->