/* FullCalendar Custom Styles - 紫色主題 (#8458b3) */

/* ========== 全域調整 ========== */

/* 調整事件方塊 */
.fc-event {
  background: #8458b3 !important;
  border-color: #8458b3 !important;
  border-radius: 4px !important;
  font-size: 12px !important;
  cursor: pointer !important;
  padding: 10px 5px !important;
  color: white;
  white-space: wrap;
  overflow: hidden;
  text-overflow: ellipsis;
  width: 100%;
  font-size: 0.75rem;
}

.fc-event:hover {
    opacity: 0.85 !important;
}

/* 調整月檢視日期數字 */
.fc-daygrid-day-number {
    font-size: 13px;
    color: #333;
    padding: 4px 6px !important;
}

/* 週六日紅色 */
.fc-day-sun .fc-daygrid-day-number,
.fc-day-sat .fc-daygrid-day-number {
    color: #d32f2f !important;
}

/* ========== Toolbar 標題區 ========== */
.fc-toolbar-title {
    font-size: 18px !important;
    font-weight: 600 !important;
    color: #8458b3 !important;
}

/* 按鈕樣式 */
.fc-button {
    background: #f5f0fa !important;
    border: 1px solid #ddd !important;
    color: #333 !important;
    font-size: 13px !important;
    padding: 6px 12px !important;
    border-radius: 6px !important;
    cursor: pointer !important;
}

.fc-button:hover {
    background: #e8e0f0 !important;
}

.fc-button-active {
    background: #8458b3 !important;
    border-color: #8458b3 !important;
    color: white !important;
}

/* ========== 月檢視調整 ========== */

/* 週末格子淡紅色背景 */
.fc-day-sun,
.fc-day-sat {
    background: #fff5f5 !important;
}

/* 今日高亮 */
.fc-day-today {
    background: #f5f0fa !important;
}

.fc-day-today .fc-daygrid-day-number {
    background: #8458b3 !important;
    color: white !important;
    border-radius: 50% !important;
}

/* 格子边框 */
.fc-daygrid-day {
    border: 1px solid #f0f0f0 !important;
}

.fc-daygrid-day:hover {
    background: #fafafa !important;
}

.fc-day-past {
    background: #f9f9f985;
}

/*.fc-col-header-cell {
    background: grey;
} */

.fc .fc-col-header-cell-cushion {
    padding: 12px 4px;
}

/* ========== 週檢視調整 ========== */
.fc-timegrid-slot {
    height: 40px !important;
}

.fc-timegrid-slot-label {
    font-size: 11px;
    color: #888;
}

.fc-timegrid-col-sun .fc-timegrid-slot,
.fc-timegrid-col-sat .fc-timegrid-slot {
    background: #fff5f5;
}

/* ========== 列表檢視調整 ========== */
.fc-list-table {
    border-collapse: collapse;
    width: 100%;
}

.fc-list-day-cushion {
    background: #f5f0fa !important;
}

.fc-list-event:hover td {
    background: #fafafa !important;
    color: #8458b3 !important;
}

.fc .fc-list-event-time {
    /*color: #8458b3;*/
    color: white;
    font-weight: 600;
}

.fc-list-event-time:hover {
    color: #8458b3 !important;
}

.fc-list-event-graphic {
    color: white;
}

.fc-list-event-title {
    color: white;
}

.fc .fc-list-event-title:hover {
    color:#8458b3;
}

/* ========== 彈窗/Modal 調整 ========== */
.fc-popover {
    border-radius: 8px !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
}

.fc-popover-header {
    background: #8458b3 !important;
    color: white !important;
    border-radius: 8px 8px 0 0 !important;
}
