.input-loading {
    position: relative;
    opacity: 0.7;
}
.input-loading::after {
    content: "";
    display: inline-block;
    width: 15px;
    height: 15px;
    margin-left: 8px;
    border: 4px solid #9932cc;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 1.2s linear infinite;
    vertical-align: middle;
}
.btn-submit.input-loading::after {
    width: 9px;
    height: 9px;
    border: 2px solid #fff;
    animation: spin 1.2s linear infinite;
    border-top-color: #9932cc!important;
}
@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.input-field{
    border: 1px solid black;
    padding: 5px;
    width: 100%;
    max-width: 400px;
    background-color: #f4f4f4;
}

input.input-field#ai_score {
    width: auto;
}
.btn-submit{
    margin-top: 10px; 
    padding: 8px 15px; 
    background-color: #9932cc; 
    color: white; 
    border: none; 
    cursor: pointer;
    opacity: 1;
    transition: all ease 0.4s;
}
.btn-submit:hover {
    opacity: 0.5;
    background: #fff;
    color: #9932cc;
    border: solid 1px #9932cc;
}
.results-item {
    margin-bottom: 50px;
}
#transiteo-hs-result table{
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
    word-break: keep-all!important;
}
#transiteo-hs-result table th,
#transiteo-hs-result table td
{
    border: 1px solid black; padding: 5px;
    padding: 10px;
}
#transiteo-hs-result table td {
    vertical-align: top;
}
#transiteo-hs-result table td.keywords {
    white-space: nowrap;
}

.ui-autocomplete {
    position: absolute;
    z-index: 10;
    overflow-y: auto;
    overflow-x: hidden;
    border: 1px solid #ccc;
    background-color: white;
    font-family: Arial, sans-serif;
    font-size: 13px;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.2);
    padding: 0;
    list-style: none;
}

#district-search-container {
    display: none;
    margin-top: 20px;
    position: relative;
}
#district-listbox {
    display: none;
    position: absolute;
    width: 100%;
    max-width: 400px;
    background: white;
    border: 1px solid #ccc;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    z-index: 10;
    max-height: 200px;
    overflow-y: auto;
}
#district-listbox option {
    padding: 8px;
    cursor: pointer;
}
#district-listbox option:hover {
    background-color: #f0f0f0;
}

.ui-menu-item {
    cursor: pointer;
    border-bottom: 1px solid #eee;
}
.ui-menu-item:last-child {
    border-bottom: none;
}
.ui-menu-item:hover {
    background-color: #f4f4f4;
    color: #333;
}
.ui-menu-item-wrapper{
    padding: 10px 12px;
}
.ui-state-active {
    background-color: #9932cc;
    color: white;
    font-weight: bold;
}