/**
 * @file
 * Styles for FullCalendar loading throbber.
 */

.fullcalendar-loading-throbber {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1000;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  background: rgba(255, 255, 255, 0.95);
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  opacity: 0;
  transition: opacity 0.3s ease-out;
}

.fullcalendar-loading-throbber.is-loading {
  display: flex;
  opacity: 1;
}

.fullcalendar-loading-spinner {
  width: 48px;
  height: 48px;
  border: 4px solid #e5e7eb;
  border-top-color: var(--color-primary, #3b82f6);
  border-radius: 50%;
  animation: fullcalendar-spin 0.8s linear infinite;
}

@keyframes fullcalendar-spin {
  to {
    transform: rotate(360deg);
  }
}

.fullcalendar-loading-text {
  color: #374151;
  font-size: 0.95rem;
  font-weight: 500;
}

/* Ensure the calendar wrapper has position context */
.view-sse-sessions-calendar-global .view-content,
.fullcalendar-view-wrapper {
  position: relative;
}
