.attendance-modal {
  display: flex;
  justify-content: center;
  align-items: center;
  position: fixed;
  z-index: 100;
  left: 0; top: 0;
  width: 100%; height: 100%;
  background-color: rgba(0,0,0,0.6);
  
  /* Add these for the smooth fade */
  transition: opacity 0.2s ease-in-out, visibility 0.2s;
  opacity: 1;
  visibility: visible;
}

.attendance-modal.hidden {
  /* Replace "display: none" with these to allow the animation to play */
  opacity: 0;
  visibility: hidden;
  pointer-events: none; /* Prevents clicking buttons through the invisible modal */
}

.attendance-modal-content {
  background: var(--card-bg, #fff);
  color: var(--text-color, #222);
  padding: 30px;
  border-radius: 16px;
  width: 90%;   /* much larger */
  max-height: 90%;
  overflow-y: auto;
  position: relative;
  /* Prevent text selection */
  -webkit-user-select: none; /* Safari */
  -ms-user-select: none;      /* IE 10 and 11 */
  user-select: none;          /* Standard syntax */

  /* Optional: change cursor to default to signal it's not selectable */
  cursor: default;
}

.attendance-close {
  position: absolute;
  right: 20px;
  top: 15px;
  font-size: 28px;
  cursor: pointer;
}

.discussion-question-list {
  list-style: none;
  padding: 0;
  margin: 20px 0;
}

.attendance-question-list li {
  padding: 10px 15px;
  margin: 6px 0;
  border-radius: 8px;
  cursor: pointer;
  background: var(--button-bg, #eee);
  transition: background 0.2s ease;
}

.attendance-question-list li:hover {
  background: var(--button-hover, #ccc);
}

.attendance-question-list li.selected {
  background: var(--accent-color, #4caf50);
  color: white;
}

.attendance-question-list li.highlighted {
  background-color: #ffeb3b; /* yellow highlight */
  color: #222;
}

.attendance-question-list li.highlighted.selected {
  background-color: #ff9800; /* blended color */
  color: white;
}
