.main-container {
  display: flex;
  height: 120vh;
  flex-direction: row;
}

.contact-list {
/*  min-width: 100%;*/
width:100%;
background-color: #f0f0f0;
border-left: 1px solid #ccc;
padding: 10px;
display: block;
}
.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 {
  flex: 1;
  display: flex;
  flex-direction: column;
  background-color: #fff;
}
.chat-header {
  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 {
  flex: 1;
  padding: 15px;
  padding-bottom:80px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background-image: url('https://chatcenter.engitechet.com/views/assets/files/69fd04e76e13423.png');
  background-size: auto;
  background-repeat: repeat;
}
.msg {
  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 {
  display: flex;
  padding: 10px;
  border-top: 1px solid #ddd;
  background-color: #fff;
  bottom:0px;
}
.chat-footer input {
  flex: 1;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 20px;
}

.chat-footer button.attach {
  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 {
  background-color: #075e54;
  color: white;
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  margin-left: 10px;
  cursor: pointer;
}
/* Responsive movil */
@media (min-width: 992px) {
  .contact-list {
    max-width:250px;
  }
}
@media (max-width: 768px) {
  .chat-body {
    padding: 10px;
  }
  .msg {
    max-width: 85%;
  }
}

@media (max-width: 991px) {
    /* Desplaza el chat hacia abajo el alto exacto de tu menú superior corporativo */
    .chat-container.offcanvas {
        top: 56px !important; /* Ajusta estos 56px si tu barra superior mide más o menos */
        height: calc(100% - 56px) !important;
    }
}

.chat-header {
    background-color: #007e66; /* Tu color verde actual */
    color: white;
    padding-top: 10px;
    padding-bottom: 10px;
    min-height: 60px;
    width: 100% !important; /* Fuerza a expandirse en todo el ancho */
}

/* Estilo para que el contenedor del punto blanco no sea un cuadro tosco */
.bot-name {
    background-color: white;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50% !important; /* Lo hace completamente redondo */
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Ajustes de espaciados flex */
.gap-2 { gap: 0.5rem; }
.gap-1 { gap: 0.25rem; }