.custom-datepicker-popup {
    position: absolute;
    border: 1px solid #ccc;
    border-radius: 0 0 1rem 1rem;
    background-color: #fff;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    z-index: 99999;
    padding: 10px;
    width: 100%;
    min-width: 260px;
    max-width: 260px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    box-shadow: rgba(0, 0, 0, 0.16) 0px 3px 6px, rgba(0, 0, 0, 0.23) 0px 3px 6px;
}


[data-theme="dark"] .custom-datepicker-popup {
    background-color: #000;
}

.custom-datepicker-popup.hidden {
    display: none;
}

.custom-datepicker-popup select {
    display: block;
    margin: 0 auto;
    text-align: center;
    text-align-last: center;
    box-shadow: rgba(50, 50, 93, 0.25) 0px 2px 0px -1px, rgba(0, 0, 0, 0.3) 0px 1px 3px -1px;
    border: 0;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background: transparent;
    border-top: 1px solid #ccc;
    border-bottom: 1px solid #ccc;
    border-radius: 0;
    padding: 8px;
    cursor: pointer;
    height: 40px
}

[data-theme="dark"] .custom-datepicker-popup select option {
    background-color: #000;
}

[data-theme="dark"] .custom-datepicker-popup select:hover {
    background-color: #444;
    color: #fff;
}

.custom-datepicker-popup select option {
    background-color: #fff;
}

[data-theme="dark"] .custom-datepicker-popup select option {
    background-color: #000;
}


.custom-datepicker-popup select::-ms-expand {
    display: none;
}

.custom-datepicker-popup button {
    box-shadow: rgba(50, 50, 93, 0.25) 0px 2px 0px -1px, rgba(0, 0, 0, 0.3) 0px 1px 3px -1px;
}

    .custom-datepicker-popup button:empty {
        pointer-events: none;
        opacity: 0;
    }

.custom-datepicker-controls {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.custom-datepicker-month-container,
.custom-datepicker-year-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.custom-datepicker-month,
.custom-datepicker-year {
    padding: 5px;
    font-size: 14px;
}

.custom-datepicker-nav {
    height: 40px;
    color: #000;
    background-color: transparent;
    border: 1px solid #ccc;
    cursor: pointer;
    padding: 5px;
}

[data-theme="dark"] .custom-datepicker-nav {
    color: #fff;
}

.custom-datepicker-nav-left {
    border-radius: 0 5px 5px 0;
}

.custom-datepicker-nav-right {
    border-radius: 5px 0 0 5px
}

.custom-datepicker-weeks {
    display: flex;
    justify-content: space-between;
    margin-top: 5px;
}

.custom-datepicker-week {
    width: 30px;
    text-align: center;
    font-size: 14px;
    font-weight: bold;
}

.custom-datepicker-days {
    display: flex;
    flex-wrap: wrap;
    margin-top: 10px;
}

.custom-datepicker-day {
    width: 30px;
    height: 30px;
    text-align: center;
    color: #000;
    background-color: transparent;
    margin: 2px;
    border: 1px solid #ccc;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
}



[data-theme="dark"] .custom-datepicker-day {
    color: #fff;
}

.custom-datepicker-day.today {
    background-color: green;
    color: white;
}

.custom-datepicker-day.selected {
    background-color: #000;
    color: #fff;
}

[data-theme="dark"] .custom-datepicker-day.selected {
    background-color: #fff;
    color: #000;
}

.custom-datepicker-day.disabled {
    background-color: #f0f0f0;
    color: #ccc;
    cursor: not-allowed;
}

.custom-datepicker-buttons {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
    padding: 0 10px;
}

.custom-datepicker-empty,
.custom-datepicker-today {
    width: 45px;
    height: 45px;
    border: 1px solid #ccc;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    font-size: 14px;
}

.custom-datepicker-buttons button {
    width: 45px;
    height: 45px;
    border-radius: 5px;
}

.custom-datepicker-empty,
.custom-datepicker-today {
    width: 45px;
    height: 45px;
    border: 1px solid #ccc;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    font-size: 14px;
}

.custom-datepicker-day.empty-btn,
.custom-datepicker-day.today-btn {
    padding: 0 1.5rem;
    border-radius: 5px;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.custom-datepicker-day.empty-btn {
    color: #000;
    background: transparent;
}

[data-theme="dark"] .custom-datepicker-day.empty-btn {
    color: #fff;
}

.custom-datepicker-day.today-btn {
    color: #fff;
    background: green;
}

.custom-datepicker-bottom-btns {
    display: flex;
    margin-top: 0.5rem;
    order: 1;
    justify-content: space-between;
}

@media only screen and (min-width: 350px) {
    .custom-datepicker-popup {
        min-width: 295px;
        max-width: 295px;
    }

    .custom-datepicker-week {
        width: 35px;
    }

    .custom-datepicker-day {
        width: 35px;
        height: 35px;
    }
}

@media only screen and (min-width: 540px) {
    .custom-datepicker-popup {
        min-width: 330px;
        max-width: 330px;
    }

    .custom-datepicker-week {
        width: 40px;
    }

    .custom-datepicker-day {
        width: 40px;
        height: 40px;
    }
}
