:root {
    --chatbot-color: #2e8bff;
}

#chatbot-float-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: var(--chatbot-color);
    color: white;
    padding: 12px 20px;
    border-radius: 40px;
    font-weight: bold;
    font-size: 14px;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    z-index: 9999;
    border: none;
}

#chatbot-container {
    position: fixed;
    bottom: 90px;
    right: 20px;
    width: 380px;
    max-height: 600px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    z-index: 9998;
    font-family: 'Segoe UI', sans-serif;
    border: 1px solid #ccc;
}

.chatbot-hidden {
    display: none;
}

#chatbot-header {
    background: var(--chatbot-color);
    color: #fff;
    padding: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#chatbot-header .header-left {
    display: flex;
    gap: 10px;
    align-items: center;
}

#chatbot-header .chatbot-icon {
    background: #fff;
    color: var(--chatbot-color);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 20px;
    font-weight: bold;
}

.chatbot-title {
    font-weight: bold;
    font-size: 15px;
}

.chatbot-subtitle {
    font-size: 13px;
    margin-top: 2px;
}

.chatbot-status {
    font-size: 12px;
    color: #d0ffd0;
    margin-top: 2px;
}

.status-dot {
    height: 8px;
    width: 8px;
    background-color: #00ff00;
    border-radius: 50%;
    display: inline-block;
    margin-right: 6px;
}

#chatbot-close {
    background: transparent;
    border: none;
    color: #fff;
    font-size: 22px;
    font-weight: bold;
    cursor: pointer;
}

/* Mesaje */
#chatbot-messages {
    flex: 1;
    padding: 16px;
    overflow-y: auto;
    background: #f4f6fa;
    font-size: 14px;
}

.chatbot-message {
    max-width: 85%;
    margin-bottom: 14px;
    padding: 10px 14px;
    border-radius: 16px;
    position: relative;
    word-wrap: break-word;
}

.chatbot-message.bot {
    background: #e0edff;
    color: #000;
    align-self: flex-start;
    border-bottom-left-radius: 0;
}

.chatbot-message.user {
    background: var(--chatbot-color);
    color: white;
    align-self: flex-end;
    border-bottom-right-radius: 0;
}

/* Formular */
#chatbot-form {
    display: flex;
    border-top: 1px solid #ddd;
}

#chatbot-input {
    flex: 1;
    border: none;
    padding: 14px;
    font-size: 14px;
    outline: none;
    background: #fff;
}

#chatbot-form button {
    background: var(--chatbot-color);
    color: #fff;
    border: none;
    padding: 14px 18px;
    cursor: pointer;
    font-weight: bold;
    transition: background 0.2s;
}

#chatbot-form button:hover {
    background: #1a6fe5;
}
