/**
 * FullCalendar 커스텀 스타일
 */

#calendar {
    margin-top: 10px;
}

.fc {
    font-family: 'Noto Sans KR', sans-serif;
}

.fc .fc-toolbar-title {
    font-size: 1.3em;
    font-weight: 700;
    color: var(--text-primary);
}

.fc .fc-button-primary {
    background: var(--primary-gradient);
    border: none;
    font-weight: 600;
    padding: 10px 18px;
    border-radius: var(--radius-sm) !important;
    transition: all var(--transition-normal);
}

.fc .fc-button-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.fc .fc-button-primary:disabled {
    background: #cbd5e1;
    transform: none;
    box-shadow: none;
}

.fc .fc-button-primary:not(:disabled).fc-button-active {
    background: linear-gradient(135deg, #5a6fd6 0%, #6a4190 100%);
}

.fc-theme-standard td,
.fc-theme-standard th {
    border-color: var(--border-color);
}

.fc .fc-daygrid-day-number {
    font-weight: 600;
    padding: 10px;
    font-size: 14px;
    color: var(--text-primary);
}

.fc .fc-day-sat .fc-daygrid-day-number {
    color: #3b82f6;
}

.fc .fc-day-sun .fc-daygrid-day-number {
    color: #ef4444;
}

/* 오늘 날짜 강조 */
.fc .fc-daygrid-day.fc-day-today {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.08) 0%, rgba(118, 75, 162, 0.08) 100%) !important;
}

.fc .fc-daygrid-day.fc-day-today .fc-daygrid-day-number {
    background: var(--primary-gradient);
    color: white !important;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    min-width: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 4px;
    padding: 0 !important;
    font-size: 13px !important;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.4);
    line-height: 1;
}

/* 지나간 날짜 */
.fc .fc-day-past {
    background: rgba(0, 0, 0, 0.015);
}

.fc .fc-day-past .fc-daygrid-day-number {
    color: var(--text-muted) !important;
}

.fc .fc-day-past .fc-daygrid-day-events {
    opacity: 0.5;
}

/* 주말 배경색 */
.fc .fc-day-sat {
    background: rgba(59, 130, 246, 0.03);
}

.fc .fc-day-sun {
    background: rgba(239, 68, 68, 0.03);
}

/* 공휴일 */
.fc .fc-day-holiday .fc-daygrid-day-number {
    color: #ef4444 !important;
}

.fc .fc-day-holiday {
    background: rgba(239, 68, 68, 0.06) !important;
}

/* 공휴일 이름 라벨 */
.fc .holiday-label {
    font-size: 10px;
    color: #ef4444;
    font-weight: 600;
    padding: 0 4px;
    margin-top: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

/* 이벤트 스타일 */
.fc-event {
    border: none !important;
    border-radius: 6px !important;
    padding: 4px 8px !important;
    font-size: 12px !important;
    font-weight: 500 !important;
    margin-bottom: 3px !important;
    cursor: pointer;
    transition: all var(--transition-fast);
    box-shadow: var(--shadow-sm);
}

.fc-event:hover {
    transform: translateX(2px);
    box-shadow: var(--shadow-md);
}

/* 오전/오후 동그라미는 eventContent 콜백에서 인라인으로 렌더링 */

.fc-event.holiday-event {
    background: rgba(239, 68, 68, 0.15) !important;
    color: #ef4444 !important;
    font-size: 10px !important;
    padding: 2px 6px !important;
    box-shadow: none !important;
    cursor: default !important;
    pointer-events: none;
}

.fc-event.holiday-event:hover {
    transform: none !important;
    box-shadow: none !important;
}

.fc-event.off-event {
    background: #94a3b8 !important;
    opacity: 0.7;
    font-size: 11px !important;
}

.fc-event-title {
    font-weight: 600;
}

.fc .fc-daygrid-event-dot {
    display: none;
}

.fc-daygrid-day-events {
    padding: 4px !important;
}
