/* client/public/css/style.css - 메인 스타일 */

/* 기본 폰트 및 배경 설정 */
@import url('https://cdn.jsdelivr.net/gh/orioncactus/pretendard/dist/web/static/pretendard.css');

body {
    font-family: 'Pretendard', sans-serif;
    color: #333;
}

/* 로고 스타일 */
.logo-text {
    font-weight: 800;
    letter-spacing: -1px;
    cursor: pointer;
}

/* 상단 유저 정보 영역 */
.user-pill {
    background: white;
    padding: 6px 16px;
    border-radius: 50px;
    border: 1px solid #eee;
    display: flex;
    align-items: center;
    gap: 10px;
}

.settings-link {
    color: #adb5bd;
    transition: color 0.2s;
}
.settings-link:hover { color: #0d6efd; }

.btn-logout {
    padding: 0.5rem 1.2rem;
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: 50px;
    background: white;
    border: 1px solid #eee;
    transition: all 0.2s;
}
.btn-logout:hover {
    background-color: #fff5f5;
    color: #dc3545;
    border-color: #ffc9c9;
}

/* 통계 카드 디자인 */
.stat-card {
    background: white;
    border-radius: 1.25rem;
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    transition: transform 0.2s;
}
.stat-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: #6c757d;
    margin-bottom: 4px;
    display: block;
}
.stat-value {
    font-size: 1.4rem;
    font-weight: 800;
}
.stat-value small {
    font-size: 0.9rem;
    margin-left: 2px;
    font-weight: 500;
}

/* 계산기 위젯 */
.calc-result-box {
    background-color: #eef2ff;
    padding: 1rem 1.5rem;
    border-radius: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid rgba(13, 110, 253, 0.1);
}

/* 캘린더 커스텀 */
.calendar-container {
    background: white;
    border-radius: 1.5rem;
}

