/* ========================================
   CHATBOT ETERNO MARCAS - CSS
   Adicione este CSS no arquivo de estilos principal
   ou dentro de uma tag <style> no <head>
   ======================================== */

/* Botão de chat flutuante */
.eterno-chat-button {
    position: fixed;
    bottom: 80px;
    right: 20px;
    background: #4d4dff;  /* Cor azul padrão do site */
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: all 0.3s ease;
    animation: pulse 2s infinite;
}

.eterno-chat-button:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(0,0,0,0.4);
}

.eterno-chat-button svg {
    width: 28px;
    height: 28px;
}

/* Animação de pulso */
@keyframes pulse {
    0%, 100% {
        box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    }
    50% {
        box-shadow: 0 4px 12px rgba(77, 77, 255, 0.6), 0 0 0 10px rgba(77, 77, 255, 0);
    }
}

/* Container do chat */
.eterno-chat-container {
    position: fixed;
    bottom: 80px;
    right: 90px;  /* Posicionado ao lado esquerdo do botão */
    width: 450px;  /* Aumentado de 380px para 450px */
    height: 700px;  /* Aumentado de 600px para 700px */
    max-height: calc(100vh - 200px);  /* Ajustado para ficar abaixo do menu */
    background: white;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.2);
    display: none;
    flex-direction: column;
    z-index: 9998;
    overflow: hidden;
    animation: slideUp 0.3s ease;
}

.eterno-chat-container.active {
    display: flex;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Header do chat */
.eterno-chat-header {
    background: #4d4dff;  /* Cor azul padrão do site */
    color: white;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.eterno-chat-header-info h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
}

.eterno-chat-header-info p {
    margin: 5px 0 0 0;
    font-size: 12px;
    opacity: 0.9;
}

.eterno-chat-close {
    background: transparent;
    border: none;
    color: white;
    cursor: pointer;
    font-size: 24px;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s;
}

.eterno-chat-close:hover {
    transform: rotate(90deg);
}

/* Corpo do chat (iframe) */
.eterno-chat-body {
    flex: 1;
    overflow: hidden;
    background: #f5f5f5;
}

.eterno-chat-body iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* Badge de notificação */
.eterno-chat-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #ff4757;
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
    animation: bounce 0.5s ease;
}

@keyframes bounce {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

/* Responsivo */
@media (max-width: 768px) {
    .eterno-chat-container {
        width: 100%;
        height: 100%;
        max-height: 100vh;
        bottom: 0;
        right: 0;
        border-radius: 0;
    }

    .eterno-chat-button {
        bottom: 70px;
        right: 15px;
        width: 56px;
        height: 56px;
    }

    .eterno-chat-button svg {
        width: 24px;
        height: 24px;
    }
}

/* Loader enquanto carrega */
.eterno-chat-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: #667eea;
}

.eterno-chat-loading::after {
    content: "";
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
