/* Добавьте в ваш существующий CSS */
.search-form {
    position: relative;
    width: 100%;
    max-width: 400px;
}

.search-input {
    width: 100%;
    padding: 10px 40px 10px 15px;
    border: 1px solid #ccc;
    border-radius: 20px;
    outline: none;
    font-size: 14px;
}

.search-btn {
    position: absolute;
    right: 0;
    top: 0;
    padding: 10px 15px;
    background: #007bff;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    color: white;
    transition: all 0.3s ease;
}

.search-btn:hover {
    background: #0056b3;
}

.search-results-page {
    padding: 20px;
}

.filter-btn {
    background: #f0f0f0;
    border: none;
    padding: 10px 20px;
    margin-right: 10px;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn.active {
    background: #007bff;
    color: white;
}

.user-result-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    border-bottom: 1px solid #eee;
}
.search-results-page{
    width: 40%;
}

.user-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 15px;
}

/* Мобильный поиск */
.mobile-search {
    display: none;
    width: 100%;
    padding: 10px;
    box-sizing: border-box;
}

.mobile-search-form {
    position: relative;
    width: 100%;
}

.mobile-search-input {
    width: 60%;
    padding: 12px 40px 12px 15px;
    border: 1px solid #ccc;
    border-radius: 20px;
    font-size: 16px;
    outline: none;
}

.mobile-search-btn {
    position: absolute;
    right: 0;
    top: 0;
    padding: 12px 15px;
    background: #007bff;
    border: none;
    border-radius: 20px;
    color: white;
    cursor: pointer;
}

/* Отображаем на мобильных устройствах */
@media (max-width: 768px) {
    .mobile-search {
        display: block;
    }

    /* Скрываем десктопную форму поиска */
    .desktop-header .search-bar {
        display: none;
    }
    .search-results-page {
    width: 90%;
}
}