
/* ===== CHATBOT FLOATING ICON STYLES ===== */

#chatbot-container {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 100000;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

#chatbot-button {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #ffffff;
    border: 2px solid #ea580c;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(234, 88, 12, 0.3);
    transition: all 0.3s ease;
    padding: 0;
    overflow: hidden;
}

#chatbot-button:hover {
    transform: scale(1.1);
}

#chatbot-button img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

#chatbot-window {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 380px;
    max-height: 600px;
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 5px 40px rgba(0, 0, 0, 0.16);
    display: flex;
    flex-direction: column;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px) scale(0.95);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 100001;
}

#chatbot-window.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.chatbot-header {
    background: linear-gradient(135deg, #ea580c 0%, #c2410c 100%);
    color: #ffffff;
    padding: 1rem;
    border-radius: 12px 12px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chatbot-header h3 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: #ffffff !important;
}

.chatbot-header p {
    margin: 0.25rem 0 0 0;
    font-size: 0.75rem;
    color: #ffffff !important;
    opacity: 0.9;
}

#chatbot-close-button {
    background: none;
    border: none;
    color: #ffffff !important;
    cursor: pointer;
}

#chatbot-close-button svg {
    width: 20px;
    height: 20px;
}

#chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
    background-color: #f9fafb;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    min-height: 250px;
}

/* ESTILO CRÍTICO: VISIBILIDADE DO TEXTO */
.message {
    padding: 0.75rem 1rem;
    border-radius: 12px;
    max-width: 85%;
    word-wrap: break-word;
    font-size: 0.875rem;
    line-height: 1.5;
    color: #000000 !important; /* PRETO ABSOLUTO */
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.message.bot-message {
    background-color: #f3f4f6;
    align-self: flex-start;
    border-left: 3px solid #ea580c;
}

.message.user-message {
    background-color: #fff7ed;
    align-self: flex-end;
    border-right: 3px solid #ea580c;
}

#quick-replies {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background-color: #f9fafb;
}

#quick-replies button {
    background-color: #ffffff;
    color: #000000 !important;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    border: 1px solid #d1d5db;
    font-size: 0.8rem;
    cursor: pointer;
    font-weight: 500;
}

#chat-input-area {
    padding: 1rem;
    border-top: 1px solid #e5e7eb;
    background-color: #ffffff;
}

.chat-input-wrapper {
    display: flex;
    gap: 0.5rem;
}

/* AJUSTE DO CAMPO DE INPUT PARA VISIBILIDADE MÁXIMA */
#chat-input {
    flex: 1;
    border: 2px solid #d1d5db;
    border-radius: 6px;
    padding: 0.75rem;
    font-size: 1rem;
    color: #000000 !important; /* TEXTO DIGITADO EM PRETO */
    background-color: #ffffff !important;
    outline: none;
    font-family: inherit;
}

#chat-input:focus {
    border-color: #ea580c;
}

#chat-input::placeholder {
    color: #6b7280 !important;
}

#chat-send-button {
    background-color: #ea580c;
    color: #ffffff !important;
    border: none;
    border-radius: 6px;
    padding: 0.75rem 1.25rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s;
}

#chat-send-button:hover {
    background-color: #c2410c;
}

@media (max-width: 480px) {
    #chatbot-container {
        bottom: 1rem;
        left: 1rem;
        right: auto;
    }

    #chatbot-button {
        width: 50px;
        height: 50px;
    }

    #chatbot-window {
        position: fixed;
        width: calc(100vw - 2rem);
        max-height: 80vh;
        bottom: 80px;
        left: 1rem;
        transform: translateY(20px) scale(0.95);
        right: auto;
    }

    #chatbot-window.open {
        transform: translateY(0) scale(1);
    }
}

/* AJUSTE DE ESPAÇAMENTO SOLICITADO PELO USUÁRIO */
@media (max-width: 768px) {
    /* Aumenta o espaçamento acima do texto "Deslize para explorar" */
    section#inicio .absolute.bottom-8.left-1\/2 {
        bottom: 4rem !important; /* Sobe o conjunto do mouse e texto */
    }

    section#inicio .flex.flex-col.items-center.gap-2 {
        gap: 1.5rem !important; /* Aumenta a distância entre a palavra e o ícone do mouse */
    }
    
    /* Garante que o título "Conhecer Serviços" e o indicador de deslize não fiquem colados */
    section#inicio .container.relative.z-10 {
        padding-bottom: 6rem !important;
    }
}
