/* =========================
   ✅ FULLCALENDAR iOS STYLE
   (덮어쓰기 전용)
========================= */

/* 🔥 기존 버튼 스타일 초기화 */
.fc .fc-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

/* ✅ 기본 버튼 스타일 */
.fc .fc-button {
    background: #ffffff;
    border: 1px solid #e5e5ea;
    color: #111;
    border-radius: 12px;
    padding: 6px 14px;
    font-size: 13px;
    font-weight: 500;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    transition: all 0.2s ease;
}

/* hover */
.fc .fc-button:hover {
    background: #f5f5f7;
}

/* 클릭 */
.fc .fc-button:active {
    transform: scale(0.96);
    background: #ececf0;
}

/* 활성 버튼 */
.fc .fc-button.fc-button-active {
    background: #007aff;
    color: #fff;
    border-color: #007aff;
    box-shadow: 0 2px 6px rgba(0,122,255,0.25);
}

/* Today 버튼 */
.fc .fc-today-button {
    font-weight: 600;
	background: #98a1af !important;
    border-color: #98a1af !important;
    color: #fff !important;
    box-shadow: none !important;
}

/* 좌우 화살표 버튼 */
.fc .fc-prev-button,
.fc .fc-next-button {
    width: 34px;
    height: 34px;
    padding: 0;
    border-radius: 50%;
	border-color: #d8dde6 !important;
    background: #fff !important;
}

/* 버튼 그룹 깨짐 방지 */
.fc .fc-button-group > .fc-button {
    margin: 0 3px !important;
    border-radius: 10px !important;
}

/* 타이틀 */
.fc .fc-toolbar-title {
    font-size: 19px !important;
    font-weight: 700 !important;
    letter-spacing: -0.02em;
}

/* 전체 툴바 정리 */
.fc .fc-toolbar {
    margin-bottom: 10px;
    gap: 6px;
}

/* ✨ 살짝 고급 느낌 (선택사항) */
.fc .fc-button {
    backdrop-filter: blur(6px);
}


/* =========================
   카테고리 버튼 강제 덮어쓰기
========================= */

/* =========================
   CATEGORY CHIP FINAL
========================= */

#bo_cate {
    margin-bottom: 23px !important;
	
}

#bo_cate_ul {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 6px !important;
    padding: 0 !important;
    margin: 0 !important;
    list-style: none !important;
}

#bo_cate_ul > li.category {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 34px !important;
    height: 36px !important;
    line-height: 36px !important;
    padding: 0 16px !important;
    margin: 0 !important;

    background: #fff !important;
    border: 1px solid #d9e2ef !important;
    border-radius: 999px !important;
    color: #6b7280 !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    text-align: center !important;
    box-shadow: none !important;
    cursor: pointer !important;
    transition: all .18s ease !important;
}

/* hover */
#bo_cate_ul > li.category:hover {
    background: #f8fafc !important;
    border-color: #cbd5e1 !important;
    color: #374151 !important;
}

/* 선택 상태 */
#bo_cate_ul > li.category.category-active,
#bo_cate_ul > li.category.cate_on,
#bo_cate_ul > li.category.active {
    background: #eef4ff !important;
    border-color: #bfd3ff !important;
    color: #2563eb !important;
    font-weight: 600 !important;
}

/* FullCalendar 기본 버튼색 제거 */
#bo_cate_ul > li.fc-button-primary {
    background: #fff !important;
    border-color: #d9e2ef !important;
    color: #6b7280 !important;
}

#bo_cate_ul > li.fc-button-primary.category-active,
#bo_cate_ul > li.fc-button-primary.cate_on,
#bo_cate_ul > li.fc-button-primary.active {
    background: #eef4ff !important;
    border-color: #bfd3ff !important;
    color: #2563eb !important;
}


/* =========================
   RESPONSIVE
========================= */

