.main-container {
  display: flex;
  height: calc(100vh - 57px);
  height: calc(100dvh - 57px);
  min-height: 240px;
  flex-direction: row;
}
.contact-list {
/*  min-width: 100%;*/
  width:100%;
  background-color: #f0f0f0;
  border-left: 1px solid #ccc;
  padding: 10px;
  display: block;
  min-width: 0;
  overflow-y: auto;
  overflow-wrap: anywhere;
}
.contact-list h5 {
  margin-bottom: 15px;
}
.contact-item {
  padding: 10px;
  border-radius: 5px;
  background-color: #fff;
  margin-bottom: 10px;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}
.contact-item:hover {
  background-color: #e2f0d9;
}
.chat-container {
  min-width: 0;
  min-height: 0;
  flex: 1;
  display: none;
  flex-direction: column;
  background-color: #fff;
}
.chat-header {
  flex-shrink: 0;
  gap: 8px;
  flex-wrap: wrap;
  background-color: #075e54;
  color: white;
  padding: 10px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.chat-header .bot-name {
  font-weight: bold;
}
.chat-body {
  min-height: 0;
  flex: 1;
  padding: 15px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background-image: url('/views/assets/img/chat-wallpaper.png');
  background-size: auto;
  background-repeat: repeat;
}
.msg {
  overflow-wrap: anywhere;
  position: relative;
  max-width: 75%;
  padding: 10px;
  border-radius: 10px;
  line-height: 1.4;
}
.msg.user {
  align-self: flex-start;
  background-color: #D9FDD3;
}

.msg.user span {
  position: inherit;
  bottom:0;
  right:0;
}
.msg.bot {
  align-self: flex-end;
  background-color: #fff;
}
.chat-footer {
  flex-shrink: 0;
  display: flex;
  padding: 10px;
  border-top: 1px solid #ddd;
  background-color: #fff;
  bottom:0px;
}
.chat-footer input {
  min-width: 0;
  flex: 1;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 20px;
}

.chat-footer button.attach {
  flex-shrink: 0;
  border: 1px solid #bbb;
  background-color: #eee;
  border-radius: 50%;
  color:#333;
  width: 40px;
  height: 40px;
  margin-left: 10px;
  cursor: pointer;
}

.chat-footer button.send {
  flex-shrink: 0;
  background-color: #075e54;
  color: white;
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  margin-left: 10px;
  cursor: pointer;
}
@media (min-width: 992px) {
  .chat-container {
    display:flex;
  }
  .contact-list {
    max-width:300px;
  }
}
@media (max-width: 768px) {
  .chat-body {
    padding: 10px;
  }
  .msg {
    max-width: 85%;
  }
}
@media (max-width: 991.98px) {
  .main-container { flex-direction: column; }
  .chat-container { display: flex; }
  .contact-list { order: -1; flex: 0 0 30%; min-height: 90px; }
}
.msg img, .msg video { max-width: 100%; height: auto; }
.chat-status { min-height: 0; max-height: 25%; overflow-y: auto; }
