.search_box { background: var(--bg-color); border-radius: 20px; width: 100%; max-width: 450px; max-height: 900px; display: flex; height: 100vh; flex-direction: column; box-shadow: 0 8px 16px var(--shadow-color); } .search-bar { display: flex; align-items: center; margin: 15px; background: var(--friend-item-hover); padding: 10px; border-radius: 10px; } .search-bar input { flex: 1; padding: 8px 10px; border: none; background: transparent; color: var(--text-color); font-size: 16px; outline: none; } .search-bar button { background: transparent; border: none; cursor: pointer; display: flex; align-items: center; } .search-bar img { width: 24px; height: 24px; filter: var(--icon-color); } .results-list { flex: 1; background-color: var(--bg-color); margin-top: 1px; overflow-y: auto; } .result-item { display: flex; align-items: center; justify-content: space-between; padding: 14px; border-bottom: 1px solid var(--shadow-color); cursor: pointer; transition: background-color 0.3s ease; transition: transform 0.3s ease; } .result-item:hover { background-color: var(--friend-item-hover); } .result-item img { width: 45px; height: 45px; border-radius: 50%; margin-right: 15px; } .result-item .details { flex: 1; } .result-item .details p { margin: 2px 0; color: var(--text-color); } .result-item .details .name { font-weight: bold; font-size: 16px; }