/*
To change this license header, choose License Headers in Project Properties.
To change this template file, choose Tools | Templates
and open the template in the editor.
*/
/* 
    Created on : 18-03-2025, 15:03:39
    Author     : NB-CLOPEZ-DL
*/


#divContenido{
   width: 100%;
}

#divChatbotSide{
    margin: 0px 5px 0px 0px;
    display:none;
    width: 30%;
    height: 82vh;
    /*border: 1px solid black;*/
    border-radius: 10px;
    background: #f2f2f2;
}


.chatbotSide {
    background: #f2f2f2;
    height: 100%;
}

.chatbotSide header {
    display: flex;
    padding: 23px 0;
    /*height:10%;*/
    position: relative;
    text-align: center;
    background-color: #fff;
    background-clip: border-box;
    border: 1px solid rgba(0, 0, 0, 0.125);
    border-radius: 0.25rem 0.25rem  0 0;
}

.chatbotSide header span {
    position: absolute;
    right: 15px;
    top: 50%;
    display: block;
    cursor: pointer;
    transform: translateY(-50%);
}

#txtHeaderChatbot{
    font-size: 1.5em;
    width: 80%;
    margin:0px;
    color: #007bff;
}

.chatbotSide .chatbox-side, .chatbotSide .chatboxTemporal-side{
    overflow-y: auto;
    height: 85%;
    padding: 30px 20px 10px;
    margin:0; 
    background-color: #fff;
    background-clip: border-box;
    border-left : 1px solid rgba(0, 0, 0, 0.125);
    border-right: 1px solid rgba(0, 0, 0, 0.125);
    
    
}

.chatbotSide .chat-input {
    display: flex;
    gap: 5px;
    bottom: 0;
    width: 100%;
    background: #fff;
    padding: 3px 20px;
    border-top: 1px solid #ddd;
}

.chatbox-side .chat, .chatboxTemporal-side .chat{
    display: flex;
    list-style: none;
}

.chatbox-side .outgoing, .chatboxTemporal-side .outgoing{
    margin: 20px 0;
    justify-content: flex-end;
}

.chatbox-side .incoming span, .chatboxTemporal-side .incoming span { 
    width: 32px;
    height: 32px;
    color: #fff;
    cursor: default;
    text-align: center;
    line-height: 32px;
    align-self: flex-end;
    background: #007bff;
    border-radius: 4px;
    margin: 0 10px 7px 0;
}

.chatbox-side .chat p, .chatboxTemporal-side .chat p{
    white-space: pre-wrap;
    padding: 12px 16px;
    border-radius: 10px 10px 0 10px;
    max-width: 75%;
    color: #fff;
    font-size: 0.95rem;
    background: #007bff;
}

.chatbox-side .incoming p, .chatboxTemporal-side .incoming p {
    border-radius: 10px 10px 10px 0;
}

.chatbox-side .chat p.error {
    color: #721c24;
    background: #f8d7da;
}

.chatbox-side .incoming p, .chatboxTemporal-side .incoming p{
    color: #000;
    display: inline-block;
    width: auto;
    overflow-x: auto;  /* Para manejar contenido desbordado, si es necesario */
    background-color: #f2f2f2;
    border-radius: 10px 10px 10px 0;
    padding: 12px 12px 2px 12px;
    margin-right: 10px;
}

.chatbox-side .incoming p p, .chatboxTemporal-side .incoming p p{
    background-color: #f2f2f2;
    max-width: 100% !important;
    margin-bottom: 5px;
    padding: 8px 8px 0px 8px;
}

.chatbotSide .chat-input-side {
    display: flex;
    gap: 5px;
    bottom: 0;
    width: 100%;
    background: #fff;
    padding: 3px 20px;
    border-top: 1px solid #ddd;
    background-color: #fff;
    background-clip: border-box;
    border-left : 1px solid rgba(0, 0, 0, 0.125);
    border-right: 1px solid rgba(0, 0, 0, 0.125);
    border-bottom: 1px solid rgba(0, 0, 0, 0.125);
    border-radius: 0 0 0.25rem 0.25rem  ;
}
.chat-input-side textarea {
    
    width: 100%;
    border: none;
    outline: none;
    resize: none;
    height: 90% !important;
    padding: 15px 15px 0px 10px;
    font-size: 0.95rem;
    border-radius: 10px;
}
.chat-input-side .icons-buttons span, .chat-input-side .icons-buttons i  {
    align-self: flex-end;
    color: #724ae8;
    cursor: pointer;
    height: 55px;
    display: flex;
    align-items: center;
    font-size: 1.35rem;
}



