/* Estilos generales */
body {
    font-family: 'Arial', sans-serif;
    background-color: #f4f4f9;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
}

/* Contenedor del chat */
.chat-container {
    width: 400px;
    background: white;
    border-radius: 10px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* Encabezado */
header {
    background-color: #e19deb;
    color: white;
    text-align: center;
    padding: 15px;
    font-size: 18px;
    font-weight: bold;
}

/* Caja de mensajes */
.chat-box {
    flex-grow: 1;
    padding: 10px;
    overflow-y: auto;
    max-height: 300px;
    display: flex;
    flex-direction: column;
}

/* Mensajes */
.message {
    max-width: 70%;
    padding: 8px 12px;
    margin: 5px;
    border-radius: 8px;
    word-wrap: break-word;
}

/* Mensajes del usuario */
.message.user {
    align-self: flex-end;
    background-color: #e19deb;
    color: white;
}

/* Mensajes de otros */
.message.other {
    align-self: flex-start;
    background-color: #e5e5ea;
    color: black;
}

/* Input y botón */
.chat-input {
    display: flex;
    padding: 10px;
    background: #fff;
    border-top: 1px solid #ddd;
}

.chat-input input {
    flex-grow: 1;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 5px;
    outline: none;
}

.chat-input button {
    background: #e19deb;
    color: white;
    border: none;
    padding: 8px 15px;
    margin-left: 5px;
    border-radius: 5px;
    cursor: pointer;
    transition: 0.3s;
}

.chat-input button:hover {
    background: #d776e7;
}

.messageReciever {
    font-weight: bold;
    font-size: 12px;
    padding: 0 5px;
}

.messageSender {
    font-weight: bold;
    font-size: 12px;
    padding: 0 5px;
    text-align: end;
}