.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;
}

.attendance-question-list {
    display: flex;
    justify-content: center;
    padding: 24px 12px 30px;
}

.attendance-question-list .discussion-sticky-note {
    width: min(700px, 100%);
}

.attendance-voice-actions {
    flex-shrink: 0;
    text-align: center;
    margin-top: 10px;
}
