/* Popup container */
.custom-datepicker-popup {
    position: absolute;
    border: 1px solid #ccc;
    border-radius: 0 0 1rem 1rem;
    background-color: white;
    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;
}

    /* Hidden class for popup */
    .custom-datepicker-popup.hidden {
        display: none;
    }

    .custom-datepicker-popup select {
        display: block;
        margin: 0 auto;
        text-align: center;
        text-align-last: center; /* For modern browsers */
        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; /* Chrome, Safari */
        -moz-appearance: none; /* Firefox */
        appearance: none; /* Standard */
        background: white;
        border: 1px solid #ccc;
        padding: 8px;
        cursor: pointer;
        height: 40px
    }

        .custom-datepicker-popup select::-ms-expand {
            display: none; /* For Internet Explorer */
        }

    .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; /* Disable clicks */
            opacity: 0; /* Make it look disabled */
        }

/* Control panel (Month, Year dropdowns) */
.custom-datepicker-controls {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

/* Month container */
.custom-datepicker-month-container,
.custom-datepicker-year-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Dropdowns for month and year */
.custom-datepicker-month,
.custom-datepicker-year {
    padding: 5px;
    font-size: 14px;
    /*    width: 100px;*/
}

/* Navigation buttons for month and year */
.custom-datepicker-nav {
    height: 40px;
    background-color: #f0f0f0;
    border: 1px solid #ccc;
    cursor: pointer;
    padding: 5px;
}

/* Week labels */
.custom-datepicker-weeks {
    display: flex;
    justify-content: space-between;
    margin-top: 5px;
}

/* Week label styling */
.custom-datepicker-week {
    width: 30px;
    text-align: center;
    font-size: 14px;
    font-weight: bold;
}

/* Days container */
.custom-datepicker-days {
    display: flex;
    flex-wrap: wrap;
    margin-top: 10px;
}

/* Day button */
.custom-datepicker-day {
    width: 30px;
    height: 30px;
    text-align: center;
    margin: 2px;
    border: 1px solid #ccc;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
}

    /* Hover effect for day buttons */
    .custom-datepicker-day:hover {
        background-color: #f0f0f0;
    }

    /* Styling for today and selected days */
    .custom-datepicker-day.today {
        background-color: green;
        color: white;
    }

    .custom-datepicker-day.selected {
        background-color: black;
        color: white;
    }

    .custom-datepicker-day.disabled {
        background-color: #f0f0f0; /* Gray background for disabled buttons */
        color: #ccc; /* Light text color for disabled buttons */
        cursor: not-allowed; /* Change cursor to indicate the button is disabled */
    }

/* Today and Empty buttons (below day buttons) */
.custom-datepicker-buttons {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
    padding: 0 10px;
}

/* Empty button */
.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;
}

/* Ensuring Today and Empty buttons have same size as days buttons */
.custom-datepicker-buttons button {
    width: 45px;
    height: 45px;
    border-radius: 5px;
}

/* Flexbox layout to position Today and Empty buttons under the days */
.custom-datepicker-empty,
.custom-datepicker-today {
    width: 45px;
    height: 45px;
    border: 1px solid #ccc; /* Border to match day buttons */
    display: inline-flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    font-size: 14px; /* Adjust font size */
}

/* Empty and Today buttons */
.custom-datepicker-day.empty-btn,
.custom-datepicker-day.today-btn {
    /* height: 45px; */
    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-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;
    }
}