/* ============================================================
   GNOME CALENDAR WINDOW
   ============================================================ */
#calendar-window {
  top: 80px;
  left: 200px;
  width: 420px;
  height: 460px;
  min-width: 340px;
  min-height: 380px;
  z-index: 15;
  background: #1e1e1e;
  font-family: 'Ubuntu', 'Segoe UI', sans-serif;
  color: #eee;
}

/* --- Calendar Header Bar --- */
#calendar-header {
  display: flex;
  align-items: center;
  background: #2d2d2d;
  padding: 0 8px;
  height: 38px;
  flex-shrink: 0;
  user-select: none;
  -webkit-user-select: none;
  cursor: grab;
  border-bottom: 1px solid #3a3a3a;
  gap: 6px;
}
#calendar-header:active { cursor: grabbing; }

.calendar-nav {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 6px;
}

#calendar-title {
  flex: 1;
  font-size: 13px;
  font-weight: 500;
  color: #ccc;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  padding: 0 8px;
}

/* --- Calendar Navigation Bar --- */
#cal-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 20px;
  background: #1e1e1e;
  flex-shrink: 0;
}

#cal-month-year {
  font-size: 18px;
  font-weight: 600;
  color: #fff;
}

.cal-nav-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  color: #aaa;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.12s, color 0.12s;
  background: transparent;
  border: none;
}
.cal-nav-btn:hover {
  background: rgba(255,255,255,0.1);
  color: #fff;
}
.cal-nav-btn svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

/* --- Day Labels Row --- */
.cal-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  text-align: center;
  padding: 0 14px;
  font-size: 11px;
  color: #888;
  text-transform: uppercase;
  font-weight: 600;
  user-select: none;
}

/* --- Calendar Grid --- */
#cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  padding: 4px 14px 14px;
  gap: 2px;
}

.cal-day {
  width: 100%;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 13px;
  color: #ccc;
  cursor: pointer;
  transition: background 0.12s;
  user-select: none;
  border: none;
  background: transparent;
}
.cal-day:hover {
  background: rgba(255,255,255,0.08);
}
.cal-day.today {
  background: var(--accent-color);
  color: #fff;
  font-weight: 700;
}
.cal-day.today:hover {
  background: #d4441a;
}
.cal-day.other-month {
  color: #555;
}
.cal-day.selected:not(.today) {
  outline: 2px solid var(--accent-color);
}

/* --- Events Section --- */
#cal-events {
  padding: 0 20px 16px;
  overflow-y: auto;
  flex: 1;
  min-height: 0;
}

.cal-event {
  background: #2a2a2a;
  border-radius: 8px;
  padding: 10px 14px;
  margin-bottom: 6px;
  border-left: 3px solid var(--accent-color);
}

.cal-event-title {
  font-size: 13px;
  color: #ddd;
}

.cal-event-time {
  font-size: 11px;
  color: #888;
  margin-top: 2px;
}

.cal-no-events {
  font-size: 12px;
  color: #666;
  text-align: center;
  padding: 10px 0;
}

/* --- Resize Handle --- */
#calendar-resize-handle {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 18px;
  height: 18px;
  cursor: nwse-resize;
  z-index: 20;
}
