/* ====================================================================
   BIONUL EDTECH PLATFORM - BATCH TIMETABLE & SCHEDULE DESIGN SYSTEM
   css/schedule.css
   Matches Reference UI:
   - Minimal Header (Schedule + Bell)
   - Your Batch Card with [Active] status
   - Next Class Highlight Card
   - Weekdays Strip with active day highlights
   - Day-by-Day Clean Timetable Cards (ONLY days with classes)
   - Real-time [Today] highlight
   ==================================================================== */

/* ---- Top Header Bar ---- */
.schedule-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 0 16px 0;
  background: transparent;
}

.schedule-topbar-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.schedule-topbar-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-heading, #0F172A);
  letter-spacing: -0.02em;
}

.schedule-topbar-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #FFFFFF;
  border: 1px solid var(--border-color, #EAEBF2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-heading, #0F172A);
  cursor: pointer;
  transition: all var(--transition-fast, 0.18s ease);
  position: relative;
  text-decoration: none;
}

.schedule-topbar-btn:hover {
  background-color: var(--primary-light, #F1EEFF);
  color: var(--primary, #5B3DF5);
  border-color: var(--primary, #5B3DF5);
}

.schedule-topbar-btn svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.schedule-topbar-btn.has-unread::after {
  content: "";
  position: absolute;
  top: 8px;
  right: 8px;
  width: 8px;
  height: 8px;
  background: #EF4444;
  border-radius: 50%;
  border: 1.5px solid #FFFFFF;
}

/* ---- 1. Your Batch Card ---- */
.your-batch-card {
  background: #FFFFFF;
  border-radius: var(--radius-xl, 20px);
  padding: 18px 18px;
  border: 1px solid var(--border-color, #EAEBF2);
  box-shadow: var(--shadow-sm, 0 2px 10px rgba(91, 61, 245, 0.04));
  margin-bottom: 14px;
}

.your-batch-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.your-batch-label {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--primary, #5B3DF5);
}

.your-batch-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #ECFDF5;
  color: #059669;
  padding: 3px 10px;
  border-radius: var(--radius-full, 9999px);
  font-size: 0.72rem;
  font-weight: 700;
  border: 1px solid #A7F3D0;
}

.your-batch-body {
  display: flex;
  align-items: center;
  gap: 14px;
}

.your-batch-icon-box {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: var(--primary, #5B3DF5);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(91, 61, 245, 0.25);
}

.your-batch-icon-box svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.your-batch-info {
  flex: 1;
  min-width: 0;
}

.your-batch-name {
  font-size: 1.12rem;
  font-weight: 900;
  color: var(--text-heading, #0F172A);
  letter-spacing: -0.01em;
  margin-bottom: 2px;
  line-height: 1.25;
}

.your-batch-subtitle {
  font-size: 0.78rem;
  color: var(--text-muted, #64748B);
  font-weight: 500;
}

/* ---- 2. Next Class Highlight Card ---- */
.next-class-card {
  background: linear-gradient(135deg, #F8F6FF 0%, #F1EEFF 100%);
  border-radius: var(--radius-lg, 18px);
  padding: 16px 18px;
  border: 1px solid rgba(91, 61, 245, 0.15);
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
  transition: transform 0.18s ease;
}

.next-class-card:hover {
  transform: translateY(-1px);
}

.next-class-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: #FFFFFF;
  color: var(--primary, #5B3DF5);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(91, 61, 245, 0.08);
}

.next-class-icon svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.next-class-info {
  flex: 1;
  min-width: 0;
}

.next-class-label {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--primary, #5B3DF5);
  margin-bottom: 2px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.next-class-day {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--text-heading, #0F172A);
  margin-bottom: 6px;
}

.next-class-time-pill {
  display: inline-block;
  background: #FFFFFF;
  color: var(--primary, #5B3DF5);
  padding: 3px 10px;
  border-radius: var(--radius-full, 9999px);
  font-size: 0.75rem;
  font-weight: 800;
  border: 1px solid rgba(91, 61, 245, 0.18);
  box-shadow: 0 1px 4px rgba(91, 61, 245, 0.04);
}

.next-class-arrow {
  color: var(--primary, #5B3DF5);
  font-size: 1.25rem;
  font-weight: 700;
  flex-shrink: 0;
}

/* ---- 3. Weekday Quick Indicator Strip ---- */
.weekdays-strip {
  display: flex;
  justify-content: space-between;
  gap: 4px;
  background: #FFFFFF;
  border-radius: var(--radius-lg, 16px);
  padding: 6px;
  border: 1px solid var(--border-color, #EAEBF2);
  margin-bottom: 20px;
}

.weekday-pill {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 8px 2px;
  border-radius: 10px;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-muted, #64748B);
  transition: all 0.18s ease;
  user-select: none;
}

.weekday-pill.has-class {
  background: var(--primary, #5B3DF5);
  color: #FFFFFF;
  font-weight: 800;
  box-shadow: 0 2px 8px rgba(91, 61, 245, 0.3);
}

.weekday-pill.is-today {
  border: 1.5px solid var(--primary, #5B3DF5);
}

.weekday-pill.has-class.is-today {
  border-color: #FFFFFF;
}

/* ---- 4. Weekly Schedule Section ---- */
.schedule-section-head {
  margin-bottom: 12px;
}

.schedule-section-title {
  font-size: 1.08rem;
  font-weight: 800;
  color: var(--text-heading, #0F172A);
  letter-spacing: -0.01em;
  margin-bottom: 2px;
}

.schedule-section-subtitle {
  font-size: 0.78rem;
  color: var(--text-muted, #64748B);
  font-weight: 500;
}

/* ---- Timetable Day Cards ---- */
.timetable-cards-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
}

.timetable-day-card {
  background: #FFFFFF;
  border-radius: var(--radius-xl, 20px);
  padding: 16px 18px;
  border: 1px solid var(--border-color, #EAEBF2);
  box-shadow: var(--shadow-sm, 0 2px 8px rgba(15, 23, 42, 0.03));
  transition: all 0.18s ease;
  position: relative;
}

.timetable-day-card:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary, #5B3DF5);
}

.timetable-day-card.today-highlight {
  border-color: rgba(91, 61, 245, 0.35);
  background: #FAF9FF;
}

.timetable-card-inner {
  display: flex;
  align-items: center;
  gap: 14px;
}

.timetable-card-icon-box {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: var(--primary-light, #F1EEFF);
  color: var(--primary, #5B3DF5);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.timetable-card-icon-box svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.timetable-card-content {
  flex: 1;
  min-width: 0;
}

.timetable-day-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
}

.timetable-day-name {
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--primary, #5B3DF5);
}

.timetable-today-badge {
  background: var(--primary, #5B3DF5);
  color: #FFFFFF;
  padding: 2px 8px;
  border-radius: var(--radius-full, 9999px);
  font-size: 0.68rem;
  font-weight: 800;
}

.timetable-time-slot {
  font-size: 1.05rem;
  font-weight: 900;
  color: var(--text-heading, #0F172A);
  letter-spacing: -0.01em;
  margin-bottom: 4px;
  line-height: 1.3;
}

.timetable-slots-multi {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 4px;
}

.timetable-meta-row {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.74rem;
  color: var(--text-muted, #64748B);
  font-weight: 600;
}

.timetable-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--primary, #5B3DF5);
}

.timetable-card-arrow {
  color: var(--text-light, #94A3B8);
  font-size: 1.2rem;
  font-weight: 700;
  flex-shrink: 0;
}

/* ---- 5. Notice / Policy Info Card ---- */
.schedule-notice-card {
  background: #F8F9FD;
  border-radius: var(--radius-lg, 16px);
  padding: 14px 16px;
  border: 1px solid var(--border-subtle, #F0F1F6);
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 24px;
}

.schedule-notice-icon {
  width: 20px;
  height: 20px;
  color: var(--primary, #5B3DF5);
  flex-shrink: 0;
  margin-top: 1px;
}

.schedule-notice-icon svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.schedule-notice-text {
  font-size: 0.78rem;
  color: var(--text-muted, #64748B);
  line-height: 1.5;
  font-weight: 500;
}

.schedule-notice-text strong {
  color: var(--text-heading, #0F172A);
  font-weight: 700;
}

/* ---- Skeleton Loaders ---- */
.schedule-skeleton-box {
  background: linear-gradient(90deg, #F1F4F9 25%, #E2E8F0 50%, #F1F4F9 75%);
  background-size: 200% 100%;
  animation: scheduleShimmer 1.5s infinite;
  border-radius: 16px;
}

@keyframes scheduleShimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ---- Desktop Centering ---- */
@media (min-width: 768px) {
  .schedule-page-container {
    max-width: 580px;
    margin: 0 auto;
  }
}
