@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

body {
  font-family: 'Inter', sans-serif;
  background-color:#3AB1FD ;
  
}
*{
  box-sizing:border-box;
}

#container{
  width:100%;
  height:auto;
  background-color:#3b3e49;
  margin:0 auto;
  font-size:0;
  border-radius:0px;
  overflow:hidden;
}
aside{
  width:20%;
  background-color:#3b3e49;
  display:inline-block;
  font-size:15px;
  vertical-align:top;
  overflow:hidden;
  position: absolute;
  height: 100%;
}
main{
  width:65%;
  height:100%;
  margin:0px 0px 0px 20%;
  display:inline-block;
  font-size:15px;
  vertical-align:top;
  
}
.navbar-brand{padding-left:1%;}
.navbar-nav{padding:1% 0% 0%}
.aside-right{
	width:15%;
	height:100%;
	margin:0px;
	display:inline-block;
	font-size:15px;
	vertical-align:top;
}

aside header{
 
}
aside input{
  width:100%;
  height:50px;
  line-height:50px;
  padding:0 50px 0 20px;
  background-color:#5e616a;
  border:none;
  border-radius:3px;
  color:#fff;
  background-image:url(https://s3-us-west-2.amazonaws.com/s.cdpn.io/1940306/ico_search.png);
  background-repeat:no-repeat;
  background-position:170px;
  background-size:40px;
}
aside input::placeholder{
  color:#fff;
}
aside ul{
  padding-left:0;
  margin:0;
  list-style-type:none;


}
aside ul li ul{
  padding-left:0;
  margin:0;
  list-style-type:none;
  overflow-y:scroll;
  overflow-x:hidden;
  height:500px;
}
aside li, aside li ul li{
  padding:10px 0;
  background-color:#CCC;
  text-wrap: nowrap;
}
aside li ul li:hover {
  background-color: #AAA; /* Cambia el color de fondo al pasar el mouse */
  color: #000; /* Opcional: cambia el color del texto */
}
aside li ul li:hover{
  background-color:#FFF;
}
aside li:hover, aside li ul li:hover, aside li ul li .active{
  background-color:#FFF;
  color:#000;
}

aside li a{
	color:#FFF;
	padding:3px;
}
aside li a:hover{
	color:#FFF
}
aside li ul li{
	cursor:pointer;
}
h2,h3{
  margin:0;
}
aside li img{
  border-radius:50%;
  margin-left:20px;
  margin-right:8px;
  max-width: 55px;
  max-height: 55px;
}
aside li div{
  display:inline-block;
  vertical-align:top;
  margin-top:12px;
}
aside li h2{
  font-size:14px;
  color:#636363;
  font-weight:normal;
  margin-bottom:5px;
}
aside li h3{
  font-size:12px;
  color:#636363;
  font-weight:normal;
}

.status{
  width:8px;
  height:8px;
  border-radius:50%;
  display:inline-block;
  margin-right:7px;
}
.green{
  background-color:#58b666;
}
.orange{
  background-color:#ff725d;
}
.blue{
  background-color:#6fbced;
  margin-right:0;
  margin-left:7px;
}
main header{
  height:auto;
  padding:1%;
  background-color:#3b3e49;
  color:#CCC
}
main header > *{
  display:inline-block;
  vertical-align:top;
}
main header img:first-child{
  border-radius:50%;
  
}
main header img:last-child{
  width:24px;
  margin-top:8px;
}

main header h2{
  font-size:16px;
  margin-bottom:5px;
}
main header h3{
  font-size:14px;
  font-weight:normal;
  color:#7e818a;
}

.navbar{
	padding:0px;
}
#chat{
	width:100%;
	padding-left:0;
	margin:0;
	list-style-type:none;
	overflow-y:scroll;
	height: 100%;
	min-height:300px;
	max-height:350px;
	background-color:#454852;
}
#chat li{
  padding:10px 30px;
}
#chat h2,#chat h3{
  display:inline-block;
  font-size:13px;
  font-weight:normal;
  color:#FFF;
}
#chat h3{
  color:#bbb;
}
#chat .entete{
  margin-bottom:5px;
}
#chat .message{
  padding:20px;
  color:#fff;
  line-height:25px;
  max-width:90%;
  display:inline-block;
  text-align:left;
  border-radius:5px;
  clear:both;
  word-break: break-all;
   position: relative; /* Necesario para posicionar el corazón dentro */
}
#chat .status_msg{
  padding:20px;
  color:#CCC;
  line-height:25px;
  max-width:20px;
  display:inline-block;
  text-align:left;
  float:right;
  font-size:0.8em;
}
.status_msg_read{
  color:#6fbced !important;
}
.status_msg_failed{
  color:#721c24 !important;
}
#chat .quotedMessage{
  padding:20px;
  color:#fff;
  line-height:25px;
  max-width:100%;
  display:inline-block;
  text-align:left;
  border-radius:5px;
}
#chat .me{
  text-align:right;
  display:block;
}
#chat .you .message{
  background-color:#58b666;
}
#chat .me .message{
  background-color:#6fbced;
}
#chat .you .quotedMessage{
  background-color:#46824f;
}
#chat .me .quotedMessage{
  background-color:#6fbced;
}
#chat .triangle{
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 0 10px 10px 10px;
}
#chat .you .triangle{
    border-color: transparent transparent #58b666 transparent;
    margin-left:15px;
}
#chat .me .triangle{
    border-color: transparent transparent #6fbced transparent;
    margin-left:90%;
}
#chat .reaction{position: absolute;right: 5px;background-color:#FFF;padding:2px;cursor:pointer;border-radius:3px;}
.img-chat{max-height:250px;}
.embed-responsive{min-width:200px;min-height:250px}
.respuesta{background-color:#18020226;font-style: italic;font-size:14px;}
main footer{
  height:auto;
  padding:1%;
  background-color:#3b3e49
}
main footer textarea{
  resize:none;
  border:none;
  display:block;
  width:100%;
  height:80px;
  border-radius:3px;
  padding:20px;
  font-size:13px;
  margin-bottom:13px;
  background-color:#FFF;
  color:#000
}
main footer textarea::placeholder{
  color:#000;
}
main footer img{
  height:30px;
  cursor:pointer;
}
main footer #btnSendReply{
  text-decoration:none;
  text-transform:uppercase;
  font-weight:bold;
  vertical-align:top;
  margin-right:0;
  float:right

  
}
.linkOptionsReply{
	color:#636363;
}

