/* chatbot.css - Estilos para o módulo de WhatsApp */
/* Estilos para o modal de login do chat */
.chat-login-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10001;
    animation: fadeIn 0.3s ease;
}

.chat-login-container {
    background: white;
    border-radius: 15px;
    width: 90%;
    max-width: 400px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    animation: slideUp 0.3s ease;
}
/* Transições suaves */
#chatWindow, #chatLoginModal, .message {
    transition: all 0.3s ease;
}

/* Indicador de usuário logado */
.chat-user-indicator {
    width: 8px;
    height: 8px;
    background: #4CAF50;
    border-radius: 50%;
    position: absolute;
    top: 5px;
    right: 5px;
}

/* Mensagem de erro */
.message-error {
    background: #ffebee;
    color: #c62828;
    padding: 10px;
    margin: 5px;
    border-radius: 5px;
    text-align: center;
    font-size: 12px;
}
@keyframes slideUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.chat-login-header {
    background: linear-gradient(135deg, #25d366, #128c7e);
    color: white;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-login-header h3 {
    margin: 0;
    font-size: 18px;
}

.close-login-modal {
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chat-login-body {
    padding: 20px;
}

.chat-error-message {
    background: #ffe6e6;
    color: #d63031;
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 15px;
    font-size: 14px;
    border-left: 4px solid #d63031;
}

.chat-login-body .form-group {
    margin-bottom: 15px;
}

.chat-login-body label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: #333;
}

.chat-login-body input {
    width: 100%;
    color:black;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    box-sizing: border-box;
}

.chat-login-body input:focus {
    outline: none;
    border-color: #25d366;
    box-shadow: 0 0 0 2px rgba(37, 211, 102, 0.2);
}

.status-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #4ade80;
    display: inline-block;
    margin-left: 10px;
    position: relative;
}

.status-indicator::after {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    border-radius: 50%;
    border: 2px solid rgba(74, 222, 128, 0.5);
    animation: pulse 2s infinite;
}

.status-connected {
    background-color: #4ade80;
}

.status-waiting {
    background-color: #fbbf24;
}

.status-operator-responded {
    background-color: #3b82f6;
}

.status-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #4ade80;
    margin-left: 10px;
    position: relative;
}

.status-indicator::after {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    border-radius: 50%;
    border: 2px solid rgba(74, 222, 128, 0.5);
    animation: pulse 2s infinite;
}

.status-connected {
    background-color: #4ade80;
}

.status-waiting {
    background-color: #fbbf24;
}

.status-operator-responded {
    background-color: #3b82f6;
}

.status-error {
    background-color: #ef4444;
}

@keyframes pulse {
    0% {
        transform: scale(0.8);
        opacity: 0.7;
    }
    50% {
        transform: scale(1.2);
        opacity: 0.3;
    }
    100% {
        transform: scale(0.8);
        opacity: 0.7;
    }
}

.status-error {
    background-color: #ef4444;
}

@keyframes pulse {
    0% {
        transform: scale(0.8);
        opacity: 0.7;
    }
    50% {
        transform: scale(1.2);
        opacity: 0.3;
    }
    100% {
        transform: scale(0.8);
        opacity: 0.7;
    }
}

.privacy-note {
    margin: 15px 0;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 5px;
    font-size: 12px;
    color: #666;
}

.privacy-note a {
    color: #25d366;
    text-decoration: none;
}

.chat-login-btn {
    width: 100%;
    background: linear-gradient(135deg, #25d366, #128c7e);
    color: white;
    border: none;
    padding: 15px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
}

.chat-login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(37, 211, 102, 0.4);
}

.chat-login-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Indicador de usuário logado */
.chat-user-info {
    position: fixed;
    bottom: 100px;
    right: 20px;
    background: white;
    padding: 10px 15px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    font-size: 12px;
    z-index: 10000;
    animation: slideInRight 0.3s ease;
}

