 body {
    font-family: 'Arial', sans-serif;
    background-color: #f0f0f0;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
    padding: 0;
    background-image: url('../assets/fondotaam.jpeg');
    background-size: cover;       /* Hace que se ajuste a toda la pantalla */
    background-repeat: no-repeat; /* Evita que se repita */
    background-position: center;  /* Centra la imagen */
}

.chat-container {
    width: 400px;
    max-width: 100%;
    border-radius: 10px;
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.chat-header {
    background-color: #C78127;
    color: white;
    padding: 10px;
    text-align: center;
    font-weight: bold;
    font-size: 1.2em;
}

.chatbox {
    padding: 15px;
    height: 400px;
    overflow-y: scroll;
    background-color: #e5ddd5;
    display: flex;
    flex-direction: column;
}

.chatbox::-webkit-scrollbar {
    width: 5px;
}

.chatbox::-webkit-scrollbar-thumb {
    background-color: #ccc;
    border-radius: 5px;
}

.user-message, .bot-message {
    margin: 10px 0;
    display: inline-block;
    max-width: 70%;
    padding: 10px;
    border-radius: 10px;
    font-size: 14px;
    word-wrap: break-word;
    position: relative;
}

.user-message {
    background-color: #dcf8c6;
    align-self: flex-end;
    text-align: right;
}

.bot-message {
    background-color: #fff;
    align-self: flex-start;
}

/* Palomitas de visto */
.message-status {
    font-size: 12px;
    color: #34b7f1;
    position: absolute;
    right: 10px;
    bottom: -5px;
}

.user-message img, .bot-message img,
.user-message video, .bot-message video {
    max-width: 100%;
    border-radius: 10px;
    display: block;
    margin-top: 5px;
}

.user-message video, .bot-message video {
max-height: 250px; /* limita altura de videos grandes */
}

.chat-footer {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    background-color: #f0f0f0;
    padding: 10px;
    align-items: center;
}

.chat-footer input {
    flex: 1;
    padding: 14px 10px;
    border-radius: 25px;
    border: none;
    outline: none;
    font-size: 18px;
    height: 60px;
    width: 100%;
    box-sizing: border-box;
}

.chat-footer button {
    background-color: #aa3053;
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 50%;
    margin-left: 10px;
    cursor: pointer;
}

.chat-footer button {
    padding: 8px;
    font-size: 14px;
    width: 38px;
    height: 38px;
}

.chat-footer button i {
    font-size: 18px;
}

#micBtn {
    background-color: #f0f0f0;
    color: #555;
    border: none;
    padding: 10px 15px;
    border-radius: 50%;
    margin-left: 5px;
    cursor: pointer;
}

#locationBtn {
    background-color: #f0f0f0;
    color: #555;
    border: none;
    padding: 10px 15px;
    border-radius: 50%;
    margin-left: 5px;
    cursor: pointer;
}

#AdminBtn i {
    font-size: 18px;
}

#AdminBtn {
    background-color: #f0f0f0;
    color: #555;
    border: none;
    padding: 10px 15px;
    border-radius: 50%;
    margin-left: 5px;
    cursor: pointer;
}

#locationBtn i {
    font-size: 18px;
}

#micBtn i {
    font-size: 18px;
}

#toggleVoiceBtn {
    background-color: #f0f0f0;
    color: #555;
    border: none;
    padding: 10px 15px;
    border-radius: 50%;
    margin-left: 5px;
    cursor: pointer;
}

#toggleVoiceBtn.active {
    background-color: #aa3053;
    color: white;
}

#toggleMediaBtn {
    background-color: #f0f0f0;
    color: #555;
    border: none;
    padding: 10px 15px;
    border-radius: 50%;
    margin-left: 5px;
    cursor: pointer;
}

#toggleMediaBtn.active {
    background-color: #aa3053;
    color: white;
}

#sendBtn {
    background-color: #128C7E;
    color: white;
    border: none;
    padding: 10px 12px;
    border-radius: 8px; /* menos redondeado */
    margin-left: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

#sendBtnAdmin {
    background-color: #128C7E;
    color: white;
    border: none;
    padding: 10px 12px;
    border-radius: 8px; /* menos redondeado */
    margin-left: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

#miIcono {
    transform: rotate(0deg);
}

.message-meta {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.75em;
    color: gray;
    margin-left: 6px;
}

.message-time {
    font-size: 1em;
}

/* Vista tablet */
@media screen and (max-width: 1024px) {
  .container {
    width: 90%;
  }
}

/* Vista móvil */
@media screen and (max-width: 600px) {
  .container {
    width: 100%;
    padding: 10px;
  }
  nav ul {
    display: block;
    text-align: center;
  }
}

#robotBubble {
  position: fixed;
  bottom: 150px;
  right: 40px;
  background: #fff;
  padding: 10px 15px;
  border-radius: 15px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  display: none;
  z-index: 1001;
  font-family: Arial, sans-serif;
  line-height: 1.4;
  overflow-wrap: break-word;
  white-space: normal;
  text-align: left;
  box-sizing: border-box;
  max-width: 300px;  /* ancho máximo */
  min-width: 100px;  /* ancho mínimo */
  height: auto;      /* dejar altura automática */
}

