/* Chatbot Container */
#aisc-chatbot-container {
    position: fixed;
    z-index: 999999;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

#aisc-chatbot-container.aisc-position-bottom-right {
    bottom: 20px;
    right: 20px;
}

#aisc-chatbot-container.aisc-position-bottom-left {
    bottom: 20px;
    left: 20px;
}

/* Chat Bubble */
#aisc-chat-bubble {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--aisc-primary-color, #0073aa);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease;
}

#aisc-chat-bubble:hover {
    transform: scale(1.1);
}

/* Chat Window */
#aisc-chat-window {
    position: absolute;
    bottom: 80px;
    width: 350px;
    height: 500px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

#aisc-chatbot-container.aisc-position-bottom-right #aisc-chat-window {
    right: 0;
}

#aisc-chatbot-container.aisc-position-bottom-left #aisc-chat-window {
    left: 0;
}

/* Chat Header */
#aisc-chat-header {
    background: var(--aisc-primary-color, #0073aa);
    color: #fff;
    padding: 16px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
}

#aisc-close-btn {
    background: transparent;
    border: none;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    padding: 0;
}

/* Messages */
#aisc-chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    background: var(--aisc-secondary-color, #f1f1f1);
}

.aisc-message {
    margin-bottom: 16px;
    display: flex;
}

.aisc-message-bot {
    justify-content: flex-start;
}

.aisc-message-user {
    justify-content: flex-end;
}

.aisc-message-content {
    max-width: 75%;
    padding: 12px 16px;
    border-radius: 18px;
    font-size: 14px;
    line-height: 1.4;
}

.aisc-message-bot .aisc-message-content {
    background: #fff;
    color: #333;
    border-bottom-left-radius: 4px;
}

.aisc-message-user .aisc-message-content {
    background: var(--aisc-primary-color, #0073aa);
    color: #fff;
    border-bottom-right-radius: 4px;
}

/* Input Area */
#aisc-chat-input-container {
    display: flex;
    padding: 16px;
    background: #fff;
    border-top: 1px solid #e0e0e0;
    gap: 8px;
}

#aisc-chat-input {
    flex: 1;
    padding: 12px 16px;
    border: 1px solid #ddd;
    border-radius: 24px;
    font-size: 14px;
    outline: none;
}

#aisc-chat-input:focus {
    border-color: var(--aisc-primary-color, #0073aa);
}

#aisc-send-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--aisc-primary-color, #0073aa);
    color: #fff;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

#aisc-send-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Mobile Responsive */
@media (max-width: 480px) {
    #aisc-chat-window {
        width: calc(100vw - 40px);
        max-width: 350px;
        height: 450px;
    }
    
    #aisc-chatbot-container.aisc-position-bottom-right,
    #aisc-chatbot-container.aisc-position-bottom-left {
        right: 10px;
        left: 10px;
        bottom: 10px;
    }
}
