/* ==========================================================================
   CALENDAR & AGENDA STYLES (OVERFLOW-SAFE, PRODUCTION READY)
   ========================================================================== */

.calendar-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  padding: 0.8rem;
  box-shadow: var(--shadow-xs);
  margin-bottom: 0.75rem;
  overflow: hidden;
}

.calendar-header-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.65rem;
}

.calendar-month-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--primary-900);
}

.calendar-nav-arrows {
  display: flex;
  gap: 0.35rem;
}

.cal-nav-btn {
  width: 30px;
  height: 30px;
  border-radius: var(--radius-sm);
  background: var(--bg-subtle);
  color: var(--text-main);
  font-size: 0.76rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.cal-nav-btn:hover {
  background: var(--border-strong);
}

.calendar-weekdays-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  text-align: center;
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 0.35rem;
}

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

.cal-day-cell {
  aspect-ratio: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-main);
  position: relative;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.cal-day-cell:hover {
  background: var(--bg-subtle);
}

.cal-day-cell.other-month {
  color: var(--border-strong);
}

.cal-day-cell.today {
  border: 1.5px solid var(--accent-gold-500);
  font-weight: 800;
}

.cal-day-cell.selected {
  background: var(--primary-900) !important;
  color: #ffffff !important;
}

.cal-day-cell.has-conflict {
  background: var(--status-urgent-bg);
}

.cal-dots-strip {
  display: flex;
  gap: 2px;
  position: absolute;
  bottom: 2px;
}

.cal-dot {
  width: 4px;
  height: 4px;
  border-radius: var(--radius-full);
  background: var(--accent-gold-500);
}

.cal-dot.urgent {
  background: var(--status-urgent);
}

/* Day Agenda Section */
.day-agenda-section {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.day-agenda-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--primary-900);
}
