/* ==========================================================
   MAXZEETON.NG — STUDENT CALENDAR PAGE
   Shares tokens from dashboard.css / my-courses.css / student-work.css
   ========================================================== */

.cal-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 16px;
  font-size: 12.5px;
  color: var(--t2);
}
.cal-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.cal-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}
.cal-dot.physical { background: #3B82F6; }
.cal-dot.online   { background: var(--purple); }
.cal-dot.due      { background: var(--amber); }

/* ── Month grid widget ── */
.cal-widget {
  background: var(--white);
  border: 1px solid var(--bdr);
  border-radius: var(--r-xl);
  padding: 20px;
  margin-bottom: 24px;
}

.cal-month-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.cal-month-head h2 {
  font-family: var(--f-display);
  font-size: 17px;
  font-weight: 700;
  color: var(--t1);
}
.cal-month-head button {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--bdr);
  background: var(--white);
  color: var(--t2);
  cursor: pointer;
  transition: background .15s, color .15s;
}
.cal-month-head button:hover {
  background: var(--brand-bg);
  color: var(--brand);
  border-color: var(--brand-bdr);
}

.cal-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  margin-bottom: 6px;
}
.cal-weekdays span {
  text-align: center;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .4px;
  text-transform: uppercase;
  color: var(--t3);
}

.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}

.cal-day {
  aspect-ratio: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  border-radius: var(--r-md);
  font-size: 13px;
  color: var(--t1);
  background: transparent;
  border: 1px solid transparent;
  cursor: default;
  position: relative;
}

.cal-day.other-month {
  color: var(--t3);
  opacity: .45;
}

.cal-day.has-events {
  cursor: pointer;
}
.cal-day.has-events:hover {
  background: var(--brand-bg);
}

.cal-day.today {
  border-color: var(--brand);
  font-weight: 800;
}

.cal-day.selected {
  background: var(--brand);
  color: var(--white);
}
.cal-day.selected .cal-day-dots .cal-dot {
  background: var(--white);
}

.cal-day-dots {
  display: flex;
  gap: 3px;
  height: 6px;
}

/* ── Agenda ── */
.cal-agenda-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}
.cal-agenda-head h2 {
  font-family: var(--f-display);
  font-size: 17px;
  font-weight: 700;
  color: var(--t1);
}

.cal-show-all-btn {
  border: none;
  background: none;
  color: var(--brand);
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  padding: 0;
}
.cal-show-all-btn:hover {
  text-decoration: underline;
}

.cal-date-group-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .3px;
  text-transform: uppercase;
  color: var(--t3);
  margin: 18px 0 8px;
}
.cal-date-group-label:first-child {
  margin-top: 0;
}

.sw-item-icon.physical { background: #DBEAFE; color: #3B82F6; }
.sw-item-icon.online   { background: #EDE9FE; color: var(--purple); }
.sw-item-icon.due      { background: #FEF3C7; color: var(--amber); }

@media (max-width: 640px) {
  .cal-day {
    font-size: 11.5px;
  }
  .cal-widget {
    padding: 14px;
  }
}
