
#birthdayvisual {
    background: url('/img/date_icon.png') no-repeat, var(--color-black);
    background-size: 24px; /* Adjust the size of your image */
    background-position: calc(100% - 10px) center; /* Adjust the position of your image */
    border: 1px solid var(--color-accent); /* Add a border if needed */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Optional: Adds shadow for better visibility */
    color: var(--color-white);
    border-radius: 5px;
    padding: 16px 24px; /* Adjust padding as needed, adding space for the icon */
    width: calc(100%); /* Adjust width as needed, accounting for the icon size */
    box-sizing: border-box;
    font-size: 18px;
font-style: normal;
font-weight: 700;
line-height: 24px; /* 133.333% */
}

/* Style the placeholder text color */
#birthdayvisual::placeholder {
    color: var(--color-white);
    font-size: 18px;
    font-style: normal;
    font-weight: 700;
    line-height: 24px; /* 133.333% */
}

/* Style the focus state of the date input */
input[type="date"]:focus {
    outline: none;
    border-color: var(--color-accent);
}


/* Specific styles for the jQuery UI Datepicker */
/* Datepicker container */
.ui-datepicker {
    background-color: var(--color-white); /* Match this to your specific background color */
    border: none;
    color: var(--color-black);
    border-radius: 12px;
    padding: 10px;
    width: 330px; /* Adjust as needed */
    border:1.5px solid var(--color-accent)!important;
    z-index:100;
}

/* Datepicker header */
.ui-datepicker-header {
    position: relative;
    background-color: var(--color-white);
    color: var(--color-black);
    padding: 0.6em 1em;
    border-bottom: none;
    display: flex;

    align-items: center;
    border:none;
    height:72px;
}

/* Month and year dropdowns */
.ui-datepicker select.ui-datepicker-month,
.ui-datepicker select.ui-datepicker-year {
    width: auto; /* Adjust as needed */
    
    
    color: var(--color-black); /* Adjust as needed */
    background-color: var(--color-white);
    border: none;
    height: 2em;
    border-radius: 12px;
    -webkit-appearance: menulist-button;
    font-size: 18px;
    font-style: normal;
    font-weight: 700;
    line-height: 24px; /* 133.333% */

}

.ui-datepicker select.ui-datepicker-month{
    order: 1;
}
.ui-datepicker select.ui-datepicker-year{
    order: 2;
}
/* Month and year dropdowns hover */
.ui-datepicker select.ui-datepicker-month:hover,
.ui-datepicker select.ui-datepicker-year:hover {
   color: var(--color-black);
}

.no-scroll {
        overflow: hidden!important;
    }


.ui-datepicker-prev span, .ui-datepicker-next span {
    display: inline-block;
    width: 24px;
    height: 24px;
    background: url('/img/arrow_up_filter_icon.png') no-repeat center center;
    background-size: 24px;

    
}
.ui-datepicker-next span {
    transform: rotate(180deg); /* Flips the arrow for the next button */
}
.ui-datepicker .ui-datepicker-prev span, .ui-datepicker .ui-datepicker-next span {
    margin-top: -12px!important;
    margin-left: -12px!important;
    
    

}
.ui-datepicker-prev,
.ui-datepicker-next {
    order: 3;
    display: block; /* Override any existing display properties */
    margin-right:10px!important;
 
}
.ui-datepicker .ui-datepicker-prev, .ui-datepicker .ui-datepicker-next {
    position:relative;
}

.ui-datepicker .ui-datepicker-prev:hover, .ui-datepicker .ui-datepicker-next:hover {
    background-color: var(--color-white);
    border:none;
}
/* Calendar table */
.ui-datepicker table {
    width: 100%;
    font-size: 0.9em;
    border-collapse: collapse;
    margin: 0;
    background-color: var(--color-white);
}

/* Days headers */
.ui-datepicker th {
    padding: 5px 0;
    color: var(--color-accent); /* Adjust as needed */
    text-align: center;
    font-size: 12px;
    font-style: normal;
    font-weight: 300;
    line-height: 24px; /* 133.333% */
}

/* Days */
.ui-datepicker td {
    padding: 0;
}

/* Day numbers */
.ui-datepicker .ui-state-default {
    padding: 5px;
   background:white;
    line-height: 1.6em; /* Adjust as needed */
    text-align: center;
    border:none;
    font-size: 12px;
    font-style: normal;
    font-weight: 200;
    line-height: 24px; /* 133.333% */
}

/* Hovered dates */
.ui-datepicker .ui-state-hover {
    
    color: var(--color-accent);
    border-radius: 12px;
}

/* Active date */
.ui-datepicker .ui-state-active {

    color: var(--color-accent);
    border-radius: 12px;
}

/* Hide the no-JS fallback arrow */
input[type="date"]::-webkit-calendar-picker-indicator {
    display: none;
}

