/* Estilos específicos para el chatbot */

 :root {
    /* Definición de colores basados en la imagen (contenedores azules) */
    --main-blue: #0A58CA;
    /* Un azul fuerte para botones y encabezados */
    --light-blue: #0d6efd;
    --chat-bg: #f8f9fa;
}

#chatbot-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1050;
    font-family: Arial, sans-serif;
}

#chat-popup {
    width: 320px;
    height: 450px;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
    /* Sombra un poco más marcada */
    border-radius: 12px;
    overflow: hidden;
    display: none;
    background: var(--chat-bg);
    border: none;
    /* Quitamos el borde */
}

#chat-header {
    background-color: var(--main-blue);
    color: white;
    padding: 15px;
    font-size: 1.1rem;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#chat-body {
    height: 330px;
    overflow-y: auto;
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    background-color: #ffffff;
    /* Fondo blanco para el cuerpo del chat */
}

.message {
    max-width: 85%;
    /* Un poco más de ancho */
    padding: 10px 14px;
    /* Mayor padding */
    border-radius: 18px;
    /* Más redondeado */
    line-height: 1.4;
    font-size: 0.95rem;
}

.bot-message {
    background-color: #e6f0ff;
    /* Azul muy claro para el bot */
    color: #333;
    align-self: flex-start;
    border-bottom-left-radius: 4px;
}

.user-message {
    background-color: var(--light-blue);
    /* Azul primario para el usuario */
    color: white;
    align-self: flex-end;
    border-bottom-right-radius: 4px;
}

.chat-input-area {
    display: flex;
    padding: 8px;
    border-top: 1px solid #dee2e6;
    background-color: #f0f0f0;
    /* Fondo ligeramente gris para el área de input */
}

#user-input.form-control {
    border-radius: 20px;
    padding-right: 10px;
}

#send-btn {
    border-radius: 50px !important;
    padding: 8px 12px;
    font-size: 1rem;
}

#chat-toggle-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: var(--main-blue);
    color: white;
    border: none;
    font-size: 1.6rem;
    /* Icono más grande */
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
    transition: all 0.3s;
}

#chat-toggle-btn:hover {
    background-color: #0d6efd;
    transform: scale(1.05);
}


/* Estilo para el input mientras espera respuesta */

#user-input.disabled-input {
    background-color: #e9ecef;
    cursor: not-allowed;
}


/* Estilo para mensajes de notificación o error */

.notification-message {
    background-color: #ffcccc;
    /* Rojo claro para error */
    color: #cc0000;
    align-self: center;
    border-radius: 8px;
    font-size: 0.85rem;
}