/* 🌈 Color Palette: Boyish (charcoal, olive, amber, steel) */
:root {
  --bg: #f6f7f8;
  --text: #1e1e1e;
  --card: #ffffff;
  --input: #f9fafb;
  --btn: #556b2f;       /* Olive */
  --btn-text: #fff;
  --border: #cbd5e1;
  --highlight: #f59e0b;  /* Amber */
  --badge: #6b7280;      /* Steel */
  --badge-text: #fef3c7;
}

.dark {
  --bg: #1c1c1c;
  --text: #e5e7eb;
  --card: #2a2a2a;
  --input: #374151;
  --btn: #3b3b3b;
  --btn-text: #fef9c3;
  --border: #555;
  --highlight: #fbbf24;
  --badge: #4b5563;
  --badge-text: #fff7cc;
}

/* 🌐 Base */
body {
  font-family: 'Segoe UI', sans-serif;
  background-color: var(--bg);
  color: var(--text);
  margin: 0;
  padding: 16px;
}

/* 📦 Container */
.container {
  max-width: 900px;
  margin: auto;
  padding: 20px;
  background: var(--card);
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

/* 🧱 Header */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
h1 {
  font-size: 32px;
  color: var(--highlight);
  margin: 0;
}
#themeToggle {
  background: none;
  font-size: 24px;
  cursor: pointer;
  border: none;
  color: var(--text);
}

/* 🗓️ Day Controls */
.day-controls {
  margin: 20px 0;
}
#daySelector {
  padding: 10px;
  border-radius: 10px;
  background: var(--input);
  border: 2px solid var(--highlight);
  font-weight: bold;
}
.date {
  font-size: 14px;
  margin-top: 10px;
  color: var(--badge);
}

/* 🧩 Planner Grid */
.planner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

/* 🧾 Task Cards */
.time-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--input);
  border-left: 5px solid var(--highlight);
  border-radius: 12px;
  padding: 14px 16px;
  transition: 0.3s;
}
.time-card.current {
  border-left-color: var(--btn);
  background: #fffbe6;
}
.time-card span {
  width: 60px;
  font-weight: bold;
}
.time-card input {
  flex: 1;
  margin: 0 10px;
  padding: 10px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--text);
}
.add-btn {
  background: var(--btn);
  color: var(--btn-text);
  border: none;
  padding: 8px 14px;
  border-radius: 8px;
  font-weight: bold;
  cursor: pointer;
}
.add-btn:hover {
  background-color: #2e3f1f;
}

/* 🧹 Action Buttons */
.actions {
  margin-top: 24px;
}
.actions button {
  width: 100%;
  padding: 14px;
  margin-bottom: 10px;
  font-size: 16px;
  background: var(--btn);
  color: var(--btn-text);
  border: none;
  border-radius: 10px;
}
.actions button:hover {
  background: #404e2d;
}

/* 🧁 Toast */
#toast {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: var(--highlight);
  color: var(--btn-text);
  padding: 12px 20px;
  border-radius: 8px;
  opacity: 0;
  transition: opacity 0.5s ease;
  z-index: 1000;
}
#toast.show {
  opacity: 1;
}

/* 🧳 Modal */
.modal {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  z-index: 999;
}
.modal-content {
  background: var(--card);
  margin: 10% auto;
  padding: 20px;
  border-radius: 14px;
  width: 90%;
  max-width: 600px;
}
#weeklyContent h3 {
  margin-top: 12px;
  border-bottom: 1px dashed var(--border);
}
#closeModal {
  float: right;
  font-size: 24px;
  cursor: pointer;
}