.ui-icon {
    background-image: url('/img/arrow_up_filter_icon.png')!important;
    background-size:12px;
}

.ui-datepicker-title {
    display:flex;
    justify-content: left;
    text-align: left;
    width:100%;
}
.ui-datepicker .ui-datepicker-title {
    margin: 0 !important;
}
.ui-datepicker-month,
.ui-datepicker-year {
    font-size: 1.2em; /* Increase font size */
    padding: 0.5em 2px;

    color: var(--color-black); /* Text color */
    background-color: var(--color-white); /* Background color */

    height:24px;

}
.ui-datepicker select.ui-datepicker-month,
.ui-datepicker select.ui-datepicker-year {
    font-family: "Open Sans", sans-serif;
    font-size: 16px; /* Adjust to match your design */
    color: var(--color-black); /* Text color */
    background-color: var(--color-white); /* Background color */
    border: 1px solid var(--color-white); /* Border color */
    border-radius: 4px; /* Border radius */
    padding: 0 5px; /* Padding inside the dropdown */

    -webkit-appearance: none; /* Removes default styling on iOS */
    -moz-appearance: none; /* Removes default styling in Firefox */
    appearance: none; /* Removes default styling */
}

/* Hide options in the default month and year dropdowns in jQuery UI Datepicker */
.ui-datepicker select.ui-datepicker-month option,
.ui-datepicker select.ui-datepicker-year option {
    display: none;
    height:0;
    visibility: collapse;
    z-index:-9;
    box-shadow: none;
}


/* Adjust the placeholder color */
#birthdayvisual::placeholder {
    color: var(--color-white);
}

/* Styles for when the input field is focused */
#birthdayvisual:focus {
    outline: none; /* Removes the default focus outline */
    border-color: var(--color-accent); /* Adds a custom border color for focus state */
}

.custom-overlay {
    font-family: "Open Sans", sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute; /* Changed to absolute */
    z-index: 1000; /* Ensure it is on top of other elements */
    background: var(--color-white);
    border-radius: 12px;
}

.custom-overlay-content {
    

    max-height: 317px; /* You can adjust this as needed */
    overflow-y: auto; /* Enables scrolling if the content is too tall */
   
    width:350px;
    border-radius: 12px;
    margin-top:10px;
    margin-bottom:10px;
    margin-right: 10px;

}
/* Custom overlay item styling */
.custom-overlay-item {
    padding: 10px 0;
    cursor: pointer;
    text-align: center;
    color: var(--color-black);
    width: 100%; /* Ensure it occupies the full width of the overlay */
    font-size: 1.2em; /* Increase font size */
    line-height:24px;
    font-weight:700;
}


.custom-overlay-item:hover {
    background-color: #f0f0f0;
}
.custom-overlay-content::-webkit-scrollbar {
    width: 4px;
    padding-right:10px;
}

.custom-overlay-content::-webkit-scrollbar-track {
    background: white;
    border-radius: 12px;
}

.custom-overlay-content::-webkit-scrollbar-thumb {
    background: var(--color-accent);
    border-radius: 4px;
}
.custom-overlay-container {
        position: absolute;
    z-index: 1000;

    display: flex;
    flex-direction: column;
    color: var(--color-black);
    font-family: 'Open Sans', sans-serif;
    font-size: 18px;
    font-weight: 700;
    justify-content: center;
    align-items: center;
    border-radius: 12px;
    border: 1.5px solid var(--color-accent);
    background-color: var(--color-white);
    height: 340px;

}
.relative-container {
    position: relative;
}

.ui-datepicker-year, .ui-datepicker-month{
    border:none;
    font-family: 'Open Sans', sans-serif;
    font-size: 18px;
    font-weight: 700;
    border: 1.5px solid var(--color-accent)!important;
    border-radius: 10px!important;
    padding: 10px;
}
.ui-widget.ui-widget-content {
    border: none!important;
}
.custom-overlay {
    display: flex;
    flex-direction: column;
    color: var(--color-black);
    font-family: 'Open Sans', sans-serif;
    font-size: 18px;
    font-weight: 700;
    justify-content: flex-start;
    align-items: center;
    border: none!important;
    border-radius: 12px;
    background-color: var(--color-white);
    width: calc(100% - 24px);
    margin-left: -12px;
    margin-right: -12px;
    height: 316px;
    overflow-y: auto;

    z-index:101;
}

.overlay-item {
    padding: 5px;
    cursor: pointer;
}

.overlay-item:hover {
    color: var(--color-accent);
}

/* Scrollbar styling */
.custom-overlay::-webkit-scrollbar {
    width: 4px;
}

.custom-overlay::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0);
    border-radius: 12px;
}

.custom-overlay::-webkit-scrollbar-thumb {
    background: var(--color-accent);
    border-radius: 4px;
}