/* public/css/styles.css */

body {
  background: linear-gradient(180deg, #0b1220 0%, #0b1220 180px, #f4f6fb 180px, #f4f6fb 100%);
}

.nav-user {
  color: rgba(255,255,255,.85);
  font-size: .95rem;
}

main {
  background: #fff;
  border-radius: 14px;
  padding: 18px;
  box-shadow: 0 12px 30px rgba(0,0,0,0.08);
}

.page-head {
  display:flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.page-title {
  margin: 0;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.muted {
  color: #6c757d;
}

/* Calendar */
.calendar-toolbar {
  display:flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.calendar-grid {
  display:grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 10px;
}

.calendar-weekday {
  font-size: .85rem;
  font-weight: 600;
  color: #6c757d;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.calendar-day {
  border: 1px solid #e9edf5;
  border-radius: 12px;
  padding: 10px;
  min-height: 110px;
  background: #fff;
}

.calendar-day--muted {
  background: #fbfcff;
  opacity: .8;
}

.calendar-day--today {
  border-color: #0d6efd;
  box-shadow: 0 0 0 3px rgba(13,110,253,.12);
}

.calendar-day__num {
  display:flex;
  align-items:center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.calendar-day__num span {
  font-weight: 700;
}

.event-chip {
  display:flex;
  align-items:center;
  gap: 6px;
  padding: 6px 8px;
  border-radius: 999px;
  font-size: .8rem;
  line-height: 1;
  border: 1px solid #e9edf5;
  background: #f8fafc;
  margin-bottom: 6px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.event-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  flex: 0 0 9px;
  background: #adb5bd;
}

.event-chip--test .event-dot { background: #ef4444; }
.event-chip--homework .event-dot { background: #f59e0b; }
.event-chip--lesson .event-dot { background: #10b981; }
.event-chip--other .event-dot { background: #6366f1; }

.event-chip__time {
  color: #6c757d;
  font-variant-numeric: tabular-nums;
}

/* Timetable */
.timetable {
  width: 100%;
}

.timetable th {
  background: #f8fafc;
  font-weight: 700;
}

.timetable td, .timetable th {
  vertical-align: top;
}

.tt-cell {
  border-radius: 12px;
  padding: 10px;
  background: #f8fafc;
  border: 1px solid #e9edf5;
}

.tt-subject {
  font-weight: 700;
}

.tt-meta {
  font-size: .85rem;
  color: #6c757d;
}

/* Lists */
.pill {
  border-radius: 999px;
  padding: 4px 10px;
  font-size: .85rem;
}

.reminder-done {
  opacity: .6;
  text-decoration: line-through;
}