.calendar-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-4);
}

.calendar-nav-title {
  font-weight: var(--font-weight-semibold);
  font-size: var(--font-size-md);
}

.timeline {
  position: relative;
  padding-left: 52px;
}

.timeline-hour {
  position: relative;
  min-height: 48px;
  border-top: 1px solid var(--color-border-soft);
}

.timeline-label {
  position: absolute;
  left: -52px;
  top: -8px;
  width: 44px;
  text-align: right;
  font-size: var(--font-size-xs);
  color: var(--color-muted);
}

.timeline-event {
  position: absolute;
  left: 0;
  right: 0;
  margin: 2px 0;
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  background: var(--color-soft);
  border-left: 3px solid var(--color-accent);
  overflow: hidden;
  cursor: pointer;
  z-index: 1;
}

.timeline-event-title {
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.timeline-event-sub {
  font-size: var(--font-size-xs);
  color: var(--color-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.timeline-event.status-pending {
  border-left-color: var(--status-pending);
  background: var(--color-warning-bg);
}

.timeline-event.status-confirmed {
  border-left-color: var(--status-confirmed);
}

.timeline-event.status-completed {
  border-left-color: var(--status-completed);
  opacity: 0.7;
}

.timeline-event.status-cancelled {
  border-left-color: var(--status-cancelled);
  opacity: 0.5;
  text-decoration: line-through;
}

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

.month-day-name {
  text-align: center;
  font-size: 10px;
  color: var(--color-muted);
  padding: var(--space-2) 0;
  font-weight: var(--font-weight-medium);
  text-transform: uppercase;
}

.month-day {
  aspect-ratio: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  font-size: var(--font-size-sm);
  cursor: pointer;
  position: relative;
}

.month-day:hover {
  background: var(--color-soft);
}

.month-day.other-month {
  color: var(--color-muted);
  opacity: 0.4;
}

.month-day.today {
  font-weight: var(--font-weight-bold);
  color: var(--color-accent);
}

.month-day.selected {
  background: var(--color-accent);
  color: #fff;
}

.month-day.has-bookings::after {
  content: '';
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--color-accent);
  position: absolute;
  bottom: 4px;
}

.month-day.selected.has-bookings::after {
  background: #fff;
}
