/*
* Members Search Stylesheet
* @package Sngine
* @author Kelvin
*/
.search-container-component {
    max-width: 400px;
    /* margin: 0 auto; */
}

.search-wrapper-component {
    position: relative;
}

.search-input-component {
    height: 45px;
    padding-left: 45px;
    padding-right: 50px;
    border-radius: 22.5px;
    border: 2px solid #d1d5db;
    font-size: 14px;
    width: 100%;
    transition: all 0.3s ease;
}

.search-input-component[data-show-filter="false"] {
    padding-right: 15px;
}

.search-input-component:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 0.2rem rgba(37, 99, 235, 0.15);
    outline: none;
}

.search-input-component::placeholder {
    color: #9ca3af;
}

.search-icon-component {
    position: absolute;
    left: 15px;
    top: 42%;
    transform: translateY(-42%);
    color: #9ca3af;
    pointer-events: none;
    transition: color 0.3s ease;
}

.search-input-component:not(:placeholder-shown) ~ .search-icon-component {
    color: #2563eb;
}

.filter-icon-component {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #2563eb;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-icon-component:hover {
    color: #1d4ed8;
    transform: translateY(-50%) scale(1.1);
}

.filter-icon-component:active {
    transform: translateY(-50%) scale(0.95);
}

@media (max-width: 576px) {
    .search-container-component {
        max-width: 100%;
    }
    
    .search-input-component {
        font-size: 16px;
    }
}

.search-input-component.loading {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24'%3E%3Cpath fill='%239ca3af' d='M12,1A11,11,0,1,0,23,12,11,11,0,0,0,12,1Zm0,19a8,8,0,1,1,8-8A8,8,0,0,1,12,20Z' opacity='.25'/%3E%3Cpath fill='%232563eb' d='M12,4a8,8,0,0,1,7.89,6.7A1.53,1.53,0,0,0,21.38,12h0a1.5,1.5,0,0,0,1.48-1.75,11,11,0,0,0-21.72,0A1.5,1.5,0,0,0,2.62,12h0a1.53,1.53,0,0,0,1.49-1.3A8,8,0,0,1,12,4Z'%3E%3CanimateTransform attributeName='transform' dur='0.75s' repeatCount='indefinite' type='rotate' values='0 12 12;360 12 12'/%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 50px center;
    background-size: 20px 20px;
}

.close-icon-component {
    display: none;
    position: absolute;
    right: 15px;
    top: 32%;
    transform: translateY(-32%);
    color: #9ca3af;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
}