/* CSS do Componente Chatbot - VERSÃO MINIMALISTA "BRANCO NO PRETO" */

/* Container principal com fundo escuro */
#chatbot-container {
    display: flex;
    flex-direction: column;
    height: 100%; 
    width: 100%;
    background-color: #1c1c1c; 
    font-family: monospace; 
}

/* Cabeçalho do Chat */
.chat-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #333;
    flex-shrink: 0;
}
.chat-title {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}
.chat-header h2 {
    margin: 0;
    font-size: 1.1rem;
    color: #f1f1f1;
}
.language-flags span {
    font-size: 0.9rem;
    margin-right: 0.4rem;
}
#copy-chat-button {
    background-color: #333;
    color: #f1f1f1;
    border: 1px solid #555;
    border-radius: 5px;
    padding: 5px 10px;
    cursor: pointer;
    font-size: 0.8rem;
    align-self: flex-start;
}
#copy-chat-button:hover {
    background-color: #444;
}

/* Caixa onde as mensagens aparecem */
#chat-box {
    flex-grow: 1; 
    overflow-y: auto; 
    padding: 1rem;
}

/* Estilo base para mensagens (sem bolhas) */
.message {
    padding: 0.5rem 0;
    line-height: 1.6;
    word-wrap: break-word; 
    font-size: 0.9rem;
    color: #f1f1f1;
}

/* Adiciona prefixos "Você: " e "Takwara AV: " */
.user-message::before {
    content: "Você: ";
    font-weight: bold;
    color: #8ab4f8; 
}
.bot-message::before {
    content: "Takwara AV: ";
    font-weight: bold;
    color: #3ddc84; 
}
.message p { margin: 0; display: inline; }
.message ul, .message ol { padding-left: 20px; margin: 0.5rem 0; }
.message li { margin-bottom: 0.25rem; }
.message a { color: #8ab4f8; }

/* Formulário de input */
#chat-form {
    display: flex;
    padding: 1rem;
    border-top: 1px solid #333;
    flex-shrink: 0;
}
#user-input {
    flex-grow: 1;
    border: 1px solid #555;
    background-color: #2a2a2a;
    color: #f1f1f1;
    border-radius: 5px;
    padding: 10px 15px;
    font-size: 1rem;
    font-family: monospace;
}
#chat-form button {
    background-color: #3ddc84;
    color: #1c1c1c;
    font-weight: bold;
    border: none;
    border-radius: 5px;
    padding: 10px 20px;
    margin-left: 10px;
    cursor: pointer;
    font-size: 1rem;
}

/* Estilo do indicador de "digitando..." */
.bot-loading-message::before { content: ""; }
.typing-indicator { display: flex; align-items: center; }
.typing-indicator span { height: 8px; width: 8px; background-color: #999; border-radius: 50%; display: inline-block; margin: 0 2px; animation: bounce 1.4s infinite ease-in-out both; }
.typing-indicator span:nth-of-type(2) { animation-delay: -0.16s; }
.typing-indicator span:nth-of-type(3) { animation-delay: -0.32s; }
@keyframes bounce { 0%, 80%, 100% { transform: scale(0); } 40% { transform: scale(1.0); } }