/* ═══════════════════════════════════════════════════════════════════════════
   Rally ATL — Private Lesson Page Styles (Mobile-First)
   File: /public/private-lesson.css
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── 1. Accordion & Section Layout (Date View) ── */
.weekday-section {
  background: var(--white);
  border-radius: 12px;
  padding: 0;
  border: 1px solid #e5e8ec;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
  width: 100%;
}

summary.weekday-header {
  cursor: pointer;
  user-select: none;
  border-bottom: 2px solid var(--green);
  margin-bottom: 8px;
  transition: opacity 0.2s ease;
  background-color: rgba(22, 163, 74, 0.15);
  padding: 8px;
  border-radius: 12px 12px 0 0;
}

summary.weekday-header::marker {
  color: var(--green);
  font-weight: bold;
}

summary.weekday-header h3,
.weekday-header-title {
  font-size: 16px;
  color: var(--navy);
  font-weight: 700;
  margin: 0;
  border-bottom: none !important;
  display: inline-block;
  padding-bottom: 0 !important;
}

.weekday-content {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
}

/* Smooth Expand & Collapse Slide Animation */
@supports (interpolate-size: allow-keywords) {
  :root {
    interpolate-size: allow-keywords;
  }
}

details.weekday-section {
  overflow: hidden;
}

details.weekday-section::details-content {
  height: 0;
  overflow: hidden;
  transition: height 0.3s linear, content-visibility 0.3s allow-discrete;
  transition-behavior: allow-discrete;
}

details.weekday-section[open]::details-content {
  height: auto;
}

/* ── 2. Controls & Search Toggles ── */
select.btn-filter {
  cursor: pointer;
  background: var(--white);
  font-family: inherit;
}

#clearFiltersBtn {
  display: inline-block;
}

.loading-msg {
  color: var(--muted);
  padding: 40px 0;
  font-size: 15px;
}

/* ── 3. Table View Styling (Mobile Base) ── */
.master-table-wrapper {
  margin-top: 4px;
  width: 100%;
  min-width: 0;
}

.table-top-scrollbar {
  overflow-x: auto;
  overflow-y: hidden;
  width: 100%;
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  border-bottom: none;
}

.top-scrollbar-dummy {
  height: 1px;
}

#masterTableContainer {
  border: 1.5px solid #e2e8f0;
}

.master-slots-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  text-align: left;
}

.master-slots-table thead tr {
  background: #eaf1f9;
  border-bottom: 1.5px solid #e2e8f0;
  color: #475569;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.master-slots-table th,
.master-slots-table td {
  padding: 10px 4px;
}

.master-slots-table td {
  white-space: nowrap;
}

.master-slots-table tbody tr {
  border-bottom: 1px solid #f1f5f9;
  transition: background 0.15s ease;
}

.master-slots-table tbody tr:hover {
  background: #d7e9fc;
}

.badge-name {
  font-weight: 700;
  color: var(--navy);
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 6px;
  background-color: #d7e9fc;
  min-width: 120px;
  text-align: center;
  display: inline-block;
}

.badge-name:hover {
  background-color: #3b82f6;
  color: #edf2f7;
}

.btn-booking {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 64px;
  min-height: 28px;
  padding: 0 12px;
  font-size: 12px;
  font-weight: 700;
  border-radius: 6px;
  box-sizing: border-box;
  text-align: center;
  transition: all 0.15s ease;
  line-height: 1;
  border: 1px solid var(--green);
  cursor: pointer;
}

.badge-slot_status {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.slot--open {
  border: 1px solid #86efac;
  background: var(--green);
  color: var(--white);
}

.slot--closed {
  background: #e2e8f0;
  color: #64748b;
  border: 1px solid #cbd5e1;
}

.badge-today {
  display: inline-block;
  background: #3b82f6;
  color: #ffffff;
  font-size: 10px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 4px;
  letter-spacing: 0.5px;
  vertical-align: middle;
}

/* ── 4. Coach Primary Cards & Slots Grid (Mobile Base) ── */
#div-schedules {
  width: 100%;
  min-width: 0;
  max-width: 1280px;
  margin: 0 auto;
  padding: 4px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.coach-primary-card {
  background: var(--white);
  border: 1.5px solid #e2e8f0;
  border-radius: 12px;
  padding: 14px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
  flex: 1 1 100%;
}

.coach-primary-header {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding-bottom: 10px;
  margin-bottom: 12px;
  border-bottom: 1px solid #f1f5f9;
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
}

.coach-primary-name {
  font-size: 16px;
  font-weight: 700;
  color: var(--navy);
  margin: 0;
}

.coach-profile-link-btn {
  font-size: 12px;
  font-weight: 600;
  color: var(--blue, #3b82f6);
  text-decoration: none;
  padding: 4px 10px;
  background: #eff6ff;
  border-radius: 6px;
  transition: all 0.18s ease;
  white-space: nowrap;
}

.coach-profile-link-btn:hover {
  background: #dbeafe;
  color: #1d4ed8;
}

.coach-dates-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 8px;
}

.coach-date-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.slots-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 8px;
}

.slot-group {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  border-bottom: 1px solid #f0f2f5;
}

.slot-group:last-child {
  border-bottom: none;
}

.slot-time-header {
  font-size: 13px;
  font-weight: 700;
  color: var(--navy);
  padding-top: 6px;
  min-width: 70px;
}

.slot-coaches-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 8px;
  flex-grow: 1;
}

