/* ============================================================
   Shared admin icon utilities
   ============================================================ */
.btnSpinnerIcon {
  margin-right: 6px;
}
.statusMsgIcon {
  margin-right: 8px;
}

/* ============================================================
   AdminEventsPage
   ============================================================ */
.adminEventListHeader {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.adminEventListSubText {
  color: #6e6e73;
  font-size: 0.9rem;
}

.adminEventTabs {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  background: #f5f5f7;
  border: 1px solid #d2d2d7;
  border-radius: 8px;
}

.adminEventTab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 96px;
  min-height: 36px;
  padding: 8px 14px;
  color: #1d1d1f;
  text-decoration: none;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 600;
}

.adminEventTab--active {
  background: #ffffff;
  color: #007aff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
}

.adminEventActionRow {
  display: flex;
  justify-content: center;
  gap: 4px;
  flex-wrap: wrap;
}

/* ── Event row clickable ── */
.adminEventRowClickable { cursor: pointer; }
.adminEventRowClickable:hover td { background: #eef4ff !important; }

/* ── Icon-only action buttons in table ── */
.adminIconBtn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 6px;
  font-size: 0.85rem;
  text-decoration: none;
  transition: opacity 0.15s;
}
.adminIconBtn:hover { opacity: 0.75; }
.adminIconBtn--primary { background: #dbeafe; color: #007aff; }
.adminIconBtn--success { background: #dcfce7; color: #16a34a; }

/* ── Event actions modal ── */
.eaEventName {
  font-size: 1rem;
  font-weight: 700;
  color: #1d1d1f;
  padding: 0 2px 14px;
  border-bottom: 1px solid #f0f0f2;
  margin-bottom: 12px;
  word-break: break-word;
}

.eaActionList {
  background: #f5f5f7;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 14px;
}

.eaActionItem {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 14px;
  border-bottom: 1px solid #e8e8ea;
  text-decoration: none;
  color: #1d1d1f;
  background: none;
  border-left: none;
  border-right: none;
  border-top: none;
  width: 100%;
  text-align: left;
  cursor: pointer;
  font-size: 0.92rem;
  transition: background 0.1s;
  box-sizing: border-box;
}

.eaActionItem:last-child { border-bottom: none; }
.eaActionItem:hover { background: #e8e8ed; }
.eaActionItem:disabled { opacity: 0.45; cursor: not-allowed; }
.eaActionItem:disabled:hover { background: none; }

.eaActionIcon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 0.9rem;
}

.eaActionIcon--primary { background: #dbeafe; color: #007aff; }
.eaActionIcon--success { background: #dcfce7; color: #16a34a; }
.eaActionIcon--muted   { background: #f5f5f7; color: #6e6e73; }
.eaActionIcon--dark    { background: #e8e8ea; color: #1d1d1f; }
.eaActionIcon--warning { background: #fff7ed; color: #ff9500; }

.eaActionLabel { flex: 1; font-weight: 500; }

.eaChevron { font-size: 0.7rem; color: #c7c7cc; margin-left: auto; flex-shrink: 0; }

/* ============================================================
   Filter toggle button active state
   ============================================================ */
#toggleFilterBtn.is-filter-active {
  background: #e5e5e7;
}

/* ============================================================
   Sort icon desc state
   ============================================================ */
.is-desc {
  transform: rotate(180deg);
  display: inline-block;
}

/* ============================================================
   SecurityPage
   ============================================================ */
.securityPageTitle {
  text-align: center;
  color: #1d1d1f;
  font-weight: 600;
}

.securityLayout {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.securityPanelTitle {
  margin-top: 0;
  color: #1d1d1f;
  font-weight: 600;
  font-size: 1.25rem;
}

.securityDescription {
  font-size: 0.9rem;
  color: #6e6e73;
  margin-bottom: 1rem;
}

.securityPasskeyList {
  margin-bottom: 1.5rem;
}

.securitySubTitle {
  font-size: 1rem;
  margin-bottom: 0.75rem;
  color: #1d1d1f;
  font-weight: 600;
}

.securityListItem {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem;
  background: #f5f5f7;
  border: 1px solid #e5e5e7;
  border-radius: 10px;
}

.securityListItem--mbSm {
  margin-bottom: 0.5rem;
}

.securityItemLeft {
  display: flex;
  align-items: center;
  gap: 10px;
}

.securityPasskeyIcon {
  font-size: 1.5rem;
  color: #007aff;
}

.securityItemName {
  font-weight: 600;
  color: #1d1d1f;
}

.securityItemSub {
  font-size: 0.85rem;
  color: #6e6e73;
}

/* Base styles for security action buttons (hover is in hover-effects.css) */
.security-danger-btn {
  padding: 6px 16px;
  background: #ffffff;
  color: #ff3b30;
  border: 1px solid #ff3b30;
  border-radius: 20px;
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 500;
}

.security-danger-btn--account {
  padding: 8px 20px;
  font-weight: 600;
  font-size: 0.9rem;
}

.securityCenterBlock {
  text-align: center;
}

.security-blue-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 24px;
  background: #ffffff;
  border: 1px solid #007aff;
  border-radius: 20px;
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 600;
  color: #007aff;
}

.securityBlueBtnIcon {
  font-size: 1.2rem;
}

.securityStatusMsg {
  margin-top: 0.5rem;
  font-size: 0.9rem;
  color: #6e6e73;
  text-align: center;
}

.securityStatusMsg.is-neutral { color: #1d1d1f; }
.securityStatusMsg.is-success { color: #34c759; }
.securityStatusMsg.is-error { color: #ff3b30; }

.securityAvatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
}

.security-passkey-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 24px;
  background: #06c755;
  border: none;
  border-radius: 20px;
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 600;
  color: #ffffff;
  text-decoration: none;
  box-shadow: 0 2px 4px rgba(6, 199, 85, 0.2);
}

.securityLineIcon {
  width: 20px;
  height: 20px;
}

.security-muted-btn {
  padding: 10px 24px;
  background: #6e6e73;
  color: #ffffff;
  border: none;
  border-radius: 20px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  box-shadow: 0 2px 4px rgba(110, 110, 115, 0.2);
}

/* ============================================================
   AdminDeletedEventsPage
   ============================================================ */
.adminDeletedEventHeader {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  gap: 1rem;
  flex-wrap: wrap;
}

.adminDeletedEventTitle {
  color: #1d1d1f;
  font-weight: 600;
  margin: 0;
}

.adminDeletedEventHeaderActions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.adminDeletedEventBackBtn {
  padding: 10px 20px;
  background: #e5e5e7;
  color: #1d1d1f;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.adminDeletedEventPanelTitle {
  margin-top: 0;
  margin-bottom: 1rem;
  color: #1d1d1f;
  font-weight: 600;
}

.adminDeletedEventEmpty {
  padding: 2rem;
  text-align: center;
  color: #6e6e73;
}

.adminDeletedEventEmptyIcon {
  font-size: 3rem;
  margin-bottom: 1rem;
  opacity: 0.3;
}

.adminDeletedEventEmptyText {
  font-size: 1.1rem;
}

.adminDeletedEventSearchWrap {
  margin-bottom: 1.5rem;
}

.adminDeletedEventNameCell {
  padding: 12px;
  word-break: break-word;
  overflow-wrap: break-word;
}

.adminDeletedEventName {
  font-weight: 600;
  margin-bottom: 4px;
  color: #1d1d1f;
  text-decoration: line-through;
}

.adminDeletedEventBadgeRow {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.adminDeletedEventDeletedBadge {
  padding: 2px 6px;
  background: #ff3b30;
  color: #ffffff;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 600;
}

.adminDeletedEventDateCell {
  padding: 12px;
  text-align: center;
  font-size: 0.8rem;
  color: #1d1d1f;
  word-break: keep-all;
}

.adminDeletedEventDateSep {
  font-size: 0.7rem;
  color: #6e6e73;
  margin: 2px 0;
}

.adminDeletedEventCapacityCell {
  padding: 12px;
  text-align: center;
  white-space: nowrap;
}

.adminCapacityFull {
  font-weight: 600;
  font-size: 1rem;
  color: #ff3b30;
}

.adminCapacityNormal {
  font-weight: 600;
  font-size: 1rem;
  color: #1d1d1f;
}

.adminCapacityFullLabel {
  font-size: 0.7rem;
  color: #ff3b30;
  margin-top: 2px;
}

.adminDeletedEventActionsCell {
  padding: 12px;
}

.adminDeletedEventActionsRow {
  display: flex;
  gap: 6px;
  justify-content: center;
  flex-wrap: wrap;
}

.adminDeletedEventBookingsBtn {
  padding: 6px 12px;
  background: #34c759;
  color: #ffffff;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 500;
  font-size: 0.85rem;
  text-decoration: none;
  display: inline-block;
}

.adminDeletedEventExportBtn {
  padding: 6px 12px;
  background: #1d1d1f;
  color: #ffffff;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 500;
  font-size: 0.85rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* ============================================================
   admin-event-form — Reminders
   ============================================================ */
.reminders-empty {
  padding: 1rem;
  text-align: center;
  color: #6e6e73;
  border: 1px dashed #d2d2d7;
  border-radius: 8px;
  font-size: 0.9rem;
}

.reminder-item {
  display: flex;
  gap: 12px;
  align-items: flex-end;
  margin-bottom: 12px;
  padding: 12px;
  background: #ffffff;
  border: 1px solid #e5e5e7;
  border-radius: 8px;
}

.reminder-date-field {
  flex: 1;
}

.reminderLabel {
  display: block;
  margin-bottom: 4px;
  font-size: 0.85rem;
  font-weight: 600;
  color: #1d1d1f;
}

.reminder-date-input {
  width: 100%;
  padding: 8px;
  border: 1px solid #d2d2d7;
  border-radius: 6px;
  font-size: 0.9rem;
}

.reminder-remove-btn {
  padding: 8px;
  background: #ffffff;
  color: #ff3b30;
  border: 1px solid #ff3b30;
  border-radius: 6px;
  cursor: pointer;
}

/* ============================================================
   admin-event-form — Sessions
   ============================================================ */
.sessions-empty {
  padding: 1rem;
  text-align: center;
  color: #6e6e73;
  border: 1px dashed #d2d2d7;
  border-radius: 8px;
  font-size: 0.9rem;
}

.session-item {
  display: flex;
  gap: 12px;
  align-items: flex-end;
  margin-bottom: 12px;
  padding: 12px;
  background: #ffffff;
  border: 1px solid #e5e5e7;
  border-radius: 8px;
}

.session-name-field {
  flex: 2;
}

.session-datetime-field {
  flex: 1;
}

.sessionDatetimeInputs {
  display: flex;
  gap: 8px;
}

.sessionLabel {
  display: block;
  margin-bottom: 4px;
  font-size: 0.85rem;
  font-weight: 600;
  color: #1d1d1f;
}

.session-name-input,
.session-date-input,
.session-time-input {
  width: 100%;
  padding: 8px;
  border: 1px solid #d2d2d7;
  border-radius: 6px;
  font-size: 0.9rem;
  box-sizing: border-box;
}

.session-remove-btn {
  padding: 8px;
  background: #ffffff;
  color: #ff3b30;
  border: 1px solid #ff3b30;
  border-radius: 6px;
  cursor: pointer;
}

/* ============================================================
   admin-event-form — Questions
   ============================================================ */
.questions-empty {
  padding: 2rem;
  text-align: center;
  color: #6e6e73;
  background: #fafafa;
  border-radius: 10px;
  border: 2px dashed #d2d2d7;
}

.questions-empty-icon {
  font-size: 2rem;
  margin-bottom: 0.5rem;
  opacity: 0.3;
}

.question-item {
  padding: 1.5rem;
  background: #fafafa;
  border-radius: 10px;
  margin-bottom: 1rem;
  border: 1px solid #e5e5e7;
}

.question-header {
  display: flex;
  justify-content: space-between;
  align-items: start;
  margin-bottom: 1rem;
}

.question-number-wrap {
  flex: 1;
}

.question-number-text {
  font-weight: 600;
  color: #1d1d1f;
  margin-bottom: 0.5rem;
}

.q-remove-btn {
  padding: 6px 12px;
  background: #ffffff;
  color: #ff3b30;
  border: 1.5px solid #ff3b30;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 500;
  font-size: 0.85rem;
}

.question-field {
  margin-bottom: 1rem;
}

.question-field-label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: #1d1d1f;
  font-size: 0.9rem;
}

.question-text-input {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid #d2d2d7;
  border-radius: 8px;
  font-size: 0.9rem;
}

.question-description-textarea {
  resize: vertical;
  min-height: 72px;
  line-height: 1.5;
}

.question-type-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}

.q-type-select {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid #d2d2d7;
  border-radius: 8px;
  font-size: 0.9rem;
}

.q-required-label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  height: 100%;
  padding-top: 1.8rem;
}

.q-required-check {
  width: 18px;
  height: 18px;
  cursor: pointer;
}

.q-required-text {
  font-weight: 600;
  color: #1d1d1f;
  font-size: 0.9rem;
}

/* Validation details */
.q-validation-details {
  margin-bottom: 1rem;
}

.q-validation-summary {
  cursor: pointer;
  font-weight: 600;
  color: #007aff;
  list-style: none;
}

.q-validation-body {
  margin-top: 0.75rem;
  padding: 1rem;
  background: #ffffff;
  border: 1px solid #e5e5e7;
  border-radius: 8px;
}

.q-validation-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.question-field-label--sm {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.85rem;
  color: #1d1d1f;
}

.q-validation-select {
  width: 100%;
  padding: 8px;
  border: 1px solid #d2d2d7;
  border-radius: 6px;
}

.q-format-note {
  margin: 0;
  font-size: 0.85rem;
  color: #6e6e73;
}

.q-vr-input {
  width: 100%;
  padding: 8px;
  border: 1px solid #d2d2d7;
  border-radius: 6px;
}

/* Question sort buttons */
.q-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding-top: 0.5rem;
  border-top: 1px solid #e5e5e7;
}

.q-move-up-btn,
.q-move-down-btn {
  padding: 6px 12px;
  background: #ffffff;
  color: #007aff;
  border: 1.5px solid #007aff;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 500;
  font-size: 0.85rem;
}

.q-move-up-btn:disabled,
.q-move-down-btn:disabled {
  background: #f5f5f7;
  color: #d2d2d7;
  border-color: #d2d2d7;
  cursor: not-allowed;
}