/* Sombras dinámicas tipo respiración */
@keyframes shadowPulse {
  0%, 100% { box-shadow: 0 2px 6px rgba(0,0,0,0.2); }
  50% { box-shadow: 0 4px 12px rgba(0,0,0,0.3); }
}

.shadow-pulse {
  animation: shadowPulse 1s infinite;
}

/* Animación de aparición tipo pop */
@keyframes popIn {
  0% { transform: scale(0.5); opacity: 0; }
  70% { transform: scale(1.1); opacity: 1; }
  100% { transform: scale(1); }
}

.pop-in {
  animation: popIn 0.4s ease forwards;
}

/* Ocultar burbuja en móviles */
@media (max-width: 767px) { /* hasta 767px es móvil */
  #robotBubble {
    display: none !important;
  }
}

@media (max-width: 767px) {
  body {
    background: url('../assets/fondotaam.jpeg') no-repeat center center fixed;
    background-size: cover;
  }
  
}

.chat-message {
  display: flex;
  align-items: flex-start;
  margin: 10px 0;
}

.chat-message.user {
  justify-content: flex-end;
}

.avatar {
  width: 35px;
  height: 35px;
  border-radius: 50%;
  margin: 0 8px;
}

.message-content {
  max-width: 70%;
}

.message-header {
  font-size: 0.85em;
  font-weight: bold;
  color: gray; /* azul para nombre */
  margin-bottom: 2px;
}

.bubble {
  background: #fff;
  border-radius: 8px;
  padding: 8px 11px 21px 11px; /* aumenta el padding inferior */
  position: relative;
  font-size: 0.95em;
  box-shadow: 0 1px 1px rgba(0,0,0,0.1);
}

.user .bubble {
  background: #dcf8c6; /* verde clarito estilo WhatsApp */
}

.meta {
  font-size: 0.75em;
  color: gray;
  float: right;
  margin-left: 8px;
    bottom: 2px;        /* la mueve hacia abajo */
    position: relative; /* necesario para .meta absoluta */
  right: 8px;         /* la mantiene a la derecha */
  
}

.modal {
  z-index: 1050 !important;
}
.modal-backdrop {
  z-index: 1040 !important;
}

.location-divider {
	text-align: center;
	font-size: 1rem;
	position: sticky;
	top: 0.1em;
	z-index: 9999;
}

.denuncia-over-location{
	top: 1.6em !important;
	 z-index: 9990;
}

.location-link{
	text-decoration: none;
	color: white;
	 z-index: 9990;
}

.chat-footer textarea {
    flex: 1;
    padding: 14px 10px;
    border-radius: 25px;
    border: none;
    outline: none;
    font-size: 18px;
    width: 100%;
    min-height: 60px;
    max-height: 100px; /* Ajusta según lo que prefieras */
    resize: none;
    box-sizing: border-box;
    overflow-y: auto;
    line-height: 1.4;
    transition: height 0.2s ease;
    scrollbar-width: none; /* Firefox: oculta scrollbar */
    -ms-overflow-style: none; /* IE/Edge: oculta scrollbar */
    -webkit-overflow-scrolling: touch; /* Soporte scroll suave en iOS */
}

.custom-textarea::-webkit-scrollbar {
    width: 0px;
    background: transparent;
}

#userInput {
    width: 100%;
    min-height: 40px;
    max-height: 100px; /* Altura máxima que puede alcanzar */
    resize: none;
    overflow-y: auto;
    padding: 10px;
    font-size: 16px;
    line-height: 1.4;
    border: 1px solid #ccc;
    border-radius: 8px;
    box-sizing: border-box;
}

.modal-body {
  max-height: 70vh;      /* altura máxima 70% de la ventana */
  overflow-y: auto;      /* si excede, agrega scroll interno */
  word-wrap: break-word; /* que las palabras largas se dividan */
}

.modal-agenda{
  max-width: 800px !important;
}



/*                       */
#table_id td{

   color: #000000 !important;

   font-size: 18px !important;

}



.dia-hover:hover{

    background-color: #ccc !important;

}



.tdDia-black{

    background-color: purple !important;

}



.td-habil{

    background-color: #40e656 !important;

}

.td-no-laboral{

    background-color: #eb3452 !important;

}

.td-espera{

    background-color: #f5ff33 !important;

}

.td-no-disp{

    background-color: #ff8c21 !important;

}

.td-selected{

    background-color: #3446eb !important;

}  

.td-inhabil{

    background-color: #707070 !important;

}

    

#wrapper{

    display:-webkit-flex;

    -webkit-justify-content:center;



    display:flex;

    justify-content:center;



}



#wrapper div{

    -webkit-flex:1;

    flex:1; 



}



.arrow-nav:hover{

    color: grey;

}

.date-divider{
    background-color: #E5DDD5 !important;
}

.floatBtn {
    border-radius: 50% !important;
    transition: all 0.3s ease !important;
    cursor: pointer !important;
}

.floatBtn:hover {
    transform: scale(1.1) !important;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25) !important;
}

.select2-container {
    z-index: 99999 !important;
}

.select2-container--open {
    z-index: 999999 !important;
}
