/* 自訂行事曆樣式 */

/* 設定行事曆高度，避免太扁 */
#calendar {
    max-width: 1100px;
    margin: 0 auto;
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

/* 週末背景色設定 */

/* 週日 (Sunday) - 紅色系 */
.fc-day-sun,
.holiday-red {
    background-color: #fff0f0;
}

/* 週六 (Saturday) - 綠色系 */
.fc-day-sat {
    background-color: #f0fff0;
}

/* 樣式調整：日期數字與週標題 */
.fc-daygrid-day-number,
.fc-col-header-cell-cushion {
    text-decoration: none !important;
    /* 移除底線 */
    color: #000 !important;
    /* 黑色文字 (預設) */
    font-size: 20px !important;
    /* 字體放大 */
}

/* 週日 (Sunday) - 文字紅色 */
.fc-day-sun .fc-col-header-cell-cushion,
.fc-day-sun .fc-daygrid-day-number {
    color: #dc3545 !important;
}

/* 週六 (Saturday) - 文字綠色 */
.fc-day-sat .fc-col-header-cell-cushion,
.fc-day-sat .fc-daygrid-day-number {
    color: #198754 !important;
}

/* 自訂事件樣式 */
.fc-event {
    background-color: rgba(255, 255, 255, 0.8) !important;
    /* 白色圖塊 + 透明度 */
    border: 1px solid #ddd !important;
    /* 增加邊框以區分背景 */
    box-shadow: 0 2px 3px rgba(0, 0, 0, 0.1);
    /* 增加陰影增加層次感 */
    text-align: center !important;
    /* 文字置中 */
    justify-content: center !important;
    /* Flex 佈局水平置中 */
}

.fc-event-title,
.fc-event-time {
    color: #000 !important;
    /* 文字黑色 */
    font-weight: bold !important;
    /* 文字粗體 */
    text-align: center !important;
    /* 確保標題與時間都置中 */
    display: block !important;
    /* 強制為區塊元素以便置中 */
    font-size: 18px !important;
    /* 字體放大 */
}