/* Make entire option div look clickable */
.option {
    cursor: pointer;       /* pointer cursor like links/radio */
    transition: background 0.2s ease;
}

.option:hover {
    background-color: #f0f0f0;  /* subtle hover effect */
}

/* Make progress bar rounded and visible */
/* Progress container must be relative for overlay text */
#questionProgressContainer {
    position: relative;
}

/* Question counter text on progress bar */
.progress-count-text {
    position: absolute;
    right: 10px;
    top: 0;
    height: 100%;
    display: flex;
    align-items: center;
    font-weight: 600;
    font-size: 0.9rem;
    color: #ffffff;
    pointer-events: none; /* allows clicking progress segments if added later */
}

/* Optional: small separator between segments */
.progress-bar {
    border-right: 1px solid #ffffff;
    background-color: #d4d6d8;
}

/* Optional: smoother visual */
.progress {
    overflow: hidden;
    height: 1.2rem;
}

.sidebar {
  font-size: 14px;
}

.question-container {
  margin-top: 10px;
}

/* Align options horizontally */
.option {
  display: flex;
  align-items: center;
}

.option input[type="checkbox"] {
  margin-right: 10px;
}

.navigation {
  margin-top: 20px;
  display: flex;
  justify-content: space-between;
}

button {
  padding: 10px 15px;
  background-color: #007bff;
  color: white;
  border: none;
  cursor: pointer;
}

button:disabled {
  background-color: #cccccc;
}

/* Explanation Drawer */
.explanation-drawer {
  margin-top: 20px;
  padding: 15px;
  border-top: 2px solid #ccc;
  background-color: #eeedec;
  word-wrap: break-word;
}

/* Option highlighting */
label {
  display: inline;
  padding: 10px;
  margin-top: 5px;
  border-radius: 4px;
}

input[type="radio"]:checked+label {
  font-weight: bold;
}

.questionDescription {
  color: #233672;
  font-family: "Roboto Condensed", "Roboto", sans-serif;
}

.correct-ans {
  background: #dff6dd !important;
  border: 1px solid #107c10;
}

.incorrect-ans {
  background: #fde7e9 !important;
  border: 1px solid #a80000;
}


/*Radio and checkbox customization*/
.custom-radio,
.custom-checkbox {
  display: none;
}

/* Common styles for both custom radio buttons and checkboxes */
.custom-radio+label,
.custom-checkbox+label {
  position: relative;
  cursor: pointer;
  display: inline-block;
  padding-left: 40px;
  line-height: 20px;
}

.custom-radio+label::before,
.custom-checkbox+label::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  width: 30px;
  height: 30px;
  background-color: #f1eeee;
  border: 2px solid #333;
  transform: translateY(-50%);
}

.custom-radio:disabled+label::before,
.custom-checkbox:disabled+label::before {
  border: 2px solid #fcfcfc;
}

/* Specific styles for custom radio buttons */
.custom-radio+label::before {
  border-radius: 50%;
}

.custom-radio:checked+label::before {
  background-color: #007bff;
  border-color: #007bff;
}

.custom-radio:checked+label::after {
  font-family: Arial, sans-serif;
  content: '\2714';
  color: white;
  font-size: 20px;
  position: absolute;
  top: 50%;
  left: 15px;
  transform: translate(-50%, -50%);
}

/* Specific styles for custom checkboxes */
.custom-checkbox+label::before {
  border-radius: 4px;
}

.custom-checkbox:checked+label::before {
  background-color: #007bff;
  border-color: #007bff;
}

.custom-checkbox:checked+label::after {
  font-family: Arial, sans-serif;
  content: '\2714';
  color: white;
  font-size: 20px;
  position: absolute;
  top: 50%;
  left: 15px;
  transform: translate(-50%, -50%);
}

/* For incorrect answer X sign */
.custom-checkbox.incorrect+label::after {
  content: '\2716';
  color: white;
  font-size: 20px;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.disabled-btn {
  pointer-events: none; /* Prevents click events */
  opacity: 0.5; /* Makes it look disabled */
}

#questionStatusContainer span{
  width: 30px;
  font-size: small;
  text-align: center;
}

#questionStatusContainer{
  gap: 5px;
}
