/* Admin Events — most styling uses shared admin classes from admin_runs.css */

/* RSVP toggle rows */
.rsvp-toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  border-bottom: 1px solid var(--color-border, #e5e5e5);
}

.rsvp-toggle-row:last-child {
  border-bottom: none;
}

.rsvp-toggle-label {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.rsvp-toggle-label-title {
  font-size: 15px;
  font-weight: 500;
  color: var(--color-text, #111);
}

.rsvp-toggle-label-hint {
  font-size: 13px;
  color: var(--color-text-secondary, #666);
}

.rsvp-toggle-switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
  flex-shrink: 0;
  cursor: pointer;
}

.rsvp-toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
  position: absolute;
}

.rsvp-toggle-track {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 24px;
  background-color: #059669;
  transition: background-color 0.2s ease;
}

.rsvp-toggle-thumb {
  position: absolute;
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s ease;
  transform: translateX(20px);
}

/* When checked (disabled), toggle is OFF (red/gray) */
.rsvp-toggle-switch input:checked ~ .rsvp-toggle-track {
  background-color: #ccc;
}

.rsvp-toggle-switch input:checked ~ .rsvp-toggle-thumb {
  transform: translateX(0);
}
