.chatHome {
  background-color: #a7bcff;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
.chatContainer {
  border: 1px solid white;
  border-radius: 10px;
  width: 65%;
  height: 80%;
  display: flex;
  overflow: hidden;
}
.sidebar {
  flex: 1;
  background-color: #3e3c61;
  position: relative;
}
.userChat {
  flex: 2;
}

.chatNavbar {
  display: flex;
  align-items: center;
  background-color: #2f2d52;
  height: 50px;
  padding: 10px;
  justify-content: space-between;
  color: #ddddf7;
}

.chatLogo {
  font-weight: bold;
}
.chatUser {
  display: flex;
  gap: 10px;
}

.chatSearch {
  border-bottom: 1px solid gray;
}
.chatSearchForm {
  padding: 10px;
}

.chatSearchForm input {
  background-color: transparent;
  border: none;
  color: white;
  outline: none;
  width: 100%;
}

.chatSearchForm input::placeholder {
  color: lightgray;
}
.chatUser1.selected {
  background: #2f2d52;
}

.chatUser1 {
  padding: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: white;
  cursor: pointer;
  border-top: 1px solid #767676;
}
.chatUser1:hover {
  background-color: #2f2d52;
}
.imgContainer {
  position: relative;
}
.chatUser1 img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
}
.onlineStatus,
.offlineStatus {
  height: 5px;
  width: 5px;
  display: block;
  padding: 4px;
  border-radius: 50%;
  position: absolute;
  bottom: 6px;
  right: 3px;
}
.onlineStatus {
  background: #25ff00;
}
.offlineStatus {
  background: #de8686;
}

.chatuserInfo span {
  font-size: 18px;
  font-weight: 500;
}
.chatuserInfo p,
.chatuserInfo .messageSender {
  font-size: 14px;
  color: lightgray;
  margin: 0 2px;
}

.userChatInfo {
  height: 50px;
  background-color: #5d5b8d;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px;
  color: lightgray;
}

.chatMessages {
  background-color: #ddddf7;
  padding: 10px;
  height: calc(100% - 170px);
  overflow-y: scroll;
}
.chatWelcomeMessage {
  display: flex;
  justify-content: center;
  height: inherit;
  align-items: center;
}
.chatWelcomeMessage p {
  font-weight: 600;
  font-size: 3vw;
}
.chatMessage {
  display: flex;
  gap: 20px;
  margin-bottom: 20px;
}
.chatMessageInfo {
  display: flex;
  flex-direction: column;
  color: gray;
  font-weight: 300;
}
.chatMessageInfo img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
}
.chatMessageContent {
  max-width: 80%;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.chatMessageContent p {
  background-color: white;
  padding: 10px 20px;
  border-radius: 0px 10px 10px 10px;
  max-width: max-content;
}
.chatMessageContent img {
  width: 50%;
}

.owner {
  flex-direction: row-reverse;
}
.owner .chatMessageContent {
  align-items: flex-end;
}
.owner p {
  background-color: #8da4f1;
  color: white;
  border-radius: 10px 0px 10px 10px;
}
.chatInputBase {
  height: 60px;
  background-color: #ddddf7;
  padding: 10px;
}
.chatInput {
  display: flex;
  justify-content: space-between;
}
.chatInput input {
  width: 80%;
  border: none;
  outline: none;
  color: #2f2d52;
  font-size: 18px;
  border-radius: 10px;
  line-height: 20px;
  padding-left: 8px;
  margin: 0 auto;
}
.chatInput input::placeholder {
  color: lightgray;
  font-size: 12x;
  padding-left: 5px;
}

.chatSend button {
  border: none;
  padding: 15px;
  color: white;
  background-color: #8da4f1;
  cursor: pointer;
  border-radius: 10px;
}
.chatSend button:disabled {
  background-color: #ccc;
  color: #666;
  cursor: not-allowed;
  border-radius: 10px;
}

.typerMsg {
  margin-left: 30px;
  height: 20px;
}
