
.chatListContainer {
  width: 100%;
  height: 92.3%;
  background-color: white;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
  scrollbar-width: thin; /* For Firefox */
  scroll-behavior: smooth; /* Smooth scrolling animation */
}

.chatList {
  list-style-type: none;
  padding: 0;
  margin-top: 10px;
  /* Add these to prevent layout shifts during loading */
  min-height: 100px;
  position: relative;
}
.chatHeader {
  padding: 15px;
  border-bottom: 1px solid #ddd;
  background-color: white;
}

.chatHeader h2 {
  margin: 0;
  font-size: 18px;
  color: #333;
}

.searchBar {
  margin-top: 10px;
  width: 100%;
  padding: 8px;
  border: 1px solid #ccc;
  border-radius: 5px;
}



.chatItem {
  display: flex;
  align-items: center;
  padding: 15px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.chatItem:hover {
  background-color: #e6f7ff;
}

.chatAvatar {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  object-fit: cover;
  margin-right: 15px;
}

.chatDetails {
  flex: 1;
}

.chatNameTime {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.chatName {
  font-size: 16px;
  font-weight: bold;
  color: #333;
}

.chatTime {
  font-size: 12px;
  color: #999;
}

.chat-last-message {
  font-size: 14px;
  color: #666;
  margin-top: 5px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

/* Scrollbar Styling */
.chat-list-container::-webkit-scrollbar {
  width: 6px;
}

.chat-list-container::-webkit-scrollbar-thumb {
  background: #bbb;
  border-radius: 10px;
}

.chat-list-container::-webkit-scrollbar-track {
  background: #f9f9f9;
}
