/* 1.25070700 */

@font-face{
    font-family: "Myriad";
    src: url("fonts/MYRIADPRO-REGULAR.OTF") format("opentype");
}

@font-face{
    font-family: "Myriad-Bold";
    src: url("fonts/MYRIADPRO-BOLD.OTF") format("opentype");
}

.chat-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    font-family: 'Myriad';
    font-weight:normal;
    font-style:normal;
}

.chat-bubble {
    background-color: none;
    width: 80px;
    height: 60px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;

    transition: transform 0.3s;
}

.chat-bubble:hover {
    transform: scale(1.1);
}

.chat-bubble img {
    width: 80px;
    height: 80px;
}

.chat-window {
    position: absolute;
    bottom: 70px;
    right: 0;
    width: 300px;
    height: 500px;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    display: none;
    flex-direction: column;
}

.chat-header {
    background-color: #f5f5f5;
    color: dimgray;
    padding: 15px;
    border-radius: 10px 10px 0 0;
}

.chat-messages {
    flex: 1;
    padding: 15px;
    overflow-y: auto;
}

.chat-input {
    background-color: #f5f5f5;
    color: black;
    padding: 10px;
    border-top: 1px solid #ddd;
    display: flex;
}

.chat-input input {
    background-color: #f5f5f5;
    flex: 1;
    padding: 8px;
    border: 0px;
    border-radius: 0px;
    margin-right: 8px;
}

.chat-input input:focus{
    outline-width: 0;
}

.send-button {
    background-color: none;
    width: 30px;
    height: 30px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s;
}

.send-button img{
    width: 25px;
    height: 25px;
}

.user-button{
    background-color: #D29BFD;
    font-size: 15px;
    height: 25px;
    color: white;
    border: none;
    border-radius: 7px;
    cursor: pointer;
    margin: 5px 0;
    transition: background 0.3s;
}
/* Sistema de mensajes */

.message {
    margin-bottom: 10px;
    padding: 8px;
    border-radius: 5px;
    max-width: 80%;
}


.user-message {
    background-color: #D29BFD;
    color:white;
    font-size: 13px;
    margin-left: auto;
    margin-bottom: 10px;
    padding: 8px;
    border-radius: 5px;
    max-width: 80%;
}

.bot-message {
    background-color: #5DC1B9;
    color: white;
    font-size: 13px;
    margin-bottom: 10px;
    padding: 8px;
    border-radius: 5px;
    max-width: 80%;
}

/* Registro */

.chat-entry {
    position: absolute;
    bottom: 70px;
    right: 0;
    width: 300px;
    height: 500px;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    display: none;
    flex-direction: column;
    align-items: center; 
    padding: 20px;
    gap: 20px;
}

.entry-fields{
    width: 300px;
    display: flex;
    flex-direction: column;
    align-items: center; 
    gap: 20px;
}

.entry-bot {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 60px;
    width: 100%;
}

.entry-titulo {
    font-size: 1.2em;
    font-family: "Myriad-Bold";
    color: #333;
}

.entry-icon {
    width: 50%;
}

.entry-status {
    display: flex;
    align-items: center;
}

.input-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 300px;
}

.input-container input {
    background-color: #f5f5f5;
    width: 80%;
    padding: 10px;
    border: 0;
    border-radius: 30px;
    margin: 5px 0;
}

.chat-entry input:focus{
    outline-width: 0;
}

.start-button {
    background-color: #5DC1B9;
    font-size: 18px;
    width: 40%;
    height: 35px;
    color: white;
    border: none;
    border-radius: 7px;
    cursor: pointer;
    margin: 5px 0;
    transition: background 0.3s;
}

.start-button:hover {
    background: #D29BFD;
}

.status-img-entry {
    width: 16px;
    height: 16px;
}

.entry-text {
    font-size: 0.8em;
    color: gray;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 200px;
}

/* Chat bot header*/

.left-section {
    display: flex;
    align-items: center;
    gap: 10px;
}

.bot-icon {
    width: 60px;
    height: 60px;
}

.status-bot {
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 60px;
    gap: 5px;
}

.bot-titulo {
    font-size: 1.2em;
    font-family: "Myriad-Bold";
    white-space: nowrap;
    margin: 0;
}

.status-container {
    display: flex;
    align-items: center;
    gap: 5px;
}

.status-img {
    width: 15px;
    height: 15px;
}

.status-text {
    font-size: 0.8em;
    color: #666;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 200px;
}

.thinking-indicator{
    display: none;
    background-color: #f5f5f5;
    color: #5DC1B9;
    padding: 15px;
    border-top: 1px solid #ddd;
}

/* Animación de puntos */

.boton-cerrar {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 15px;
    height: 15px;
    cursor: pointer;
    transition: transform 0.2s;
}

.dot {
  width: 8px;
  height: 8px;
  margin: 0 2px;
  background-color: #666;
  border-radius: 50%;
  animation: dotScale 1.4s infinite ease-in-out;
}

.dot:nth-child(1) {
  animation-delay: 0s;
}

.dot:nth-child(2) {
  animation-delay: 0.2s;
}

.dot:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes dotScale {
  0%, 80%, 100% { 
    transform: scale(0.5);
  } 
  40% { 
    transform: scale(1);
  }
}

/* Animación error */

.error-message {
    display: none;
    color: #ff4444;
    font-size: 0.8rem;
    margin-top: 4px;
    padding-left: 5px;
    text-align: center;
    animation: fadeIn 0.3s ease;
}

.error-message.show-error {
    display: block;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/*

                <span>
                    <button class="user-button" id="userButton" onclick="sendMessage()">Enviar</button>
<!--<button onclick="sendMessage()">Enviar</button>-->
                </span>
*/