/* ------------------------------------------------------------
🌌 Timetable & Schedule Stylesheet
- Unified design for monthly schedule and timetable editor
- Modern gradients, glowing effects, organized table structure
------------------------------------------------------------ */

/* 🌌 Timetable Editor Container */
.timetable-editor {
  margin: 2rem auto;
  max-width: 1000px;
  padding: 1.5rem;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(80,0,40,0.4), rgba(20,0,60,0.4));
  box-shadow: 0 0 25px rgba(120,0,80,0.6);
  animation: rgbGlow 8s linear infinite;
}

@keyframes rgbGlow {
  0%   { box-shadow: 0 0 20px #8b0000; }
  25%  { box-shadow: 0 0 20px #4b0082; }
  50%  { box-shadow: 0 0 20px #191970; }
  75%  { box-shadow: 0 0 20px #800020; }
  100% { box-shadow: 0 0 20px #8b0000; }
}

/* ------------------------------------------------------------
📅 Schedule Table Styling (Monthly)
------------------------------------------------------------ */
table.schedule {
  width: 100%;
  border-collapse: collapse;
  text-align: center;
  overflow: hidden;
  border-radius: 12px;
}

table.schedule th,
table.schedule td {
  border: 1px solid rgba(255,255,255,0.15);
  padding: 0.8rem;
}

table.schedule th {
  background: linear-gradient(90deg, #800020, #191970);
  color: #fff;
  font-weight: bold;
}

table.schedule tr:nth-child(even) {
  background: rgba(255,255,255,0.05);
}

table.schedule tr:hover {
  background: rgba(255,255,255,0.15);
}

/* 📆 Calendar Day Cells */
.calendar-day {
  min-width: 100px;
  height: 120px;
  vertical-align: top;
  cursor: pointer;
  position: relative;
  transition: background 0.3s ease;
}

.calendar-day strong {
  display: block;
  font-size: 1.2rem;
  margin-bottom: 0.3rem;
}

.calendar-day .date-muted {
  font-size: 0.85rem;
  color: #aaa;
}

.calendar-day.empty {
  background: #fafafa;
  cursor: default;
}

/* ✅ Current Day Highlight */
.calendar-day.today {
  background: linear-gradient(135deg, #006400, #228b22);
  color: #fff;
  border: 2px solid #00ff88;
  box-shadow: 0 0 12px rgba(0,255,136,0.6);
}

/* 🌫️ Past Days */
.calendar-day.past {
  background: rgba(255,255,255,0.05);
  color: #888;
  opacity: 0.7;
}

/* 🌫️ Other-Month Days */
.calendar-day.other-month {
  background: transparent;
  color: #bbb;
  opacity: 0.4;
}

/* 📌 Activity Badge */
.badge-info {
  display: inline-block;
  margin-top: 0.4rem;
  padding: 0.3rem 0.6rem;
  border-radius: 6px;
  background: linear-gradient(45deg, #4b0082, #191970);
  color: #fff;
  font-size: 0.85rem;
}

/* ✔ / ✘ Checklist Marks */
.checkmark {
  color: #00ff88;
  font-weight: bold;
  margin-left: 4px;
}

.crossmark {
  color: #ff4444;
  font-weight: bold;
  margin-left: 4px;
}

/* ------------------------------------------------------------
📅 Weekly Timetable Styling
------------------------------------------------------------ */
table.timetable {
  width: 100%;
  border-collapse: collapse;
  text-align: center;
  border-radius: 12px;
  overflow: hidden;
}

table.timetable th,
table.timetable td {
  border: 1px solid rgba(255,255,255,0.15);
  padding: 0.8rem;
}

table.timetable th.day-header {
  background: linear-gradient(90deg, #191970, #800020);
  color: #fff;
  font-weight: bold;
}

table.timetable th.day-header.today {
  background: linear-gradient(135deg, #006400, #228b22);
  color: #fff;
  box-shadow: 0 0 12px rgba(0,255,136,0.6);
}

table.timetable th.day-header.past {
  background: rgba(255,255,255,0.05);
  color: #888;
}

.task-box {
  min-width: 120px;
  padding: 0.6rem;
  vertical-align: top;
}

.task-box.today {
  background: linear-gradient(135deg, #006400, #228b22);
  color: #fff;
}

.task-box.past {
  background: rgba(255,255,255,0.05);
  color: #888;
  opacity: 0.7;
}

.task-box.empty {
  background: #fafafa;
  color: #aaa;
}

/* ------------------------------------------------------------
🔘 Navigation Buttons
------------------------------------------------------------ */
.nav-btn {
  padding: 0.5rem 1rem;
  border-radius: 6px;
  font-weight: bold;
  border: none;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.nav-btn-primary {
  background: linear-gradient(45deg, #8b0000, #191970);
  color: #fff;
}

.nav-btn-secondary {
  background: linear-gradient(45deg, #4b0082, #800020);
  color: #fff;
}

.nav-btn-success {
  background: linear-gradient(45deg, #006400, #228b22);
  color: #fff;
}

.nav-btn:hover {
  transform: scale(1.05);
}

/* ------------------------------------------------------------
📝 Modal Styling
------------------------------------------------------------ */
.modal-content {
  border-radius: 12px;
  background: #1c1c2b;
  color: #fff;
}

.modal-header {
  border-bottom: 1px solid rgba(255,255,255,0.2);
}

.modal-footer {
  border-top: 1px solid rgba(255,255,255,0.2);
}

/* ------------------------------------------------------------
🏷️ Tag Chips & Suggestions
------------------------------------------------------------ */
.chips {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin: 0.5rem 0;
}

.chip {
  background: #e0f0ff;
  color: #034a7c;
  padding: 4px 8px;
  border-radius: 999px;
  cursor: pointer;
}

.suggestion {
  cursor: pointer;
  background: #f0f0f0;
  margin: 2px 0;
  padding: 4px 6px;
  border-radius: 4px;
  color: #000;
}

.error {
  color: red;
  font-size: 0.9rem;
  margin-top: 4px;
}

/* ------------------------------------------------------------
🌈 Rainbow Title Styling
------------------------------------------------------------ */
.rainbow-title {
  text-align: center;
  background: linear-gradient(90deg, #8b0000, #4b0082, #191970, #800020);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: rgbButton 8s ease infinite;
}

@keyframes rgbButton {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}