#containerBtnAdjunto{float:left;display:block; cursor:pointer;}
#containerBtnAdjunto input[type="file"] {
  position: absolute;
  left: 0;
  opacity: 0;
  top: 0;
  bottom: 0;
  width: 100%;
  height:50px;
  cursor:pointer;
  border:1px solid black;
}
#containerBtnAdjunto input{
  cursor:pointer;
}
#containerBtnAdjunto div {
	cursor:pointer;
	position: absolute;
	top: 0;
	bottom: 0;
	width: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
}
#containerBtnAdjunto a {
	cursor:pointer;
}
#containerBtnAdjunto label {
  position: relative;
  height: 39px;
  width: 39px;
  float:left;
  cursor:pointer;
  padding:0px;
}

#containerBtnAdjunto div.dragover {
  background-color: #aaa;
}

#contenido{
  background:#FFFFFF;

}
.chat-footer-bar{
	padding:5px;
	
}
.new_message{
	background-color:#97cb37;
	font-weight:bold !important;
}
.new_message div, .new_message div h3, .new_message div h2{
	font-weight:bold !important;
}

#historial_layout{
	color:#636363;
	text-align:center;
	border-left: 1px solid #636363;
}
#historial{
	z-index:9999;
	width:100%;
	overflow-y: scroll;
	color:#636363;
	padding:0% 0% 50px 0;
	word-break:break-all;
	
	font-size:1em;
	text-align:left;
}
#historial a{
	color:#636363;
	font-size:0.8em;
}
#historial a:hover{
	text-decoration:none;
}
.historial_container{
	margin:2px 0;
	padding:2px 0;
}

.chatListScroll{max-height:300px;}

a.link-agente{
	color:#FFF;
}
.link-agente li{
	padding-left:1%;
}


.emoticonsBox {

  width: 120px;
  background-color: #555;
  color: #fff;
  text-align: center;
  padding: 5px 0;
  border-radius: 6px;

  /* Position the tooltip text */
  position: absolute;
  z-index: 1;
  bottom: 125%;
  left: 50%;
  margin-left: -60px;

  /* Fade in tooltip */
  opacity: 0;
  transition: opacity 0.3s;
}



/* auto completar textarea */
.menuAutoCompletar {
	position: absolute;
	background: white;
	border: 1px solid #ccc;
	box-shadow: 2px 2px 10px rgba(0,0,0,0.2);
	display: none;
	width: 60%;
	height:150px;
	overflow-y:scroll;
	border-radius: 5px;
	z-index:9999;
}
.menuAutoCompletar div {
	padding: 10px;
	cursor: pointer;
}
.menuAutoCompletar div:hover,
.menuAutoCompletar .selected {
	background: #f0f0f0;
}

#previewFile img {
	max-width: 200px;
	margin-top: 10px;
	display: block;
}

@media (max-width: 480px) {
	
	main {
		width:70%;
		margin: 0px 0px 0px 30%
	}
	aside{
		width:30%;
	}
}


.flow-editor {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: white;
	z-index: 1050;
	display: none;
}
.flow-editor.active {
	display: block !important;
}
#flowDiagram {
	width: 100%;
	height: calc(100vh - 60px);
	background: #f8f9fa;
}
.editor-toolbar {
	padding: 10px;
	background: #f8f9fa;
	border-bottom: 1px solid #dee2e6;
}

/* === Estilos para lista de acciones en el editor de flujos === */
.acciones-lista {
  max-height: 140px;
  overflow-y: auto;
  background: #f8f9fa;
  border: 1px solid #ddd;
  border-radius: 6px;
  padding: 6px 8px;
  font-size: 13px;
  width: 100%;
  box-sizing: border-box;
}
.acciones-items {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.accion-item {
  display: flex;
  align-items: center;
  padding: 6px 8px;
  border-bottom: 1px solid #eee;
  background: #fff;
  border-radius: 4px;
  margin-bottom: 2px;
  min-height: 32px;
}
.accion-icono {
  width: 24px;
  height: 24px;
  font-size: 20px;
  margin-right: 8px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.accion-texto {
  flex: 1;
  white-space: normal;
  word-break: break-word;
  font-size: 15px;
  color: #222;
  margin-right: 8px;
}
.accion-botones {
  display: flex;
  gap: 4px;
  margin-left: 8px;
}
.accion-boton {
  background: #f5f5f5;
  border: 1px solid #ccc;
  border-radius: 3px;
  padding: 2px 6px;
  font-size: 15px;
  cursor: pointer;
  transition: background 0.2s;
  color: #333;
  min-width: 28px;
  min-height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.accion-boton:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.accion-boton:hover:not(:disabled) {
  background: #e0e0e0;
}
.accion-eliminar {
  color: #fff;
  background: #e74c3c;
  border: none;
  font-weight: bold;
}
.accion-eliminar:hover:not(:disabled) {
  background: #c0392b;
}