/* CHATBOT SOBERANO - ESTILO */
:root {
    --chat-bg: #ffffff;
    --chat-header: #0f172a; /* Navy Brand */
    --chat-accent: #D4A373; /* Gold */
    --chat-text: #334155;
    --chat-user-msg: #e0f2fe;
}

/* O Botão Flutuante */
.chat-widget-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: var(--chat-header);
    border-radius: 50%;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 9999;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 2px solid white;
}

.chat-widget-btn:hover {
    transform: scale(1.1);
}

.chat-widget-btn i {
    font-size: 24px;
    color: var(--chat-accent);
}

/* A Janela do Chat */
.chat-window {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 350px;
    height: 500px;
    background: var(--chat-bg);
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.15);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    z-index: 9998;
    border: 1px solid rgba(0,0,0,0.05);
    opacity: 0;
    pointer-events: none;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.chat-window.active {
    opacity: 1;
    pointer-events: all;
    transform: translateY(0);
}

/* Cabeçalho */
.chat-header {
    background: var(--chat-header);
    padding: 20px;
    color: white;
    display: flex;
    align-items: center;
    gap: 15px;
}

.bot-avatar {
    width: 40px; height: 40px;
    background: white;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: var(--chat-header);
    font-size: 20px;
}

/* Área de Mensagens */
.chat-messages {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
    background: #f8fafc;
}

.msg {
    padding: 10px 15px;
    border-radius: 15px;
    max-width: 80%;
    font-size: 0.9rem;
    line-height: 1.4;
    animation: fadeIn 0.3s ease;
}

.msg-bot {
    background: white;
    border-bottom-left-radius: 2px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    color: var(--chat-text);
}

.msg-user {
    background: var(--chat-header);
    color: white;
    align-self: flex-end;
    border-bottom-right-radius: 2px;
}

/* Opções (Botões de Resposta) */
.chat-options {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 5px;
}

.option-btn {
    background: white;
    border: 1px solid var(--chat-accent);
    color: var(--chat-header);
    padding: 8px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: 0.2s;
}

.option-btn:hover {
    background: var(--chat-accent);
    color: white;
}

/* Rodapé (Input) */
.chat-input-area {
    padding: 15px;
    border-top: 1px solid #eee;
    display: flex;
    gap: 10px;
}

.chat-input {
    flex: 1;
    border: none;
    background: #f1f5f9;
    padding: 10px;
    border-radius: 10px;
    outline: none;
}

@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
