/* OpenClaw AI Chatbot Styles */
.ai-chatbot-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.ai-chatbot-toggle {
    width: 60px;
    height: 60px;
    border-radius: 30px;
    background: #0073aa;
    color: white;
    border: none;
    cursor: pointer;
    font-size: 24px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    transition: transform 0.2s;
}

.ai-chatbot-toggle:hover {
    transform: scale(1.05);
    background: #005a87;
}

.ai-chatbot-window {
    display: none;
    position: fixed;
    bottom: 90px;
    right: 20px;
    width: 350px;
    height: 500px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.2);
    flex-direction: column;
    overflow: hidden;
    z-index: 9998;
}

.ai-chatbot-window.open {
    display: flex;
}

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

.ai-chatbot-close {
    cursor: pointer;
    font-size: 20px;
    background: none;
    border: none;
    color: white;
}

.ai-chatbot-messages {
    flex: 1;
    overflow-y: auto;
    padding: 15px;
    background: #f9f9f9;
}

.ai-chatbot-message {
    margin-bottom: 15px;
    animation: fadeIn 0.3s ease-in;
}

.ai-chatbot-message.user {
    text-align: right;
}

.ai-chatbot-message.user .message-content {
    background: #0073aa;
    color: white;
    display: inline-block;
    padding: 8px 12px;
    border-radius: 12px;
    max-width: 80%;
    word-wrap: break-word;
}

.ai-chatbot-message.bot .message-content {
    background: #e9ecef;
    color: #333;
    display: inline-block;
    padding: 8px 12px;
    border-radius: 12px;
    max-width: 80%;
    word-wrap: break-word;
}

.ai-chatbot-message.bot .message-content pre {
    background: #fff;
    padding: 8px;
    border-radius: 4px;
    overflow-x: auto;
    font-size: 12px;
}

.ai-chatbot-input-area {
    padding: 15px;
    border-top: 1px solid #dee2e6;
    background: white;
    display: flex;
    gap: 10px;
}

.ai-chatbot-input {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid #dee2e6;
    border-radius: 20px;
    outline: none;
}

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

.ai-chatbot-send {
    padding: 8px 16px;
    background: #0073aa;
    color: white;
    border: none;
    border-radius: 20px;
    cursor: pointer;
}

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

.ai-chatbot-thinking {
    display: inline-block;
    padding: 8px 12px;
    background: #e9ecef;
    border-radius: 12px;
    color: #666;
}

.ai-chatbot-thinking::after {
    content: "...";
    animation: dots 1.5s steps(4, end) infinite;
}

@keyframes dots {
    0%, 20% { content: ".."; }
    40% { content: "..."; }
    60% { content: "...."; }
    80%, 100% { content: "....."; }
}

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

@media (max-width: 768px) {
    .ai-chatbot-window {
        width: 100%;
        height: 100%;
        bottom: 0;
        right: 0;
        border-radius: 0;
    }
    
    .ai-chatbot-container {
        bottom: 10px;
        right: 10px;
    }
}