/* 태블릿 이하 */
@media (max-width: 1024px) {
    #bo_cate {
        margin-bottom: 18px !important;
    }

    #bo_cate_ul {
        gap: 6px !important;
    }

    #bo_cate_ul > li.category {
        height: 34px !important;
        line-height: 34px !important;
        padding: 0 14px !important;
        font-size: 12px !important;
    }

    .fc .fc-toolbar-title {
        font-size: 18px !important;
    }

    .fc .fc-button {
        padding: 6px 12px;
        font-size: 12px;
    }
}

/* 모바일 */
@media (max-width: 768px) {

    /* 카테고리 스크롤 유지 */
    #bo_cate {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    #bo_cate_ul {
        flex-wrap: nowrap !important;
        width: max-content;
    }

    #bo_cate_ul > li.category {
        flex: 0 0 auto;
        height: 32px !important;
        line-height: 32px !important;
        padding: 0 12px !important;
        font-size: 12px !important;
    }

    /* 🔥 툴바 핵심 수정 */
    .fc .fc-toolbar {
        flex-wrap: nowrap !important;
        justify-content: space-between !important;
        align-items: center !important;
        gap: 6px !important;
    }

    .fc .fc-toolbar-chunk {
        display: flex;
        align-items: center;
        gap: 6px;
        width: auto !important;
    }

    /* 제목 */
    .fc .fc-toolbar-title {
        font-size: 16px !important;
        white-space: nowrap;
    }

    /* 버튼 */
    .fc .fc-button {
        padding: 5px 10px !important;
        font-size: 12px !important;
        height: 32px;
    }

    /* Today 버튼 */
    .fc .fc-today-button {
        min-width: auto;
        padding: 5px 10px !important;
    }

    /* 화살표 */
    .fc .fc-prev-button,
    .fc .fc-next-button {
        width: 32px;
        height: 32px;
    }
}

/* 작은 모바일 */
@media (max-width: 480px) {
    #bo_cate {
        margin-bottom: 14px !important;
    }

    #bo_cate_ul {
        gap: 5px !important;
    }

    #bo_cate_ul > li.category {
        height: 30px !important;
        line-height: 30px !important;
        padding: 0 10px !important;
        font-size: 11px !important;
        border-radius: 999px !important;
    }

    .fc .fc-toolbar {
        gap: 8px !important;
    }

    .fc .fc-toolbar-title {
        font-size: 16px !important;
    }

    .fc .fc-button {
        font-size: 11px !important;
        padding: 5px 10px !important;
        border-radius: 10px !important;
    }

    .fc .fc-prev-button,
    .fc .fc-next-button {
        width: 32px;
        height: 32px;
        min-width: 32px;
    }

    .fc .fc-today-button {
        min-width: 64px;
    }
}




/* =========================
   화살표 아이콘 깨짐 복구
========================= */

.fc .fc-prev-button,
.fc .fc-next-button {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 32px !important;
    height: 32px !important;
    min-width: 32px !important;
    padding: 0 !important;
    overflow: visible !important;
    color: #111827 !important;
}

/* 아이콘 자체 강제 복구 */
.fc .fc-prev-button .fc-icon,
.fc .fc-next-button .fc-icon {
    display: inline-block !important;
    width: auto !important;
    height: auto !important;
    font-size: 16px !important;
    line-height: 1 !important;
    color: #111827 !important;
    font-family: 'fcicons' !important;
    text-rendering: auto;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* 눌렀을 때도 안 사라지게 */
.fc .fc-prev-button:focus .fc-icon,
.fc .fc-prev-button:active .fc-icon,
.fc .fc-next-button:focus .fc-icon,
.fc .fc-next-button:active .fc-icon {
    color: #111827 !important;
    opacity: 1 !important;
}

/* 버튼 눌림 시 배경만 바뀌고 아이콘 유지 */
.fc .fc-prev-button:active,
.fc .fc-next-button:active,
.fc .fc-prev-button:focus,
.fc .fc-next-button:focus {
    background: #f3f4f6 !important;
    border-color: #d8dde6 !important;
    outline: none !important;
}