/* ── Rally ATL Coach Admin Page-Specific Stylesheet ── */


.modal__overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 23, 42, 0.3);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.modal__overlay.modal--open {
  opacity: 1;
  pointer-events: auto;
}


/* Live Preview Section inside Form Modal */
.preview-container {
  background: #f8fafc;
  border: 1px solid var(--card-border);
  border-radius: 8px;
  padding: 12px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.avatar {
  width: 44px;
  height: 44px;
  border-radius: 20%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 800;
  color: #ffffff;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
}

.preview-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.preview-title {
  font-size: 10px;
  color: var(--text-muted);
  font-weight: 700;
  text-transform: uppercase;
}

.preview-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-white);
}

.preview-meta {
  font-size: 11px;
  color: var(--text-muted);
}



/* Metric Card Icon Themes */
.metric-card.metric-total .metric-icon {
  background: rgba(59, 130, 246, 0.08);
  color: var(--primary);
}

.metric-card.metric-active .metric-icon {
  background: rgba(16, 185, 129, 0.08);
  color: var(--success-hover);
}

.metric-card.metric-inactive .metric-icon {
  background: rgba(100, 116, 139, 0.08);
  color: var(--text-muted);
}

.metric-card.metric-pickleball .metric-icon {
  background: rgba(249, 115, 22, 0.08);
  color: #ea580c;
}

/* Toolbar controls */
.toolbar-search-group {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  flex: 1;
}

.btn-clear {
  display: none;
  height: 34px;
  padding: 0 10px;
  font-size: 12px;
  align-items: center;
  justify-content: center;
  gap: 4px;
  flex-shrink: 0;
}

.view-toggle-group {
  display: inline-flex;
  gap: 4px;
  background: #f1f5f9;
  padding: 3px;
  border-radius: 8px;
  border: 1px solid var(--card-border);
}

.view-btn {
  height: 32px;
  padding: 0 12px;
  font-size: 11px;
  font-weight: 700;
  border: none;
  background: transparent;
  border-radius: 6px;
  cursor: pointer;
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: all 0.2s;
}

/* Table columns */
.col-actions {
  text-align: center;
  width: 130px;
  white-space: nowrap;
}

.header-sort-wrap.center {
  justify-content: center;
  width: 100%;
}

.col-grade {
  text-align: center;
  width: 80px;
  white-space: nowrap;
}

.col-profiles {
  width: 200px;
  white-space: nowrap;
}

/* Form Styles */
.switch-container-wrapper {
  height: 38px;
  padding: 0 12px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid var(--input-border);
  background: var(--input-bg);
}

.form-toggle-switch {
  transform: scale(0.9);
  margin-right: -4px;
}

.profile-subsection {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 12px;
  display: flex;
  flex-direction: column;
}

.profile-subsection .subsection-title {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  border-bottom: 1px solid #e2e8f0;
  padding-bottom: 6px;
  display: block;
}

.profile-subsection span:not(.subsection-title) {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
}


.link-preview {
  font-size: 11px;
  color: var(--primary);
  padding-top: 8px;
  word-break: break-all;
  min-height: 32px;
  font-weight: 500;
}

.color-input-wrap {
  display: flex;
  gap: 6px;
  align-items: center;
  width: 100%;
}

.color-picker-input {
  padding: 2px;
  height: 32px;
  width: 44px;
  cursor: pointer;
  flex-shrink: 0;
}


.form-actions button[type="button"] {
  flex: 1;
}

.form-actions button[type="submit"] {
  flex: 2;
}

/* Delete Confirmation Modal */
.delete-warning-box {
  background: rgba(239, 68, 68, 0.04);
  border: 1px solid rgba(239, 68, 68, 0.15);
  padding: 10px;
  border-radius: 8px;
  font-size: 12px;
  color: var(--error-hover);
  font-weight: 600;
  white-space: normal;
}

footer span {
  font-size: 11px;
  color: var(--text-muted);
}

/* Styled Checkbox Cards (Lesson Type) */
.styled-checkbox-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 6px;
  margin-bottom: 6px;
}

