﻿.calendar {
  border: 2px solid #ededede0; 
  border-radius: 15px;
  background-color: #ffffff;
  margin: 10px 0;
}

.month {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px;
  background-color: #253557e0;
  color: #ffffff;
  font-weight: bold;
  font-size: 23px;
  border-radius: 13px 13px 0px 0px;
}

.week-warp {
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.week-warp div{
  position: relative;
  width: 45px;
  border-radius: 50%;
}

#prevMonth, #nextMonth {
  border: 0;
  border-radius: 50%;
  padding: 10px;
  width: 39px;
  color: #e7e7e7;
  background-color: #ffffff;
}

#prevImg, #nextImg {
  width: 17px;
  height: 14px;
}



.weekdays, .days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
}

.weekdays div {
  text-align: center;
  padding: 10px 0;
  font-weight: bold;
  font-size: 20px;
}

.sunday {
  color: red;
}

.saturday {
  color: blue;
}

.wsunday {
  background-color: red;
  color: #fff;
}

.wsaturday {
  background-color: blue;
  color: #fff;
}

#week {
  background-color: #a7a5a5;
  color: #fff;
}

.day-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.day-wrapper div {
  padding: 11px 0;
  cursor: pointer;
  position: relative;
  font-size: 15px;
  font-weight: 600;
  margin: 5px 0;
  width: 40px;
}

.prev-month, .next-month {
  color: #ccc;
}

.today {
  background-color: #fff;
  color: #000;
  border-radius: 50%;
}

.highlighted-date {
  background-color: #ffa705;
  color: #ffffff;
  border-radius: 50%;
}

.tooltip {
  display: none;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  padding: 8px;
  background-color: #333;
  color: #fff;
  border-radius: 4px;
  font-size: 12px;
  white-space: nowrap; /* 줄바꿈 금지 */
  min-width: 200px; /* 최소 너비 */
  max-width: 300px; /* 최대 너비 */
  overflow: hidden; /* 넘친 텍스트 숨김 */
  text-overflow: ellipsis; /* 넘칠 경우 생략 부호 (...) */
  z-index: 1;
}


.highlighted-date:hover .tooltip {
  display: block;
  width: 100%;
  text-align: left;
  padding: 4px 0px 4px 7px;
  font-size: 14px;
  line-height: 1.4;
}