.chat-input-side .icons-buttons span{
    visibility: hidden;
}
.chat-input-side textarea:valid ~ .icons-buttons span {
    visibility: visible;
}

@media (max-width: 490px) {
    .chatbot-toggler {
        right: 20px;
        bottom: 20px;
    }
    .chatbotSide {
        right: 0;
        bottom: 0;
        height: 100%;
        border-radius: 0;
        width: 100%;
    }
    .chatbotSide .chatbox-side, .chatbotSide .chatboxTemporal-side {
        height: 90%;
        padding: 25px 15px 100px;
    }
    .chatbotSide .chat-input-side {
        padding: 5px 15px;
    }
    .chatbotSide header span {
        display: block;
    }

    /*  #modal-formulario {
          @include 'plugins/formio/css/formio.full.min.css';
      }
      
      .onlyThis {
          @include 'formio.full.min.css';
      }*/


}

@media (max-height: 800px){
    .chatbox-side, .chatboxTemporal-side{
        height: 420px !important;
    }
}

@media (max-height: 680px){
    .chatbox-side, .chatboxTemporal-side{
        height: 320px !important;
    }
}

@media (max-height: 570px){
    .chatbox-side, .chatboxTemporal-side{
        height: 200px !important;
    }
}

.chatbot-icon-side{
    font-size: 20px;
}

#btnCloseChatbot-side{
    padding: 10px 10px 10px 10px;
    border-radius: 2px;
    
}
#btnCloseChatbot-side {
    color: #e0e0e0;
    background-color: #fff;
    border-color: #fff;
    box-shadow: none;
}

#btnCloseChatbot-side:hover {
    color: #ffffff;
    background-color: #c5c5c5;
    border-color: #c5c5c5;
}

#btnCloseChatbot-side:focus, #btnCloseChatbot-side.focus {
    color: #ffffff;
    background-color: #c5c5c5; /* Vuelve al color original */
    border-color: #c5c5c5;
    box-shadow: none;
}

#btnCloseChatbot-side:focus:hover {
    background-color: #c5c5c5;
    border-color: #c5c5c5;
}


#btnCloseChatbot-side.disabled, #btnCloseChatbot-side:disabled {
    color: #ffffff;
    background-color: #c5c5c5;
    border-color: #c5c5c5;
}

#btnCloseChatbot-side:not(:disabled):not(.disabled):active, #btnCloseChatbot-side:not(:disabled):not(.disabled).active,
.show > #btnCloseChatbot-side.dropdown-toggle {
    color: #ffffff;
    background-color: #c5c5c5;
    border-color: #005cbf;
}

#btnCloseChatbot-side:not(:disabled):not(.disabled):active:focus, #btnCloseChatbot-side:not(:disabled):not(.disabled).active:focus,
.show > #btnCloseChatbot-side.dropdown-toggle:focus {
    box-shadow: 0 0 0 0 rgba(38, 143, 255, 0.5);
}

#icon-ia {
    padding: 0 20px 0 20px;
    margin-left:20px;
    width: 30px; 
    height: 30px; 
    background-color: #007bff; 
    border-radius: 10%; 
    display:flex; 
    align-items: center; 
    justify-content: center;   
}

  @media (max-width: 600px) {
    .content {
      flex-direction: column; /* Cambia a vertical */
      align-items: center; /* Centra los elementos */
    }

    .container-fluid {
      width: 100%; /* Cada div ocupa el 100% en móvil */
      order: 2;
    }
    
    #divChatbotSide {
      width: 95%; /* Cada div ocupa el 100% en móvil */
      order: 1; /* Lo mueve al inicio en móvil */
      max-height: 70vh;
      margin-bottom: 5px;
    }
    
    .chatbotSide{
        max-height: 60vh;
    }
  }