.styled-checkbox-card {
  position: relative;
  display: inline-flex;
  cursor: pointer;
  user-select: none;
}

.styled-checkbox-card .styled-checkbox-input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}

.styled-checkbox-body {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 10px;
  border: 1.5px solid var(--card-border, #cbd5e1);
  background: var(--input-bg, #ffffff);
  color: var(--text, #0f172a);
  font-size: 13px;
  font-weight: 600;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.styled-checkbox-card:hover .styled-checkbox-body {
  border-color: #10b981;
  background: #f0fdf4;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.12);
}

.styled-checkbox-input:checked+.styled-checkbox-body {
  border-color: #10b981;
  background: linear-gradient(135deg, rgba(240, 253, 244, 1) 0%, rgba(220, 252, 231, 0.85) 100%);
  color: #065f46;
  font-weight: 700;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.18);
}

.styled-checkbox-icon {
  font-size: 16px;
  line-height: 1;
}

.styled-checkbox-label-text {
  font-size: 13px;
  line-height: 1.2;
}

.styled-checkbox-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #e2e8f0;
  color: #94a3b8;
  font-size: 10px;
  font-weight: 800;
  transition: all 0.2s ease;
  margin-left: 2px;
}

.styled-checkbox-input:checked+.styled-checkbox-body .styled-checkbox-check {
  background: #10b981;
  color: #ffffff;
}

/* Sport & Levels Rows Layout for Admin Modal */
.sport-level-rows {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 6px;
}

.sport-level-row {
  display: flex;
  align-items: center;
  gap: 14px;
  background: #ffffff;
  padding: 8px 12px;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
  transition: all 0.2s ease;
  flex-wrap: wrap;
}

.sport-level-row .styled-checkbox-card {
  width: 140px;
  flex-shrink: 0;
}

.sport-level-row .styled-checkbox-body {
  width: 100%;
  justify-content: space-between;
  box-sizing: border-box;
}

.sport-level-row:hover {
  border-color: #cbd5e1;
  background: #f8fafc;
}

.sport-levels-container {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  flex: 1;
  padding-left: 12px;
  border-left: 2px dashed #cbd5e1;
  animation: adminSportLevelFadeIn 0.2s ease-in-out;
}

.levels-inline-label {
  font-size: 12px;
  font-weight: 700;
  color: #475569;
  white-space: nowrap;
}

@keyframes adminSportLevelFadeIn {
  from {
    opacity: 0;
    transform: translateX(-4px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* ── Self Intro Pop-up Column Styles ── */
.col-intro {
  text-align: center;
  width: 75px;
  white-space: nowrap;
}

.intro-cell {
  text-align: center;
  white-space: nowrap;
  position: relative;
}

.intro-popover-wrap {
  position: relative;
  display: inline-block;
}

.intro-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: rgba(59, 130, 246, 0.08);
  color: var(--primary);
  font-size: 13px;
  cursor: pointer;
  border: 1px solid rgba(59, 130, 246, 0.2);
  transition: all 0.15s ease;
  line-height: 1;
  padding: 0;
}

.intro-popover-wrap:hover .intro-icon-btn {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
  transform: scale(1.1);
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
}

.intro-popover-card {
  position: absolute;
  top: -3px;
  right: 32px;
  width: 400px;
  max-width: 400px;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  padding: 12px 14px;
  box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.18), 0 8px 10px -6px rgba(15, 23, 42, 0.1);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.12s ease-out, transform 0.12s ease-out, visibility 0.12s;
  transform: translateY(4px);
  z-index: 999;
  text-align: left;
  white-space: normal;
  word-wrap: break-word;
}



.intro-popover-wrap:hover .intro-popover-card {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.intro-popover-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #e2e8f0;
  padding-bottom: 6px;
  margin-bottom: 8px;
  font-size: 11px;
  font-weight: 700;
  color: #334155;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.intro-popover-body {
  font-size: 12px;
  line-height: 1.5;
  color: #1e293b;
  max-height: 200px;
  overflow-y: auto;
  font-weight: 400;
}