#n8n-chatbot-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 999999;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

#n8n-chatbot-button {
    width: 60px;
    height: 60px;
    background-color: #0073aa;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    transition: transform 0.2s ease;
}

#n8n-chatbot-button:hover {
    transform: scale(1.05);
}

#n8n-chatbot-window {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 350px;
    height: 450px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.2);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid #e5e5e5;
}

#n8n-chatbot-header {
    background: #0073aa;
    color: white;
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: bold;
}

#n8n-chatbot-close {
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    line-height: 1;
}

#n8n-chatbot-messages {
    flex: 1;
    padding: 15px;
    overflow-y: auto;
    background: #f9f9f9;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.n8n-chatbot-msg {
    max-width: 80%;
    padding: 10px 14px;
    border-radius: 18px;
    font-size: 14px;
    line-height: 1.4;
    word-wrap: break-word;
}

.n8n-chatbot-msg-user {
    align-self: flex-end;
    background: #0073aa;
    color: white;
    border-bottom-right-radius: 4px;
}

.n8n-chatbot-msg-ai {
    align-self: flex-start;
    background: #e9e9eb;
    color: #333;
    border-bottom-left-radius: 4px;
}

.n8n-chatbot-msg-error {
    align-self: center;
    background: #ffebee;
    color: #c62828;
    font-size: 12px;
    border-radius: 4px;
}

#n8n-chatbot-input-area {
    padding: 15px;
    border-top: 1px solid #e5e5e5;
    display: flex;
    gap: 10px;
}

#n8n-chatbot-input {
    flex: 1;
    border: 1px solid #ddd;
    border-radius: 20px;
    padding: 8px 15px;
    outline: none;
    font-size: 14px;
}

#n8n-chatbot-input:focus {
    border-color: #0073aa;
}

#n8n-chatbot-send {
    background: #0073aa;
    color: white;
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s;
}

#n8n-chatbot-send:hover {
    background: #005177;
}

#n8n-chatbot-send:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.n8n-typing-indicator {
    font-style: italic;
    font-size: 12px;
    color: #888;
    margin-bottom: 5px;
}
