/**
* 2007-2024 PrestaShop
*
* NOTICE OF LICENSE
*
* This source file is subject to the Academic Free License (AFL 3.0)
* that is bundled with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://opensource.org/licenses/afl-3.0.php
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to license@prestashop.com so we can send you a copy immediately.
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
* versions in the future. If you wish to customize PrestaShop for your
* needs please refer to http://www.prestashop.com for more information.
*
*  @author    PrestaShop SA <contact@prestashop.com>
*  @copyright 2007-2024 PrestaShop SA
*  @license   http://opensource.org/licenses/afl-3.0.php  Academic Free License (AFL 3.0)
*  International Registered Trademark & Property of PrestaShop SA
*
* Don't forget to prefix your containers with your own identifier
* to avoid any conflicts with others containers.
*/

.n8n-chatbot-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.n8n-chatbot-button {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: #2fb5d2;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.n8n-chatbot-button:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.n8n-chatbot-box {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 750px;
    height: 650px;
    max-width: 90vw;
    max-height: 90vh;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    display: none;
}

.n8n-chatbot-header {
    background-color: #2fb5d2;
    color: white;
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.n8n-chatbot-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: bold;
}

.n8n-chatbot-close {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    padding: 0;
}

.n8n-chatbot-messages {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.n8n-chatbot-message {
    max-width: 85%;
    margin-bottom: 15px;
    padding: 12px 18px;
    border-radius: 18px;
    line-height: 1.5;
    word-wrap: break-word;
}

.n8n-chatbot-message p {
    margin: 0;
    margin-bottom: 5px;
}

.n8n-chatbot-message p:last-child {
    margin-bottom: 0;
}

.n8n-chatbot-message ul {
    margin-top: 5px;
    margin-bottom: 0;
    padding-left: 20px;
}

.user-message {
    align-self: flex-end;
    background-color: #2fb5d2;
    color: white !important;
    border-bottom-right-radius: 5px;
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.1);
    font-weight: 500;
}

.user-message p,
.user-message span,
.user-message a,
.user-message * {
    color: white !important;
    font-size: 1.05em;
}

.bot-message {
    align-self: flex-start;
    background-color: #f1f1f1;
    color: #333;
    border-bottom-left-radius: 5px;
}

.bot-message.error {
    background-color: #ffebee;
    color: #e53935;
}

.bot-message.error p {
    margin-bottom: 5px;
}

.n8n-chatbot-input-container {
    display: flex;
    padding: 15px 20px;
    border-top: 1px solid #e0e0e0;
}

.n8n-chatbot-input {
    flex: 1;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 20px;
    outline: none;
    font-size: 16px;
}

.n8n-chatbot-send {
    background-color: #2fb5d2;
    color: white;
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    margin-left: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.n8n-chatbot-send:disabled {
    background-color: #cccccc;
    cursor: not-allowed;
}

.n8n-chatbot-loading {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.n8n-chatbot-loading span {
    width: 10px;
    height: 10px;
    background-color: #ccc;
    border-radius: 50%;
    margin: 0 3px;
    animation: loadingAnimation 1s infinite alternate;
}

.n8n-chatbot-loading span:nth-child(2) {
    animation-delay: 0.2s;
}

.n8n-chatbot-loading span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes loadingAnimation {
    0% {
        transform: translateY(0);
    }
    100% {
        transform: translateY(-10px);
    }
}

.n8n-chatbot-table-container {
    max-width: 100%;
    overflow-x: auto;
    margin: 10px 0;
}

.n8n-chatbot-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9em;
}

.n8n-chatbot-table th,
.n8n-chatbot-table td {
    border: 1px solid #ddd;
    padding: 8px 10px;
    text-align: left;
}

.n8n-chatbot-table th {
    background-color: #f5f5f5;
    font-weight: bold;
}

.n8n-chatbot-download-button {
    margin-top: 15px;
    padding: 10px 20px;
    background-color: #2fb5d2;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 15px;
}

.n8n-chatbot-download-button:hover {
    background-color: #268fa5;
}

/* Mensajes con código SQL */
.n8n-chatbot-message code {
    background-color: #f8f8f8;
    padding: 2px 4px;
    border-radius: 3px;
    font-family: monospace;
    font-size: 0.9em;
}

/* Estilo para mensajes con tablas grandes */
.n8n-chatbot-message.bot-message {
    max-width: 95%;
}

/* Ajuste específico para mensajes con tablas en pantalla completa */
.n8n-chatbot-message.bot-message[style*="width: 95%"] {
    max-width: 98%;
    width: 98% !important;
}

@media (max-width: 768px) {
    .n8n-chatbot-box {
        width: 90vw;
        height: 80vh;
        max-width: none;
        max-height: none;
    }
    
    .n8n-chatbot-message {
        max-width: 95%;
    }
} 
