@charset "UTF-8";

/* ============================================
   날짜 선택기 (Date Picker) 스타일
   ============================================ */

/* --------------------------------------------
   1. 컨테이너 및 기본 설정
   -------------------------------------------- */
#ui-datepicker-div { 
	z-index: 10 !important;
}

.ui-datepicker {
    display: none;
    background-color: #fff;
    border-radius: 12px;
    margin-top: 10px;
    padding: 24px;
    width: 320px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Malgun Gothic", sans-serif;
    animation: fadeInScale 0.2s ease-out;
}

.ui-widget.ui-widget-content {
    border: 1px solid #e8e8e8;
}

/* --------------------------------------------
   2. 헤더 영역
   -------------------------------------------- */
.ui-widget-header {
    border: 0;
    background: #fff;
    border-radius: 12px 12px 0 0;
}

.ui-datepicker .ui-datepicker-header {
    position: relative;
    padding: 12px 0 20px;
    border-bottom: 1px solid #f0f0f0;
    margin-bottom: 16px;
}

.ui-datepicker .ui-datepicker-title {
    margin: 0;
    line-height: 24px;
    text-align: center;
    font-size: 16px;
    font-weight: 600;
    color: #1a1a1a;
    letter-spacing: -0.3px;
}

/* --------------------------------------------
   3. 월/연도 선택 드롭다운
   -------------------------------------------- */
.ui-datepicker select.ui-datepicker-month,
.ui-datepicker select.ui-datepicker-year {
    width: 30%;
    padding: 6px 8px;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    background-color: #f8f9fa;
    font-size: 14px;
    font-weight: 500;
    color: #2c3e50;
    cursor: pointer;
    transition: all 0.2s ease;
    margin: 0 4px;
}

.ui-datepicker select.ui-datepicker-month:hover,
.ui-datepicker select.ui-datepicker-year:hover {
    border-color: #4A90E2;
    background-color: #fff;
}

.ui-datepicker select.ui-datepicker-month:focus,
.ui-datepicker select.ui-datepicker-year:focus {
    outline: none;
    border-color: #4A90E2;
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.1);
}

/* --------------------------------------------
   4. 이전/다음 버튼
   -------------------------------------------- */
.ui-datepicker-prev,
.ui-datepicker-next {
    cursor: pointer;
    position: absolute;
    top: 12px;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.ui-datepicker .ui-datepicker-prev,
.ui-datepicker .ui-datepicker-next {
    top: 9px;
}

.ui-datepicker-prev {
    left: 8px;
}

.ui-datepicker-next {
    right: 8px;
}

.ui-datepicker-prev:hover,
.ui-datepicker-next:hover {
    background-color: #f5f5f5;
}

.ui-widget-header .ui-icon {
    background-image: url('../images/layout/btns.png');
}

.ui-icon-circle-triangle-e {
    background-position: -20px 0px;
    background-size: 36px;
}

.ui-icon-circle-triangle-w {
    background-position: 0px 0px;
    background-size: 36px;
}

/* --------------------------------------------
   5. 요일 헤더
   -------------------------------------------- */
.ui-datepicker-calendar > thead > tr > th {
    padding: 12px 5px;
    font-size: 13px !important;
    font-weight: 600;
    color: #666;
    text-align: center;
}

.ui-datepicker-calendar > thead > tr > th:first-child {
    color: #ff4757 !important;
}

.ui-datepicker-calendar > thead > tr > th:last-child {
    color: #2196F3 !important;
}

/* --------------------------------------------
   6. 날짜 셀
   -------------------------------------------- */
.ui-datepicker-calendar {
    width: 100%;
    border-collapse: separate;
    border-spacing: 4px;
}

.ui-datepicker-calendar > tbody > tr > td {
    padding: 0;
    text-align: center;
}

.ui-datepicker-calendar > tbody > tr > td > a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    color: #2c3e50;
    font-size: 14px !important;
    font-weight: 500 !important;
    text-decoration: none;
    border-radius: 10px;
    transition: all 0.2s ease;
    position: relative;
}

