/* chatbot/chatbot.css */
:root {
    --primary: #a00047;
    --primary-dark: #b00040;
    --text: #333;
    --bg: #ffffff;
    --user-bg: #a00047;
    --user-text: #ffffff;
    --bot-bg: #f0f2f5;
    --bot-text: #333333;
    --shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    --radius: 12px;
}

#chatbot-container {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 350px;
    height: 450px;
    background: var(--bg);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    z-index: 10000;
    overflow: hidden;
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.3s ease;
    font-family: 'Segoe UI', system-ui, sans-serif;
       /* Novas propriedades */
    visibility: hidden;
    pointer-events: none;
}

#chatbot-container.active {
    transform: translateY(0);
    opacity: 1;
       visibility: visible;
    pointer-events: auto;
}

#chatbot-header {
    background: var(--primary);
    color: white;
    padding: 15px;
    display: flex;
    align-items: center;
    position: relative;
}

#chatbot-avatar {
    font-size: 24px;
    margin-right: 12px;
    width: 36px;
    height: 36px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
}

#chatbot-info {
    flex: 1;
}

#chatbot-info h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
}

#chatbot-info p {
    margin: 3px 0 0;
    font-size: 12px;
    opacity: 0.9;
}

#chatbot-close {
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.2s;
}

#chatbot-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

#chatbot-messages {
    flex: 1;
    padding: 15px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
    background: #fafafa;
}

.message {
    max-width: 80%;
    padding: 10px 15px;
    border-radius: 18px;
    line-height: 1.4;
    position: relative;
    animation: fadeIn 0.3s ease;
    font-size: 14px;
    word-wrap: break-word;
}

.message.user {
    align-self: flex-end;
    background: var(--user-bg);
    color: var(--user-text);
    border-bottom-right-radius: 4px;
}

.message.bot {
    align-self: flex-start;
    background: var(--bot-bg);
    color: var(--bot-text);
    border-bottom-left-radius: 4px;
}

#chatbot-input-area {
    display: flex;
    padding: 12px;
    border-top: 1px solid #eee;
    background: white;
    align-items: flex-end;
}

#chatbot-input {
    flex: 1;
    border: 1px solid #e0e0e0;
    border-radius: 24px;
    padding: 10px 16px;
    resize: none;
    max-height: 100px;
    font-family: inherit;
    outline: none;
    transition: border 0.3s;
    font-size: 14px;
    line-height: 1.4;
}

#chatbot-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(67, 97, 238, 0.1);
}

#chatbot-send {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary);
    border: none;
    margin-left: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    flex-shrink: 0;
}

#chatbot-send:hover {
    background: var(--primary-dark);
}

#chatbot-send svg {
    width: 18px;
    height: 18px;
    color: white;
}

#chatbot-footer {
    padding: 8px 15px;
    background: white;
    text-align: center;
    font-size: 11px;
    color: #777;
    border-top: 1px solid #f0f0f0;
}

#chatbot-launcher {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--primary);
    color: white;
    border-radius: 50px;
    display: flex;
    align-items: center;
    padding: 10px 15px;
    cursor: pointer;
    box-shadow: var(--shadow);
    z-index: 9999;
    transition: all 0.3s ease;
}

#chatbot-launcher:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
}

#chatbot-launcher-icon {
    font-size: 20px;
    margin-right: 8px;
}

#chatbot-launcher-text {
    font-size: 14px;
    font-weight: 500;
}

/* Animações */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Scrollbar styling */
#chatbot-messages::-webkit-scrollbar {
    width: 6px;
}

#chatbot-messages::-webkit-scrollbar-track {
    background: transparent;
}

#chatbot-messages::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 3px;
}

#chatbot-messages::-webkit-scrollbar-thumb:hover {
    background: #aaa;
}