﻿.calendar-container {
    position: relative;
    font-family: "ICPangeaText";
}

.calendar-modal {
    display: none;
    position: absolute;
    background: white;
    border: 1px solid #ccc;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    z-index: 1001;
    left: 50%;
    top: 40%;
    transform: translate(-50%, -50%);
    border-radius: 16px;
    height: 470px;
}

.calendar-header {
    display: flex;
    align-items: center;
    padding: 10px;
    background: #F7F8F9;
    border-bottom: 1px solid #ddd;
    flex-direction: column;
    height: 84px;
    justify-content: space-between;
    width: 330px;
    border-radius: 16px 16px 0 0;
}



.datePickerHead {
    width: 322px;
    border-radius: 8px 8px 0px 0px;
    display: flex;
    align-items: center;
    font-size: 20px;
    padding: 14px;
    position: relative;
    justify-content: center;
}

.closeIcon {
    left: 19px;
    position: absolute;
    cursor: pointer;
}

.datePickeDate {
    display: flex;
    justify-content: space-between;
    width: 322px;
    align-items: center;
}

.calendar-header #calendarYear,
.calendar-header button,
.monthPickerContainer {
    padding: 5px;
    margin: 0 5px;
    font-size: 18px;
    border: none;
    background-color: transparent;
}

.monthPickerContainer {
    display: flex;
    align-items: center;
}

.calendar-header .month-navigator {
    display: flex;
    align-items: center;
}

#prevMonth, #nextMonth {
    cursor: pointer;
    color: black;
}

.calendar-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
    padding: 10px;
}

    .calendar-days div {
        width: 42px;
        height: 38px;
        display: flex;
        justify-content: center;
        align-items: center;
        cursor: pointer;
        font-size: 16px;
    }



        .calendar-days div:hover:not(.disabled, .calendar-day-name) {
            width: 38px;
            height: 34px;
            border-radius: 10px;
            font-weight: 600;
            border: 2px solid #3F3FEA;
            background-color: #ECECFD;
        }

.calendar-day-name {
    font-weight: bold;
    cursor: default !important;
}

.today {
    width: 38px !important;
    height: 34px !important;
    border-radius: 10px;
    border: 1px solid #3F3FEA;
}

.selected {
    width: 38px !important;
    height: 34px !important;
    border-radius: 10px;
    font-weight: 600;
    border: 2px solid #3F3FEA;
    background-color: #ECECFD;
}



/*.datePickeDate span.select2.select2-container.select2-container--default.select2-container--below,
.select2.select2-container.select2-container--default {
    width: auto !important;
}*/

.result__option {
    z-index: 1002;
}

    .result__option ul {
        margin: 0;
        padding: 5px 0;
    }

        .result__option ul::-webkit-scrollbar {
            border-radius: 10px;
            width: 4px;
        }

        .result__option ul::-webkit-scrollbar-thumb {
            background-color: #C6C6C6;
            border-radius: 10px;
        }

.overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.75);
    z-index: 1000;
}

.calendar-button {
    display: block;
    width: 214px;
    height: 40px;
    border-radius: 4px;
    background-color: #000;
    color: #f0f0f0;
    margin: auto auto 32px;
    bottom: 0;
    position: absolute;
    right: 50%;
    transform: translateX(50%);
    cursor: pointer;
    font-family: "ICPangeaText";
    letter-spacing: 0.6px;
}

.disabled {
    color: #ccc;
    cursor: default !important;
}

@media screen and (max-width:768px) {
    .calendar-modal {
        position: fixed;
        left: unset;
        top: unset;
        transform: unset;
        border-radius: 16px 16px 0 0;
        width: 100%;
        bottom: 0;
    }

    .calendar-header {
        width: calc(100% - 20px);
    }

        .calendar-header #calendarYear, .calendar-header button, .monthPickerContainer {
            padding: 0;
            margin: 0;
            font-size: 16px;
            gap: 8px;
        }
}
