.spinner-border {
  display: inline-block;
  width: 1rem;
  height: 1rem;
  vertical-align: text-bottom;
  border: 0.15em solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: spinner-border 0.75s linear infinite;
}

@keyframes spinner-border {
  100% {
    transform: rotate(360deg);
  }
}

/* ------------------------ */
/* Default hover over a student */
.draggable:hover {
  background-color: #f5f5f5; /* light grey hover */
  cursor: grab;
}

/* Change cursor when dragging */
.draggable.dragging {
  opacity: 0.5;            /* semi-transparent while dragging */
  cursor: grabbing;         /* indicates grabbing */
  background-color: #ffe4b2; /* light orange while dragging */
}

/* Optional: smooth hover transition for students */
.draggable {
  transition: background-color 0.2s, transform 0.2s;
}

/* Optional: slightly scale student on hover */
.draggable:hover {
  transform: scale(1.02);
}

.tooltip-container {
  position: relative;
  display: inline-block;
  cursor: pointer;
}

.tooltip-container .tooltip-text {
  visibility: hidden;
  width: max-content;
  background-color: #333;
  color: #fff;
  text-align: center;
  border-radius: 4px;
  padding: 4px 8px;
  position: absolute;
  z-index: 10;
  bottom: 125%; /* above the icon */
  left: 50%;
  transform: translateX(-50%);
  opacity: 0;
  transition: opacity 0.2s;
  white-space: nowrap;
}

.tooltip-container:hover .tooltip-text {
  visibility: visible;
  opacity: 1;
}