/* ========================================
   StarCal Custom Styles
   ======================================== */

/* Global */
body {
    font-family: 'Segoe UI', 'Apple SD Gothic Neo', sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}

/* Navbar */
.navbar-brand {
    font-size: 1.3rem;
    letter-spacing: 0.5px;
}

/* FullCalendar - 요일별 날짜 색상 */
/* 평일(월~금): 검은색 */
.fc-daygrid-day-number,
.fc-col-header-cell-cushion {
    color: #000 !important;
    text-decoration: none !important;
}

/* 토요일: 파란색 */
.fc-day-sat .fc-daygrid-day-number,
.fc-day-sat.fc-col-header-cell .fc-col-header-cell-cushion {
    color: #1a5cd8 !important;
}

/* 일요일: 빨간색 */
.fc-day-sun .fc-daygrid-day-number,
.fc-day-sun.fc-col-header-cell .fc-col-header-cell-cushion {
    color: #e00 !important;
}

/* listWeek 뷰 요일 색상 */
.fc-list-day.fc-day-sat .fc-list-day-text,
.fc-list-day.fc-day-sat .fc-list-day-side-text {
    color: #1a5cd8 !important;
}

.fc-list-day.fc-day-sun .fc-list-day-text,
.fc-list-day.fc-day-sun .fc-list-day-side-text {
    color: #e00 !important;
}

/* FullCalendar Customization */
#calendar {
    min-height: 500px;
}

.fc-toolbar-title {
    font-size: 1.1rem !important;
    font-weight: 700 !important;
}

.fc-button {
    font-size: 0.85rem !important;
    padding: 0.3rem 0.6rem !important;
}

.fc-daygrid-event {
    border-radius: 4px !important;
    font-size: 0.8rem !important;
}

.fc-list-event:hover td {
    background-color: #f0f4ff !important;
    cursor: pointer;
}

/* Color Picker */
.color-btn {
    width: 36px;
    height: 36px;
    border: 3px solid transparent !important;
    transition: transform 0.15s, border-color 0.15s;
}

.color-btn:hover {
    transform: scale(1.15);
}

.color-btn.selected {
    border-color: #000 !important;
    transform: scale(1.15);
}

/* Cards */
.card {
    border-radius: 12px;
}

/* Mobile Optimization */
@media (max-width: 576px) {
    .fc-toolbar {
        flex-direction: column;
        gap: 8px;
    }

    .fc-toolbar-chunk {
        display: flex;
        justify-content: center;
    }

    .fc-toolbar-title {
        font-size: 1rem !important;
    }

    .modal-footer {
        flex-wrap: wrap;
        gap: 8px;
    }

    #calendar {
        min-height: 400px;
    }
}

/* Loading state */
.fc-event {
    cursor: pointer;
}

/* ── 알림 벨 배지 ── */
.notif-bell-badge {
    position: absolute;
    bottom: 2px;
    right: 4px;
    display: flex;
    align-items: center;
    gap: 2px;
    background: #fd7e14;
    color: #fff;
    border-radius: 10px;
    padding: 1px 5px;
    font-size: 0.65rem;
    cursor: pointer;
    z-index: 5;
    line-height: 1.4;
    user-select: none;
    transition: background 0.15s;
}

.notif-bell-badge:hover {
    background: #e06000;
}

/* absolute 기준점: td 가 아닌 내부 frame div */
.fc-daygrid-day-frame {
    position: relative;
}

/* Auth pages */
.card-body.p-4.p-md-5 {
    border-radius: 12px;
}

/* Alerts */
.alert {
    border-radius: 8px;
    border: none;
}

/* Form controls */
.form-control:focus,
.form-select:focus {
    border-color: #4A90D9;
    box-shadow: 0 0 0 0.2rem rgba(74, 144, 217, 0.25);
}

/* Buttons */
.btn-primary {
    background-color: #4A90D9;
    border-color: #4A90D9;
}

.btn-primary:hover {
    background-color: #3778c2;
    border-color: #3778c2;
}

.navbar.bg-primary {
    background-color: #4A90D9 !important;
}