.slot-coach-card {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid #e5e8ec;
  border-radius: 8px;
  padding: 6px 8px;
  background: #fdfdfd;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
  min-width: 0;
}

.slot-coach-card:hover {
  border-color: var(--green);
  background: #f4fbf7;
  box-shadow: 0 4px 12px rgba(46, 204, 113, 0.08);
}

.slot-coach-card.slot-coach-booked {
  opacity: 0.85;
  background: #f8fafc;
  border: 1.5px solid #cbd5e1;
  cursor: pointer;
}

.slot-coach-details {
  flex-grow: 1;
  min-width: 0;
}

.slot-coach-details h4 {
  font-size: 12px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 1px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.slot-coach-sub {
  font-size: 10px;
  color: var(--muted);
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 2px;
  flex-wrap: wrap;
}

.avatar-text {
  display: block;
}

.empty-state-card {
  padding: 30px;
  text-align: center;
  color: var(--muted);
  font-size: 13.5px;
}

.empty-state-icon {
  font-size: 28px;
  display: block;
  margin-bottom: 6px;
}

.empty-state-subtitle {
  font-size: 12px;
  opacity: 0.8;
  margin-top: 4px;
}

/* ── 5. Form Elements & Radios ── */
.lesson-type-radio-group {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  width: 100%;
  margin-top: 4px;
}

.lesson-type-radio-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 14px;
  border: 2px solid #cbd5e1;
  border-radius: 10px;
  background: #f8fafc;
  color: #475569;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
  position: relative;
}

.lesson-type-radio-btn input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}

.lesson-type-radio-btn:hover:not(.disabled) {
  border-color: #94a3b8;
  background: #f1f5f9;
}

.lesson-type-radio-btn.active.tennis {
  border-color: #16a34a !important;
  background: #f0fdf4 !important;
  color: #15803d !important;
  box-shadow: 0 2px 8px rgba(22, 163, 74, 0.15);
}

.lesson-type-radio-btn.active.pickleball {
  border-color: #d97706 !important;
  background: #fffbeb !important;
  color: #b45309 !important;
  box-shadow: 0 2px 8px rgba(217, 119, 6, 0.15);
}

.lesson-type-radio-btn.disabled {
  opacity: 0.45;
  cursor: not-allowed;
  background: #f1f5f9;
  border-color: #e2e8f0;
}

.radio-icon {
  font-size: 16px;
}

/* ── 6. Unified Modal Component Styles ── */
.modal-header-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.modal-status-icon {
  font-size: 22px;
}

