/* Ícone de Chat */
#gcp-chat-icon {
    position: fixed;
    bottom: 20px;
    left: 20px;
    width: 60px;
    height: 60px;
    cursor: pointer;
    z-index: 9998;
    transition: transform 0.2s ease-in-out;
}

#gcp-chat-icon img {
    width: 100%;
    height: auto;
    border-radius: 50%;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

#gcp-chat-icon:hover {
    transform: scale(1.1);
}

/* Janela Popup de Chat */
#gcp-chat-popup {
    position: fixed;
    bottom: 100px;
    left: 20px;
    width: 350px;
    max-width: 90vw;
    height: 500px;
    background-color: #ffffff;
    border: 1px solid #ccc;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    z-index: 9999;
    transition: opacity 0.3s, transform 0.3s;
    transform: translateY(20px);
    opacity: 0;
}

#gcp-chat-popup:not(.gcp-hidden) {
    transform: translateY(0);
    opacity: 1;
}

.gcp-hidden {
    display: none;
    opacity: 0;
}

/* Cabeçalho do Chat */
.gcp-chat-header {
    padding: 10px 15px;
    background-color: #f1f1f1;
    border-bottom: 1px solid #ccc;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 700;
}

#gcp-close-btn {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    padding: 0 5px;
}

/* Área de Mensagens */
#gcp-chat-messages {
    flex-grow: 1;
    padding: 15px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.gcp-message {
    padding: 8px 12px;
    border-radius: 15px;
    max-width: 80%;
    word-wrap: break-word;
    line-height: 1.4;
}

.gcp-message-user {
    background-color: #0073aa;
    color: white;
    align-self: flex-end;
    border-bottom-right-radius: 3px;
}

.gcp-message-assistant {
    background-color: #e9e9e9;
    color: #333;
    align-self: flex-start;
    border-bottom-left-radius: 3px;
}

/* Formulário de Input */
#gcp-chat-form {
    display: flex;
    border-top: 1px solid #ccc;
    padding: 10px;
}

#gcp-chat-input {
    flex-grow: 1;
    border: 1px solid #ddd;
    border-radius: 20px;
    padding: 8px 15px;
    font-size: 14px;
}

#gcp-chat-form button {
    background-color: #0073aa;
    color: white;
    border: none;
    border-radius: 20px;
    padding: 8px 15px;
    margin-left: 10px;
    cursor: pointer;
}

#gcp-chat-form button:disabled {
    background-color: #999;
    cursor: not-allowed;
}

/* Efeito de cursor piscando */
.blinking-cursor {
    display: inline-block;
    width: 8px;
    height: 1.2em;
    background-color: #333;
    animation: blink 1s step-end infinite;
    vertical-align: bottom;
}

@keyframes blink {
    50% {
        background-color: transparent;
    }
}