/* ============================================
   Custom Calendar Styles
   - 스크린샷 기반 디자인: 어두운 헤더, 컬러 도트, 리스트 형태
   ============================================ */

/* --- Common --- */
.cal-container {
  background: #E8E6E4;
  border: 1px solid #D5D3D0;
  overflow: hidden;
}

.cal-header {
  background: #666;
  padding: 12px 16px;
}

.cal-header-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cal-month {
  color: #E8E6E4;
  font-family: var(--font-en);
  font-size: 15px;
  letter-spacing: 0.03em;
}

.cal-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.cal-nav-btn {
  background: transparent;
  color: #ccc;
  border: 1px solid rgba(255,255,255,0.2);
  padding: 4px 10px;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s;
  font-family: var(--font-kr);
}

.cal-nav-btn:hover {
  background: rgba(255,255,255,0.1);
  color: #fff;
}

.cal-today-btn {
  font-size: 12px;
  margin-right: 4px;
}

/* --- Week View --- */
.cal-week-grid {
  background: #E8E6E4;
}

.cal-week-header {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  border-bottom: 1px solid #D0CECC;
}

.cal-week-day {
  text-align: center;
  padding: 10px 4px 8px;
  cursor: pointer;
  transition: background 0.2s;
  border-right: 1px solid #D0CECC;
}

.cal-week-day:last-child {
  border-right: none;
}

.cal-week-day:hover {
  background: #DDDBD8;
}

.cal-week-day.selected {
  background: #D5D3D0;
}

.cal-week-day.is-today .cal-day-num {
  background: #666;
  color: #fff;
  border-radius: 2px;
  display: inline-block;
  min-width: 28px;
  padding: 2px 4px;
}

.cal-day-label {
  font-size: 11px;
  color: #888;
  margin-bottom: 4px;
  font-family: var(--font-kr);
}

.cal-day-num {
  font-size: 22px;
  font-weight: 300;
  color: #444;
  font-family: var(--font-en);
  line-height: 1.3;
}

.cal-day-dots {
  display: flex;
  justify-content: center;
  gap: 3px;
  margin-top: 4px;
  min-height: 8px;
}

.cal-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}

/* --- Event List --- */
.cal-event-list {
  min-height: 120px;
  padding: 12px 16px;
  background: #E8E6E4;
}

.cal-no-events {
  color: #999;
  font-size: 13px;
  text-align: center;
  padding: 24px 0;
}

.cal-event-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid #D5D3D0;
}

.cal-event-item:last-child {
  border-bottom: none;
}

.cal-event-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 4px;
}

.cal-event-info {
  flex: 1;
  min-width: 0;
}

.cal-event-title {
  font-size: 14px;
  color: #333;
  font-weight: 600;
  line-height: 1.4;
}

.cal-event-time {
  font-size: 12px;
  color: #888;
  line-height: 1.5;
  margin-top: 2px;
}

.cal-pending {
  color: #888;
  font-weight: 400;
  margin-right: 2px;
}

/* --- Month View --- */
.cal-month-grid {
  background: #E8E6E4;
}

.cal-month-header {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  background: #777;
}

.cal-month-day-label {
  text-align: center;
  padding: 8px 4px;
  font-size: 12px;
  color: #ddd;
  font-family: var(--font-kr);
  font-weight: 600;
}

.cal-month-body {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
}

.cal-month-cell {
  min-height: 100px;
  padding: 6px 8px;
  border-right: 1px solid #D0CECC;
  border-bottom: 1px solid #D0CECC;
  background: #E8E6E4;
  cursor: default;
}

.cal-month-cell:nth-child(7n) {
  border-right: none;
}

.cal-month-cell.other-month {
  background: #DEDCDA;
}

.cal-month-cell.other-month .cal-cell-date {
  color: #aaa;
}

.cal-month-cell.is-today {
  background: #D8D6D3;
}

.cal-month-cell.is-today .cal-cell-date {
  background: #666;
  color: #fff;
  border-radius: 2px;
  display: inline-block;
  min-width: 22px;
  padding: 1px 4px;
  text-align: center;
}

.cal-cell-date {
  font-size: 13px;
  font-weight: 600;
  color: #555;
  font-family: var(--font-en);
  margin-bottom: 4px;
}

.cal-month-event {
  font-size: 11px;
  color: #444;
  line-height: 1.3;
  padding: 1px 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: flex;
  align-items: center;
  gap: 4px;
}

.cal-dot-sm {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
  display: inline-block;
}

.cal-month-more {
  font-size: 10px;
  color: #888;
  margin-top: 2px;
}

/* --- Floor Label --- */
.cal-floor-label {
  font-family: var(--font-en);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-align: center;
  padding: 14px 16px;
  color: #333;
  background: #fff;
  border-bottom: 1px solid #D5D3D0;
}

/* --- Responsive --- */
@media (max-width: 768px) {
  .cal-day-num {
    font-size: 16px;
  }

  .cal-day-label {
    font-size: 10px;
  }

  .cal-month-cell {
    min-height: 60px;
    padding: 4px;
  }

  .cal-month-event {
    font-size: 9px;
  }

  .cal-cell-date {
    font-size: 11px;
  }

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

  .cal-week-day {
    padding: 8px 2px 6px;
  }
}