.modal-title {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
  color: var(--white);
}

.modal-subtitle {
  font-size: 12px;
  color: #8fa8c0;
  margin-top: 2px;
}

/* Column-based (Label / Value) Info List */
.info-table {
  display: flex;
  flex-direction: column;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  overflow: hidden;
}

.info-row {
  display: grid;
  grid-template-columns: 110px 1fr;
  align-items: center;
  padding: 10px 14px;
  border-bottom: 1px solid #e2e8f0;
  gap: 12px;
}

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

.info-row:nth-child(even) {
  background: #ffffff;
}

.info-row-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--muted, #64748b);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.info-row-val {
  font-size: 13.5px;
  font-weight: 600;
  color: #1e293b;
  word-break: break-word;
}

.info-row-subval {
  font-size: 12px;
  font-weight: 400;
  color: #64748b;
  margin-top: 2px;
}

.btn-modal-close {
  width: 100%;
  padding: 11px;
  background: #edf2f7;
  color: var(--navy);
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.18s ease;
}

.btn-modal-close:hover {
  background: #e2e8f0;
}

/* ── 7. Instructions / How It Works Modal & Coach Preferences ── */
#toggleHowBtn {
  border: 2px solid var(--blue, #4b94f5) !important;
  background: var(--blue, #4499fa) !important;
  color: var(--white, #ffffff) !important;
}

.step {
  background: #f8fafc;
  padding: 16px;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 200px;
}

.step h3 {
  font-size: 14px;
  font-weight: 700;
  color: var(--navy, #1a2e44);
  margin-bottom: 4px;
}

#bookingSummary {
  background: var(--gray);
  border-radius: 10px;
  padding: 12px;
  margin-bottom: 10px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

#bookingCoachInfo {
  background: var(--gray);
  border-radius: 10px;
  padding: 12px;
  margin-bottom: 10px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.pref-note-card {
  font-size: 13px;
  color: #334155;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 8px 12px;
  line-height: 1.4;
}


/* ── 8. Student Verification Status Styles ── */
#studentVerifyStatusContainer {
  margin-top: 10px;
}

.student-verify-status {
  padding: 12px 14px;
  border-radius: 8px;
  font-size: 13px;
  line-height: 1.5;
  transition: all 0.2s ease;
  box-sizing: border-box;
}

.student-verify-status.prompt {
  background-color: #f8fafc;
  border: 1px solid #cbd5e1;
  color: #64748b;
  font-weight: 500;
}

.student-verify-status.verified {
  background-color: #f0fdf4;
  border: 1.5px solid #86efac;
  color: #166534;
}

.student-verify-status.not-found {
  background-color: #fff1f2;
  border: 1.5px solid #fca5a5;
  color: #991b1b;
}

.student-verify-status .verified-title {
  font-weight: 700;
  font-size: 14px;
  color: #15803d;
  margin-bottom: 4px;
}

.student-verify-status .verified-details {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px dashed #bbf7d0;
  font-size: 12px;
  color: #166534;
}

.student-verify-status .not-found-title {
  font-weight: 700;
  font-size: 14px;
  color: #b91c1c;
  margin-bottom: 4px;
}

.student-verify-status .btn-register-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  padding: 8px 16px;
  background-color: #0284c7;
  color: #ffffff;
  font-weight: 700;
  font-size: 13px;
  border-radius: 6px;
  text-decoration: none;
  transition: background-color 0.15s ease, transform 0.1s ease;
}

.student-verify-status .btn-register-link:hover {
  background-color: #0369a1;
  text-decoration: none;
  transform: translateY(-1px);
}

.btn-action {
  padding: 10px;
}

/* ── 9. Progressive Enhancements (Mobile-First Media Queries) ── */
@media (min-width: 640px) {

  .master-slots-table th,
  .master-slots-table td {
    padding: 10px 14px;
  }

  .coach-primary-card {
    flex: 1 1 400px;
  }

  .slot-time-header {
    flex: 0 0 90px;
    padding-top: 4px;
  }
}