/* 일요일 */
.ui-datepicker-calendar > tbody > tr > td:first-child a {
    color: #ff4757;
}

/* 토요일 */
.ui-datepicker-calendar > tbody > tr > td:last-child a {
    color: #2196F3;
}

/* --------------------------------------------
   7. 호버 효과
   -------------------------------------------- */
.ui-datepicker-calendar > tbody > tr > td > a:hover {
    background-color: #E8F4FD;
    transform: scale(1.05);
}

.ui-datepicker-calendar > tbody > tr > td:first-child a:hover {
    background-color: #FFEBEE;
}

.ui-datepicker-calendar > tbody > tr > td:last-child a:hover {
    background-color: #E3F2FD;
}

/* --------------------------------------------
   8. 선택된 날짜
   -------------------------------------------- */
.ui-state-active,
.ui-widget-content .ui-state-active,
.ui-widget-header .ui-state-active {
    background: #4A90E2 !important;
    color: #fff !important;
    font-weight: 600 !important;
    box-shadow: 0 2px 8px rgba(74, 144, 226, 0.3);
}

/* --------------------------------------------
   9. 오늘 날짜
   -------------------------------------------- */
.ui-state-highlight,
.ui-widget-content .ui-state-highlight,
.ui-widget-header .ui-state-highlight {
    background: #FFF9E6 !important;
    border: 2px solid #FFC107 !important;
    border-radius: 10px;
    font-weight: 600;
    color: #F57C00 !important;
}

.ui-state-highlight:hover {
    background: #FFF3CD !important;
}

/* --------------------------------------------
   10. 비활성 날짜
   -------------------------------------------- */
.ui-state-disabled,
.ui-datepicker-calendar > tbody > tr > .ui-state-disabled {
    cursor: not-allowed;
    opacity: 0.3;
}

.ui-datepicker-calendar > tbody > tr > .ui-state-disabled:hover {
    background-color: transparent;
    transform: none;
}

.ui-datepicker-calendar > tbody > tr > .ui-state-disabled a {
    cursor: not-allowed;
}

/* --------------------------------------------
   11. 기본 상태 스타일 재설정
   -------------------------------------------- */
.ui-state-default,
.ui-widget-content .ui-state-default,
.ui-widget-header .ui-state-default,
.ui-button,
html .ui-button.ui-state-disabled:hover,
html .ui-button.ui-state-disabled:active {
    border: 0;
    background-color: transparent;
    font-weight: normal;
    color: #454545;
    text-align: center;
}

.ui-state-hover,
.ui-widget-content .ui-state-hover,
.ui-widget-header .ui-state-hover,
.ui-state-focus,
.ui-widget-content .ui-state-focus,
.ui-widget-header .ui-state-focus,
.ui-button:hover,
.ui-button:focus {
    border: 0;
    background-color: transparent;
    font-weight: normal;
}

/* --------------------------------------------
   12. 입력 필드 스타일
   -------------------------------------------- */
.inp {
    padding: 12px 16px;
    background-color: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
    font-size: 14px;
    transition: all 0.2s ease;
    color: #2c3e50;
}

.inp:focus {
    outline: none;
    background-color: #fff;
    border-color: #4A90E2;
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.1);
}

.inp::placeholder {
    color: #adb5bd;
}

/* --------------------------------------------
   13. 애니메이션
   -------------------------------------------- */
@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(-10px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* --------------------------------------------
   14. 반응형
   -------------------------------------------- */
@media (max-width: 1200px) {
    #ui-datepicker-div { 
        z-index: 10000!important;
        top: auto!important;
        bottom: 0!important;
        left: 0!important;
        overflow: auto;
    }
    
}

@media (max-width: 768px) {
    .ui-datepicker {
        width: 280px;
        padding: 20px;
    }
    
    .ui-datepicker-calendar > tbody > tr > td > a {
        width: 34px;
        height: 34px;
        font-size: 13px !important;
    }
}
