/* Targeted enhancements (preserve existing design language). */

/* Make other pages use the same outer sizing feel as the Board (.app). */
.calendar-shell,
.timetable-shell,
.flashcards-shell {
  width: min(var(--app-desktop-max), 92vw);
  min-width: min(var(--app-desktop-min), 92vw);
  max-width: var(--app-desktop-max);
  margin: 28px auto 36px;
  padding: 20px 22px 36px;
}

/* Settings: Data safety panel (scoped) */
.settings-data-actions {
  margin-top: 10px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.settings-data-status {
  margin-top: 10px;
  min-height: 18px;
  font-weight: 600;
  color: var(--ink-muted);
}

.settings-data-status-ok {
  color: #0f766e;
}

.settings-data-status-warn {
  color: #b45309;
}

.settings-data-empty {
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px dashed rgba(148, 163, 184, 0.75);
  color: var(--ink-muted);
  font-weight: 600;
}

.settings-data-snapshot-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 16px;
  border: 1px solid rgba(228, 232, 239, 0.85);
  background: rgba(255, 255, 255, 0.75);
  margin-top: 10px;
}

.settings-data-snapshot-title {
  font-weight: 700;
}

.settings-data-snapshot-subtitle {
  font-size: 12px;
  color: var(--ink-muted);
  margin-top: 2px;
}

.section-heading-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

/* Today focus: per-item collapse toggle (hidden by default to preserve look) */
.today-item {
  position: relative;
}

.today-item .today-collapse-btn {
  opacity: 0;
  pointer-events: none;
  transition: opacity 120ms ease;
  position: absolute;
  top: 10px;
  right: 10px;
  width: 30px;
  height: 30px;
  border-radius: 12px;
  display: grid;
  place-items: center;
}

.today-item:hover .today-collapse-btn,
.today-item:focus-within .today-collapse-btn {
  opacity: 1;
  pointer-events: auto;
}

.today-collapsed-hint {
  color: var(--ink-muted);
  font-weight: 600;
  margin-left: 8px;
  font-size: 0.9em;
  display: none;
}

.today-item-collapsed .today-collapsed-hint {
  display: inline;
}

.today-item-collapsed .today-subtasks {
  display: none;
}

/* Timetable: sticky headers + time column (timeline view) */
.timetable-week-grid .timeline-wrap {
  position: relative;
}

.timetable-week-grid .timeline-rail-head {
  position: sticky;
  top: 0;
  left: 0;
  z-index: 6;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(6px);
}

.timetable-week-grid .timeline-cols-head {
  position: sticky;
  top: 0;
  z-index: 5;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(6px);
}

.timetable-week-grid .timeline-rail {
  position: sticky;
  left: 0;
  z-index: 4;
  background: rgba(255, 255, 255, 0.82);
}

.timetable-week-grid .timeline-day:hover {
  background: rgba(226, 232, 240, 0.35);
}

/* Calendar: subtle dots for item types */
.calendar-day {
  position: relative;
}

.calendar-dots {
  position: absolute;
  right: 10px;
  bottom: 10px;
  display: flex;
  gap: 6px;
  opacity: 0.9;
}

.calendar-dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.9);
}

.calendar-dot.deadline {
  background: rgba(249, 115, 115, 0.9);
}

.calendar-dot.study {
  background: rgba(34, 197, 94, 0.9);
}

.calendar-dot.reminder {
  background: rgba(79, 139, 255, 0.9);
}

/* Navigation active state (menu links) */
.header-menu-link-active {
  background: var(--accent-soft);
  border-radius: 12px;
}

/* Daily schedule: slightly stronger today header */
.schedule-day-today .schedule-day-header {
  background: rgba(47, 98, 244, 0.06);
  box-shadow: inset 0 0 0 1px rgba(47, 98, 244, 0.18);
}