@keyframes slideInRight {
    from {
        transform: translateX(100px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.chat-user-info::after {
    content: '';
    position: absolute;
    top: 100%;
    right: 20px;
    border: 5px solid transparent;
    border-top-color: white;
}

.chat-logout-btn {
    background: none;
    border: none;
    color: #25d366;
    cursor: pointer;
    font-size: 11px;
    margin-left: 5px;
    text-decoration: underline;
}

/* Estados do botão de chat quando logado */
.chat-logged-in .whatsapp-chat-button {
    background-color: #128c7e;
    animation: none; /* Remove a animação de pulsar quando logado */
}

.chat-user-indicator {
    position: absolute;
    top: -2px;
    right: -2px;
    width: 12px;
    height: 12px;
    background: #25d366;
    border: 2px solid white;
    border-radius: 50%;
}
.whatsapp-chat-container {
    position: fixed;
    bottom: 40px;
    right: 50px;
    z-index: 10000;
}

.whatsapp-chat-button {
    width: 60px;
    height: 60px;
    background-color: #25d366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.5);
    transition: all 0.3s ease;
    animation: pulse 2s infinite;
    opacity: 0;
}
/* Nova animação para aparecer suavemente */
@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

.whatsapp-chat-button {
    animation: 
        fadeIn 0.5s ease-in 3s forwards, /* Aparece após 3s */
        pulse 2s infinite 3.5s; /* Pulsar inicia após 3.5s */
}

/* Manter a animação de pulsar existente */
@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(37, 211, 102, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}
.whatsapp-chat-button:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 16px rgba(37, 211, 102, 0.6);
}

.whatsapp-chat-button i {
    color: white;
    font-size: 28px;
}

.notification-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: #ff4d4f;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
}

.chat-window {
    position: absolute;
    bottom: 70px;
    right: 35px;
    width: 450px;
    height: 600px;
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
    display: none;
    flex-direction: column;
    overflow: hidden;
}

.chat-header {
    background-color: #075e54;
    color: white;
    padding: 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.chat-avatar {
    width: 40px;
    height: 40px;
    background-color: white;
    color: #075e54;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 18px;
    margin-right: 10px;
}

.chat-contact-info {
    flex:1;
    display: flex;
    align-items: center;
    gap: 10px;
}

.chat-contact-info h3 {
    margin: 0;
    font-size: 16px;
  
}

.chat-contact-info p {
    margin: 2px 0 0;
    font-size: 12px;
    opacity: 0.8;
}

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

.chat-messages {
    flex: 1;
    padding: 15px;
    overflow-y: auto;
    background-color: #e5ddd5;
    background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z' fill='%23aaaaaa' fill-opacity='0.1' fill-rule='evenodd'/%3E%3C/svg%3E");
}
/* Animações para novas mensagens */
@keyframes messageSlideIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message {
    animation: messageSlideIn 0.3s ease;
    margin-bottom: 15px;
    display: flex;
    flex-direction: column;
    max-width: 80%;
}

.message.received {
    align-items: flex-start;
}

.message.sent {
    align-items: flex-end;
    margin-left: auto;
}

.message p {
    padding: 8px 12px;
    border-radius: 18px;
    margin: 2px 0;
    font-size: 14px;
    line-height: 1.4;
}

.message.received p {
    background-color: white;
    color: #262626;
    border-top-left-radius: 4px;
}

.message.sent p {
    background-color: #dcf8c6;
    color: #262626;
    border-top-right-radius: 4px;
}

.message-time {
    font-size: 10px;
    color: #999;
    margin-top: 2px;
}

.chat-input {
    display: flex;
    padding: 10px;
    background-color: #f0f0f0;
    border-top: 1px solid #ddd;
}

.chat-input input {
    flex: 1;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 20px;
    outline: none;
    font-size: 14px;
}

.chat-input button {
    margin-left: 8px;
    padding: 10px 15px;
    background-color: #25d366;
    color: white;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
}

.chat-input button:hover {
    background-color: #128c7e;
}

@media (max-width: 768px) {
            .whatsapp-chat-container {
                position: fixed;
                bottom: 20px;
                right: 20px;
                z-index: 10000;
                transition: all 0.3s ease;
            }
            
            .whatsapp-chat-button {
                width: 60px;
                height: 60px;
                background: #25D366;
                border-radius: 50%;
                display: flex;
                align-items: center;
                justify-content: center;
                color: white;
                font-size: 30px;
                box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
                cursor: pointer;
                transition: all 0.3s ease;
                position: relative;
                z-index: 10001;
            }
            
            .chat-window {
                position: fixed;
                bottom: 90px;
                right: 20px;
                width: calc(100vw - 40px);
                max-width: 350px;
                height: 400px;
                background: white;
                border-radius: 15px;
                box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
                display: flex;
                flex-direction: column;
                overflow: hidden;
                z-index: 10000;
                transform: translateY(20px);
                opacity: 0;
                visibility: hidden;
                transition: all 0.3s ease;
            }
            
            .chat-window.active {
                transform: translateY(0);
                opacity: 1;
                visibility: visible;
            }
            
            /* Melhorias no header para mobile */
            .header {
                padding: 0 15px;
            }
            
            .logo-text {
                font-size: 18px;
            }
            
            /* Ajustes no coverflow para mobile */
            .coverflow-container {
                width: 100%;
                overflow: hidden;
            }
            
            .coverflow-item {
                width: 180px !important;
                height: 180px !important;
            }
            
            .coverflow-item .cover {
                border-radius: 15px;
            }
            
            .coverflow-item .cover img {
                border-radius: 15px;
            }
            
            /* Ajustes de navegação */
            .nav-button {
                width: 40px;
                height: 40px;
                font-size: 18px;
            }
            
            .nav-button.prev {
                left: 5px;
            }
            
            .nav-button.next {
                right: 5px;
            }
            
            /* Ajustes na seção about */
            .about-main {
                flex-direction: column;
            }
            
            .about-visual, .about-info {
                width: 100%;
                padding: 0 10px;
            }
            
            /* Ajustes na seção de contato */
            .contact-container {
                flex-direction: column;
            }
            
            .contact-info-section, .contact-form-section {
                width: 100%;
                padding: 0 10px;
            }
            
            /* Garantir que o conteúdo não transborde */
            .section {
                overflow: hidden;
            }
        }
        
        @media (max-width: 480px) {
            
            .whatsapp-chat-container {
            position: fixed;
            bottom: 30px;
            right: 30px;
            z-index: 10000;
        }
            .whatsapp-chat-button {
             
                width: 50px;
                height: 50px;
                font-size: 24px;
            }
            
            .coverflow-item {
                width: 150px !important;
                height: 150px !important;
            }
            
            .info h2 {
                font-size: 18px;
            }
            
            .info p {
                font-size: 14px;
            }
            
            /* Correção para evitar transbordamento horizontal */
            body {
                overflow-x: hidden; width: 100%; position: relative;font-family: Arial, sans-serif; background: #f5f5f5;
            }
            
            .coverflow-wrapper {
                padding: 0 10px;
            }
        .container { max-width: 500px; margin: 50px auto; padding: 20px; background: white; border-radius: 8px; }
.chat-container { max-width: 600px; margin: 30px auto; background: white; border-radius: 8px; box-shadow: 0 2px 10px rgba(0,0,0,0.1); }
.chat-header { padding: 15px; background: #007bff; color: white; text-align: center; }
.chat-messages { height: 400px; overflow-y: auto; padding: 15px; background: #f9f9f9; }
.message { margin: 8px 0; padding: 10px; border-radius: 8px; max-width: 80%; }
.message.client { background: #e3f2fd; margin-left: auto; text-align: right; }
.message.operator { background: #f1f1f1; }
.chat-input { display: flex; padding: 15px; border-top: 1px solid #eee; }
.chat-input input { flex: 1; padding: 10px; border: 1px solid #ccc; border-radius: 4px; }
.chat-input button { padding: 10px 20px; background: #28a745; color: white; border: none; border-radius: 4px; cursor: pointer; }
        
        /* Prevenir que elementos saiam da viewport */
        .container-fix {
            max-width: 100%;
            overflow: hidden;
        }
        
        /* Garantir que imagens são responsivas */
        img {
            max-width: 100%;
            height: auto;
        }
        
        /* Melhorias no menu mobile */
        .main-menu {
            transition: all 0.3s ease;
        }
        
        .whatsapp-chat-button:hover {
            transform: scale(1.1);
            box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
        }
        
        .notification-badge {
            position: absolute;
            top: -5px;
            right: -5px;
            background: #ff4757;
            color: white;
            width: 25px;
            height: 25px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 12px;
            font-weight: bold;
        }
        
        /* Estilos para a janela de chat */
        .chat-window {
            position: absolute;
            bottom: 90px;
            right: 0;
            width: 380px;
            height: 400px;
            background: white;
            border-radius: 15px;
            box-shadow: 0 5px 25px rgba(0, 0, 0, 0.2);
            display: flex;
            flex-direction: column;
            overflow: hidden;
            z-index: 10000;
            transform: translateY(20px);
            opacity: 0;
            visibility: hidden;
            transition: all 0.3s ease;
        }
        
        .chat-window.active {
            transform: translateY(0);
            opacity: 1;
            visibility: visible;
        }
        
        .chat-header {
            background: linear-gradient(135deg, #25d366, #128c7e);;
            color: white;
            padding: 15px;
            display: flex;
            align-items: center;
            gap: 10px;
        }
        
        .chat-avatar {
            width: 40px;
            height: 40px;
            background: rgba(255, 255, 255, 0.3);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: bold;
            font-size: 18px;
        }
        
        .chat-contact-info {
            flex: 1;
        }
        
        .chat-contact-info h3 {
            margin: 0;
            font-size: 16px;
           
             gap: 10px;
        }
        
        .chat-contact-info p {
            margin: 0;
            font-size: 12px;
            opacity: 0.9;
        }
        
        .close-chat {
            background: none;
            border: none;
            color: white;
            font-size: 24px;
            cursor: pointer;
            padding: 0;
            width: 30px;
            height: 30px;
            display: flex;
            align-items: center;
            justify-content: center;
        }
        
        
        .message {
            margin-bottom: 15px;
            max-width: 80%;
        }
        
        .message.received {
            align-self: flex-start;
        }
        
        .message p {
            background: white;
            padding: 10px 15px;
            border-radius: 18px;
            margin: 0;
            font-size: 14px;
            box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
        }
        
        .message-time {
            font-size: 11px;
            color: #999;
            display: block;
            margin-top: 5px;
        }
        
        .chat-input {
            padding: 15px;
            display: flex;
            gap: 10px;
            background: white;
            border-top: 1px solid #eee;
        }
        
        .chat-input input {
            flex: 1;
            padding: 10px 15px;
            border: 1px solid #ddd;
            border-radius: 20px;
            outline: none;
            font-size: 14px;
        }
        
        .chat-input button {
            background: #25D366;
            color: white;
            border: none;
            border-radius: 20px;
            padding: 10px 15px;
            cursor: pointer;
            font-size: 14px;
            font-weight: bold;
        }
    } 
