/* ── CALENDAR + TODO PANEL ─────────────────────────── */
.calendar-view {
  padding: 20px;
  max-width: 960px;
}

.calendar-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.cal-title {
  font-size: 20px;
  font-weight: 800;
  color: var(--tx);
  flex: 1;
  letter-spacing: -0.3px;
}

.cal-nav-btn {
  background: var(--bg2);
  border: 1px solid var(--b2);
  border-radius: 8px;
  color: var(--tx);
  font-size: 16px;
  padding: 6px 12px;
  cursor: pointer;
  transition: background .12s, transform .1s;
}
.cal-nav-btn:hover { background: var(--b1); transform: scale(1.05); }

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

.cal-day-header {
  font-size: 10px;
  font-weight: 700;
  color: var(--t3);
  text-align: center;
  padding: 4px 0 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.cal-day {
  min-height: 82px;
  background: var(--bg2);
  border: 1px solid var(--b1);
  border-radius: 8px;
  padding: 7px;
  font-size: 11px;
  color: var(--t2);
  cursor: pointer;
  transition: background .12s, border-color .12s, transform .1s;
  vertical-align: top;
  overflow: hidden;
}
.cal-day:hover {
  background: var(--b1);
  transform: translateY(-1px);
  border-color: var(--b2);
}
.cal-day.today {
  border-color: var(--accent);
  background: var(--accent-d);
}
.cal-day.selected {
  background: var(--accent-d) !important;
  border-color: var(--accent) !important;
  box-shadow: 0 0 0 2px var(--accent-d);
}
.cal-day.other-month { opacity: .3; }
.cal-day.has-urgent  { border-left: 3px solid var(--red, #ef4444); }
.cal-day.has-todos   { border-left: 3px solid var(--accent); }

.cal-day-num {
  font-size: 13px;
  font-weight: 700;
  color: var(--tx);
  margin-bottom: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
}
.today .cal-day-num {
  background: var(--accent);
  color: #fff;
}

.cal-todo-dot {
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 50%;
  margin-right: 3px;
  vertical-align: middle;
  flex-shrink: 0;
}

/* Todos list */
.todos-list { display: flex; flex-direction: column; gap: 5px; }

.todo-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: var(--bg2);
  border: 1px solid var(--b1);
  border-radius: 8px;
  padding: 10px 12px;
  transition: border-color .12s, background .12s;
}
.todo-item:hover { border-color: var(--b2); background: var(--b1); }

.todo-check {
  width: 18px; height: 18px;
  border-radius: 50%;
  border: 2px solid var(--b2);
  flex-shrink: 0;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  margin-top: 1px;
  transition: background .12s, border-color .12s;
}
.todo-check:hover { border-color: var(--accent); }
.todo-check.done { background: var(--green, #3dba6e); border-color: var(--green, #3dba6e); }

.todo-title { font-size: 13px; color: var(--tx); flex: 1; line-height: 1.4; }
.todo-item.done .todo-title { text-decoration: line-through; color: var(--t3); }

.todo-due  { font-size: 10.5px; color: var(--t3); white-space: nowrap; padding-top: 2px; }

.todo-priority-dot {
  width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; margin-top: 4px;
}
.priority-urgent { background: var(--red, #ef4444); }
.priority-high   { background: var(--amber, #f5a623); }
.priority-medium { background: var(--accent); }
.priority-low    { background: var(--t3); }
