/*! tailwindcss v4.0.15 | MIT License | https://tailwindcss.com */
/* === General === */
body {
    font-family: 'Arial', sans-serif;
    background-color: #ffffff;
    color: #333;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* === Contenedor del Chat === */
.chat-container {
    width: 90%;
    max-width: 350px;
    background: #f3f4f6;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    padding: 20px;
    border: 1px solid #d1d5db;
    gap: 4px; /* Reduce la separación */
}

/* === Título === */
.chat-container h2 {
    font-size: 1rem;  /* Tamaño más pequeño */
    font-weight: 600;  /* Menos negrita */
    font-weight: bold;
    text-align: center;
    color: #3B82F6;
}

/* === Área de Mensajes === */
#chat {
    height: 320px;
    overflow-y: auto;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 15px;
}

/* === Mensajes === */
#chat div {
    margin-bottom: 10px;
    display: flex;
}

/* Mensajes del usuario */
#chat .text-right {
    justify-content: flex-end;
}

#chat .text-right span {
    background: #3B82F6;
    color: #ffffff;
    padding: 10px 15px;
    border-radius: 15px;
    max-width: 80%;
    display: inline-block;
}

/* Mensajes del bot */
#chat .text-left {
    justify-content: flex-start;
}

#chat .text-left span {
    background: #e5e7eb;
    color: #333;
    padding: 10px 15px;
    border-radius: 15px;
    max-width: 80%;
    display: inline-block;
}

/* === Input y Botón === */
.chat-input {
    display: flex;
    gap: 8px;
}

#mensaje {
    flex-grow: 1;
    padding: 12px;
    border-radius: 12px;
    border: none;
    background: #e5e7eb;
    color: #333;
    font-size: 16px;
    outline: none;
    transition: all 0.2s ease-in-out;
}

#mensaje:focus {
    background: #ffffff;
    border: 2px solid #3B82F6;
    outline: none;
}

#send-btn {
    padding: 12px 15px;
    background: #3B82F6;
    color: white;
    font-size: 16px;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: background 0.3s ease-in-out, transform 0.2s;
}

#send-btn:hover {
    background: #3B82F6;
    transform: scale(1.05);
}

/* === Scroll Personalizado === */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-thumb {
    background-color: #3B82F6;
    border-radius: 3px;
}
