#whatsappButton {
    position: fixed;
    left: 20px;
    bottom: 20px;
    width: 60px;
    height: 60px;
    background-color: #25D366;
    color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 30px;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

#whatsappButton:hover {
    background-color: #128C7E;
}

#whatsappChatBox {
    position: fixed;
    left: 20px;
    bottom: 20px;
    width: 320px; /* Aumentado de 300px a 320px */
    height: 400px; /* Ajustado para más altura */
    padding: 0;
    border-radius: 15px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    background: url('/login/images/whats_background.jpg') no-repeat center center;
    background-size: cover;
}

#chatHeader {
    background-color: #0b141b;
    color: white;
    padding: 10px;
    width: 320px; /* Asegura que se extienda completamente a los bordes */
    display: flex;
    align-items: center;
    border-top-left-radius: 15px;
    border-top-right-radius: 15px;
}

#chatHeader img {
    width: 40px; /* Aumentado para mejor visualización */
    height: 40px;
    border-radius: 50%;
    margin-right: 10px;
}

#messages {
    background-color: transparent;
    padding: 0px;
    height: 280px; /* Ajustado para más contenido */
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

#messageContainer {
    display: flex;
    padding: 10px; /* Añadido para dar espacio */
}

#messages p {
    color: white;
    padding: 5px 10px;
    margin: 5px;
    max-width: 70%;
    border-radius: 7.5px;
}
#messages p.bot {
    background-color: #1f2c34;
    align-self: flex-start;
}
#messages p.user {
    background-color: #005d4b;
    align-self: flex-end;
}
#messages p.received {
    background-color: #fff; /* Blanco para mensajes recibidos */
    align-self: flex-start; /* Alinea los mensajes recibidos a la izquierda */
}

#whatsappMessage {
    flex-grow: 1;
    border-radius: 15px;
    padding: 10px;
    border: none;
    outline: none;
}

button#sendButton {
    background: url('/login/images/send_icon.png') no-repeat center center;
    background-size: 50%; /* Ajustado para hacer el icono un 20% más pequeño visualmente */
    border: none;
    width: 40px;
    height: 40px;
    background-color: #25d366;
    border-radius: 50%;
    cursor: pointer;
    margin-left: 5px; /* Asegura espacio entre el input y el botón */
}

