/* --- Estilos do Ícone do Chatbot --- */
.chatbot-icon {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    background-color: var(--primary-green); /* COR CORRETA APLICADA */
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
    z-index: 999; /* Garante que o ícone fique acima de outros elementos */
}

.chatbot-icon:hover {
    transform: scale(1.1);
}

.chatbot-icon img {
    width: 70px;  /* Aumentado para preencher o círculo */
    height: 70px; /* Aumentado para preencher o círculo */
}

/* --- Estilos da Janela do Chat --- */
.chat-window {
    position: fixed;
    bottom: 100px;
    right: 25px;
    width: 350px;
    max-width: 90vw;
    height: 500px;
    max-height: 70vh;
    background-color: white;
    border-radius: 15px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform: scale(0);
    transform-origin: bottom right;
    transition: transform 0.3s ease-in-out;
    z-index: 998;
}

.chat-window.open {
    transform: scale(1);
}

.chat-header {
    background-color: var(--dark-green);
    color: white;
    padding: 1rem;
    text-align: center;
    position: relative;
}

.chat-header h3 {
    margin: 0;
    font-size: 1.2rem;
    color: white; /* Garante que o título seja branco */
}

.chat-header p {
    margin: 0;
    font-size: 0.8rem;
    opacity: 0.9;
}

.minimize-btn {
    position: absolute;
    top: 50%;
    right: 15px;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0;
    width: 25px;
    height: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 3px;
    transition: background-color 0.2s ease;
}

.minimize-btn:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.chat-body {
    flex-grow: 1;
    padding: 1rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.chat-message {
    padding: 0.75rem 1rem;
    border-radius: 18px;
    max-width: 80%;
    line-height: 1.4;
}

.chat-message.user {
    background-color: var(--primary-green);
    color: white;
    align-self: flex-end;
    border-bottom-right-radius: 4px;
}

.chat-message.bot {
    background-color: #f1f1f1;
    color: #333;
    align-self: flex-start;
    border-bottom-left-radius: 4px;
}

.chat-message.bot.typing {
    font-style: italic;
    color: #888;
}

.chat-footer {
    display: flex;
    padding: 0.75rem;
    border-top: 1px solid #eee;
}

#chat-input {
    flex-grow: 1;
    border: 1px solid #ddd;
    border-radius: 20px;
    padding: 0.75rem;
    font-size: 1rem;
}

#send-btn {
    background-color: var(--primary-green);
    color: white;
    border: none;
    border-radius: 50%;
    width: 45px;
    height: 45px;
    margin-left: 0.5rem;
    cursor: pointer;
    background-image: url('../Image/send-icon.png');
    background-repeat: no-repeat;
    background-position: center;
    background-size: 80%; /* Aumentado para 150% do tamanho original */
    transition: background-color 0.3s ease;
}

#send-btn:hover {
    background-color: var(--dark-green);
}

.chat-disclaimer {
    padding: 0.5rem 0.75rem;
    font-size: 0.7rem;
    color: #666;
    text-align: center;
    border-top: 1px solid #eee;
    background-color: #f9f9f9;
    line-height: 1.3;
}