/* AI Chatbot Widget Styles */
.aicb-chatbot-widget {
    position: fixed;
    z-index: 99999;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
}

.aicb-chatbot-widget.aicb-bottom-right {
    bottom: 20px;
    right: 20px;
}

.aicb-chatbot-widget.aicb-bottom-left {
    bottom: 20px;
    left: 20px;
}

.aicb-chat-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: #0073aa;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

.aicb-chat-icon:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.aicb-chat-container {
    position: absolute;
    bottom: 80px;
    right: 0;
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    border: 1px solid #e0e0e0;
}

.aicb-bottom-left .aicb-chat-container {
    right: auto;
    left: 0;
}

.aicb-chat-header {
    background: linear-gradient(135deg, #0073aa 0%, #00a0d2 100%);
    color: white;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.aicb-chat-header h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
}

.aicb-close-chat {
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    width: 24px;
    height: 24px;
}

.aicb-close-chat:hover {
    opacity: 0.8;
}

.aicb-chat-body {
    height: calc(100% - 120px);
    overflow-y: auto;
    padding: 20px;
    background: #f8f9fa;
}

.aicb-messages-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.aicb-message {
    max-width: 80%;
    padding: 12px 16px;
    border-radius: 18px;
    line-height: 1.4;
    word-wrap: break-word;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.aicb-bot-message {
    background: #e9ecef;
    color: #212529;
    align-self: flex-start;
    border-bottom-left-radius: 4px;
}

.aicb-user-message {
    background: #0073aa;
    color: white;
    align-self: flex-end;
    border-bottom-right-radius: 4px;
}

.aicb-message-content {
    font-size: 14px;
}

.aicb-chat-footer {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 15px;
    background: white;
    border-top: 1px solid #e0e0e0;
}

.aicb-input-container {
    display: flex;
    gap: 10px;
    align-items: center;
}

.aicb-message-input {
    flex: 1;
    padding: 12px 16px;
    border: 1px solid #ddd;
    border-radius: 24px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.3s;
}

.aicb-message-input:focus {
    border-color: #0073aa;
}

.aicb-send-button {
    background: #0073aa;
    color: white;
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
}

.aicb-send-button:hover {
    background: #005a87;
}

.aicb-send-button:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.aicb-typing-indicator {
    display: flex;
    justify-content: center;
    gap: 4px;
    margin-top: 10px;
}

.aicb-typing-indicator span {
    width: 8px;
    height: 8px;
    background: #999;
    border-radius: 50%;
    animation: typing 1.4s infinite;
}

.aicb-typing-indicator span:nth-child(2) {
    animation-delay: 0.2s;
}

.aicb-typing-indicator span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typing {
    0%, 60%, 100% { transform: translateY(0); }
    30% { transform: translateY(-8px); }
}

/* Responsive Design */
@media (max-width: 768px) {
    .aicb-chatbot-widget.aicb-bottom-right {
        bottom: 10px;
        right: 10px;
    }
    
    .aicb-chatbot-widget.aicb-bottom-left {
        bottom: 10px;
        left: 10px;
    }
    
    .aicb-chat-icon {
        width: 50px;
        height: 50px;
    }
    
    .aicb-chat-container {
        width: 100vw !important;
        height: 70vh !important;
        bottom: 70px;
        right: 0;
        left: 0;
        border-radius: 12px 12px 0 0;
    }
}