/* css/calendar.css — BirdiePlanner Unified Luxury White Calendar */
#screen-calendar {
  background: #f8fafc;
}

.cal-main-container {
  padding: 12px 14px 12px;
}

/* ── CALENDAR WHITE CARD CONTAINER ── */
.cal-card-box {
  background: #ffffff;
  padding: 16px 14px 12px;
  border-radius: 18px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
  margin: 0 0 12px 0;
}

/* ── 월 이동 네비게이션 헤더 (< 2026년 10월 >) ── */
.cal-nav-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  padding: 0 8px;
}
.cal-nav-title {
  font-size: 22px;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.5px;
}
.cal-nav-arrow {
  background: transparent;
  border: none;
  color: #94a3b8;
  padding: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.15s ease;
}
.cal-nav-arrow:active {
  color: #0f172a;
  background: #f1f5f9;
  transform: scale(0.92);
}

/* ── 요일 헤더 (일 월 화 수 목 금 토) ── */
.cal-weekdays-row {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  text-align: center;
  font-size: 14.5px;
  font-weight: 800;
  color: #64748b;
  margin-bottom: 8px;
}
.cal-weekdays-row div:first-child {
  color: #ef4444; /* 일요일 빨강 */
}

/* ── 날짜 그리드 ── */
.cal-days-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 1px;
  align-content: start;
  grid-auto-rows: 70px;
}

.cal-day {
  height: 70px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding-top: 5px;
  box-sizing: border-box;
  border-radius: 8px;
  position: relative;
  cursor: pointer;
  background: transparent;
  transition: background 0.15s ease;
}
.cal-day:not(.empty):active {
  background: rgba(0, 0, 0, 0.04);
}
.cal-day.selected {
  background: transparent !important;
  border: 2px solid #0f172a;
}

.cal-day-num {
  font-size: 16px;
  font-weight: 800;
  color: #1e293b;
  z-index: 1;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  line-height: 1;
}

/* 일요일 숫자 빨간색 */
.cal-days-grid .cal-day:nth-child(7n+1) .cal-day-num {
  color: #ef4444;
}

/* 오늘 날짜 하이라이트 */
.cal-day.today .cal-day-num {
  background: #007aff;
  color: #ffffff !important;
}

/* 지난 날짜 흐리게 */
.cal-day.past-date .cal-day-num {
  opacity: 0.45;
}

/* ── 일정 칩 배지 (첫 이미지와 동일한 세련된 칩 스타일) ── */
.cal-event-chip {
  position: absolute;
  bottom: 4px;
  background: #eff6ff;
  color: #1d4ed8;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 4px;
  border-radius: 6px;
  border: 1px solid #dbeafe;
  line-height: 1.15;
  box-shadow: 0 1px 3px rgba(37, 99, 235, 0.08);
  display: flex;
  align-items: center;
  gap: 3px;
  width: 92%;
  box-sizing: border-box;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cal-chip-bar {
  width: 2px;
  height: 9px;
  background: #007aff;
  border-radius: 2px;
  flex-shrink: 0;
}
.cal-chip-name {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 11px;
  font-weight: 700;
}
