@charset "utf-8";

#calendar.fc {
}

#addEventBtn {
  font-size: 16px;
  padding: 10px 20px;
  background-color: #fabb34;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  margin-top: 14px;
  font-weight: 600;
}

#addEventBtn:hover {
  background-color: #edb02b;
}

/* 모달 스타일 */
.modal {
  display: none;
  position: fixed;
  width: 100vw;
  height: 100vh;
  top: 0;
  left: 0;
  z-index: 10000;
}

.modal-overlay {
  position: absolute;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  cursor: pointer;
}

.modal-content {
  width: 90%;
  height: 70%;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  gap: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background-color: white;
}

.modal-content:hover {
  cursor: default;
}

/* 일정없음 메세지 */
.eventViewModal_content_message {
  font-size: 16px;
  font-weight: 500;
  color: #666;
  text-align: center;
  margin-top: 30px;
}

#viewEventModal {
  width: 100%;
  height: 100%;
  padding: 20px;
  display: flex;
  flex-direction: column;
}

.eventViewModal_content_header {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
}

.eventViewModal_content_header h3 {
  font-size: 18px;
  font-weight: 600;
  color: #333;
  text-align: center;
  margin-bottom: 0;
}

.modal-eventViewModal_content_header span {
  line-height: normal;
}

/* 닫기 버튼 스타일 */
.close {
  font-size: 28px;
  font-weight: bold;
  color: #aaa;
  cursor: pointer;
  transition: color 0.3s;
}

.close:hover {
  color: #333;
}

.eventViewModal_content_body {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 20px;
  overflow-y: scroll;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE and Edge */
}

/* Chrome, Safari, Opera에서 스크롤바 숨기기 */
.eventViewModal_content_body::-webkit-scrollbar {
  display: none;
}

.event-detail {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 20px;
  background-color: #f3f6fa;
  border-radius: 8px;
}

.event-time {
  font-size: 14px;
  font-weight: 500;
  color: #666;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.deleteBtn {
  font-size: 14px;
  font-weight: 500;
  color: #ffffff;
  background-color: #ff3f3f;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  padding: 5px 10px;
}

.event-title {
  font-size: 16px;
  font-weight: 600;
  color: #333;
}

.fc-event {
  pointer-events: none !important;
}

.fc-event-title {
  pointer-events: none !important;
}

.fc-event-time {
  pointer-events: none !important;
}

.fc .fc-toolbar .fc-prev-button {
  margin-right: 14px; /* ← prev와 today 사이 간격 */
}

/* 셀스타일 */
.fc-day.fc-daygrid-day:hover {
  background-color: #f3f6fa;
  cursor: pointer;
}

/* 모든 FullCalendar 버튼의 focus 시 테두리 제거 */
.fc .fc-button:focus {
  outline: none;
  box-shadow: none;
}

/* 좌버튼, today버튼 모서리 오버라이딩 */
.fc-direction-ltr .fc-button-group > .fc-button:not(:last-child) {
  border-radius: 4px;
}
.fc-direction-ltr .fc-button-group > .fc-button:not(:first-child) {
  border-radius: 4px;
}

.fc .fc-button-primary {
  background-color: #fff;
  border-color: #fff;
  color: #333;
}

.fc .fc-button-primary:hover {
  background-color: #f3f6fa;
  border-color: #f3f6fa;
  color: #000;
}

/* 클릭 상태일 때 배경색/테두리색 변경 */
.fc .fc-button:active {
  background-color: #f9c041 !important; /* 원하는 색상 */
  border-color: #f9c041 !important;
  color: #fff !important;
  box-shadow: none !important; /* 눌리는 효과 없애기 */
}

.fc .fc-toolbar-title {
  font-size: 18px;
  font-weight: 600;
  color: #565656;
}