.fc-day-sun { background-color: #fffafa !important; } /* 일요일 배경 */
.fc-day-sat { background-color: #f8fbff !important; } /* 토요일 배경 */

.fc-day-sun .fc-col-header-cell-cushion,
.fc-day-sun .fc-daygrid-day-number { color: #dc3545 !important; }

.fc-day-sat .fc-col-header-cell-cushion,
.fc-day-sat .fc-daygrid-day-number { color: #0d6efd !important; }

.fc .fc-day-today {
    background-color: #f8faff !important;
    box-shadow: inset 0 0 0 2px #0d6efd;
}

.holiday-text {
    color: #dc3545 !important;
    font-weight: 600;
    font-size: 0.72rem;
    margin-top: 2px;
}

.work-tag {
    font-size: 0.7rem;
    font-weight: 600;
    padding: 3px 6px;
    border-radius: 5px;
    background-color: rgba(13, 110, 253, 0.08);
    color: #0d6efd;
}

/* 달력 내 이벤트 텍스트가 줄바꿈 없이 깔끔하게 보이도록 */
.fc-event-memo, .fc-event-amount {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: white !important; /* 배경색이 진하므로 흰색 유지 */
}

/* 1. 달력 헤더 및 커스텀 네비게이션 버튼 스타일 */
.fc .fc-toolbar {
    margin-bottom: 1.5rem !important;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

/* 제목과 오늘 버튼 사이 간격 조절 */
.fc .fc-toolbar-title {
    display: inline-block;
    margin-right: 15px !important;
    vertical-align: middle;
}

/* 커스텀 버튼 (≪, <, >, ≫) 및 기본 버튼 통합 디자인 */
.fc .fc-button {
    background-color: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    color: #475569 !important;
    font-weight: 600 !important;
    padding: 6px 12px !important;
    font-size: 0.9rem !important;
    transition: all 0.2s ease;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05) !important;
}


.fc .fc-button:hover {
    background-color: #f1f5f9 !important;
    color: #1e293b !important;
    border-color: #cbd5e1 !important;
}

.fc .fc-button-primary:not(:disabled):active, 
.fc .fc-button-primary:not(:disabled).fc-button-active {
    background-color: #e2e8f0 !important;
    border-color: #94a3b8 !important;
    color: #0f172a !important;
}

/* 오늘(today) 버튼 별도 강조 */
.fc .fc-today-button {
    background-color: #3b82f6 !important;
    border-color: #3b82f6 !important;
    color: #ffffff !important;
    opacity: 1 !important;
    margin-bottom: 4px !important; /* 제목과 높이 맞추기 */
}

.fc .fc-today-button:hover {
    background-color: #2563eb !important;
    border-color: #2563eb !important;
    color: #ffffff !important;
}

/* 2. 공휴일 및 이벤트 시각적 강화 */

/* 공휴일 이벤트 스타일 (eventDidMount에서 활용) */
.fc-event.holiday-event {
    background-color: transparent !important;
    border: none !important;
    padding: 0 !important;
}

.holiday-label {
    color: #dc3545;
    font-size: 0.75rem;
    font-weight: 700;
    margin-top: 2px;
    padding-left: 4px;
}

/* 유급/무급 등 근무 상태 태그 스타일 보완 */
.work-tag-paid {
    background-color: #ecfdf5 !important;
    color: #059669 !important;
    border: 1px solid #10b98133 !important;
}

.work-tag-unpaid {
    background-color: #fef2f2 !important;
    color: #dc2626 !important;
    border: 1px solid #ef444433 !important;
}

/* 3. 모달 내 알림 UI (공휴일 감지 시 표시) */
#holidayNotice {
    font-size: 0.85rem;
    font-weight: 600;
    padding: 8px 12px;
    border-radius: 8px;
    background-color: #fff1f2;
    color: #e11d48;
    border: 1px solid #fda4af;
    margin-bottom: 15px;
}

/* 4. 애니메이션: 예상 금액 복사 시 강조 효과 */
@keyframes highlight-fade {
    from { background-color: #e8f0fe; }
    to { background-color: transparent; }
}

.copy-highlight {
    animation: highlight-fade 1s ease-out;
}

/* 캘린더 커스텀 */
.fc-day-sun { background-color: #fffafa !important; }
.fc-day-sat { background-color: #f8fbff !important; }
.fc-day-sun .fc-col-header-cell-cushion, .fc-day-sun .fc-daygrid-day-number { color: #dc3545 !important; }
.fc-day-sat .fc-col-header-cell-cushion, .fc-day-sat .fc-daygrid-day-number { color: #0d6efd !important; }

/* 버튼 디자인 및 간격 */
.fc .fc-toolbar {
    margin-bottom: 1.5rem !important;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.fc .fc-toolbar-title {
    font-size: 1.2rem !important;
    font-weight: 700;
    color: #334155;
}

.fc .fc-button {
    background-color: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    color: #475569 !important;
    font-weight: 600 !important;
    padding: 6px 12px !important;
    transition: all 0.2s;
}

.fc .fc-button:hover {
    background-color: #f1f5f9 !important;
}

.fc .fc-today-button {
    background-color: #3b82f6 !important;
    border-color: #3b82f6 !important;
    color: #ffffff !important;
}

/* 공휴일 라벨 스타일 */
.holiday-label {
    color: #dc3545;
    font-size: 0.75rem;
    font-weight: 700;
    margin-top: 2px;
    padding-left: 4px;
}

/* 모달 알림 */
#holidayNotice {
    background-color: #fff1f2;
    color: #e11d48;
    padding: 10px;
    border-radius: 8px;
    margin-bottom: 10px;
}

/* 1. 툴바 전체 레이아웃 설정 */
.fc .fc-toolbar {
    display: flex;
    justify-content: space-between; /* 왼쪽, 중앙, 오른쪽 균형 잡기 */
    align-items: center;
    margin-bottom: 2rem !important;
}

/* 2. 각 버튼 그룹 내의 버튼들 사이에 간격 주기 */
.fc .fc-button-group > .fc-button {
    margin: 0 4px !important; /* 버튼 좌우에 4px씩 여백 (총 8px) */
    border-radius: 8px !important; /* 버튼 모서리를 살짝 둥글게 */
}

/* 3. 중앙 제목과 '오늘' 버튼 스타일 */
.fc .fc-toolbar-title {
    font-size: 1.4rem !important;
    font-weight: 800;
    color: #1e293b;
    margin-right: 12px !important; /* 제목과 오늘 버튼 사이 간격 */
}

.fc .fc-today-button {
    margin-left: 10px !important;
    background-color: #f8fafc !important;
    border: 1px solid #cbd5e1 !important;
    color: #475569 !important;
    padding: 4px 12px !important;
    font-size: 0.85rem !important;
    text-transform: uppercase;
}

/* 4. 버튼 호버 효과 (마우스 올렸을 때) */
.fc .fc-button:hover {
    background-color: #f1f5f9 !important;
    border-color: #94a3b8 !important;
}

/* 5. 비활성화된 버튼 스타일 (선택 사항) */
.fc .fc-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* 버튼들 사이 간격 추가 */
.fc .fc-toolbar-ltr .fc-button-group > .fc-button {
    margin: 0 3px !important; 
    border-radius: 6px !important;
}

/* 제목과 오늘 버튼 사이 간격 */
.fc-toolbar-title {
    margin-right: 15px !important;
    font-weight: bold;
}

/* 오늘 버튼 스타일 살짝 조정 */
.fc .fc-today-button {
    background-color: #f8fafc !important;
    border-color: #cbd5e1 !important;
    color: #334155 !important;
}