/* FlexSelect CSS for the dropdown functionality */

.flexselect_dropdown {
    position: absolute;
    z-index: 999999;
    margin: 0;
    padding: 0;
    background: white;
    border: 1px solid #888;
    border-top: none;
    list-style-type: none;
    overflow: auto;
    max-height: 200px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.flexselect_dropdown li {
    margin: 0;
    padding: 3px 5px;
    cursor: pointer;
    font-size: 11px;
    line-height: 18px;
    color: black;
    background: white;
    border-bottom: 1px solid #f0f0f0;
}

.flexselect_dropdown li.flexselect_selected {
    background-color: #3875d7;
    color: white;
}

.flexselect_wrapper {
    position: relative;
    width: 100%;
}

.flexselect_wrapper input.flexselect {
    width: 100% !important;
    margin: 0;
    padding: 6px 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
    line-height: 1.42857143;
    color: #555;
    background-color: #fff;
    background-image: none;
    transition: border-color ease-in-out .15s, box-shadow ease-in-out .15s;
}

.flexselect_wrapper input.flexselect:focus {
    border-color: #66afe9;
    outline: 0;
    box-shadow: inset 0 1px 1px rgba(0,0,0,.075), 0 0 8px rgba(102,175,233,.6);
}

/* Integration with Bootstrap form controls */
.form-control.flexselect {
    display: block;
    width: 100%;
    height: calc(1.5em + 0.75rem + 2px);
    padding: 0.375rem 0.75rem;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    color: #495057;
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid #ced4da;
    border-radius: 0.25rem;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.form-control.flexselect:focus {
    color: #495057;
    background-color: #fff;
    border-color: #80bdff;
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

/* Neu-brutalism styling */
.neu-brutalism-border .flexselect_dropdown {
    border: 2px solid black !important;
    box-shadow: 4px 4px 0px black;
    border-radius: 0;
}

.neu-brutalism-border .flexselect_dropdown li:hover,
.neu-brutalism-border .flexselect_dropdown li.flexselect_selected {
    background-color: #007bff;
    color: white;
    font-weight: bold;
}