/* Chat Widget CSS */
.ace-chatbot {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 350px;
    height: 500px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.ace-chatbot-header {
    background: #0d6efd;
    color: white;
    padding: 15px;
    border-radius: 12px 12px 0 0;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ace-chatbot-messages {
    flex: 1;
    padding: 15px;
    overflow-y: auto;
    background: #f8f9fa;
}

.ace-chatbot-input {
    padding: 15px;
    border-top: 1px solid #dee2e6;
    background: white;
    border-radius: 0 0 12px 12px;
}

.ace-chatbot-input input {
    width: 100%;
    padding: 10px;
    border: 1px solid #dee2e6;
    border-radius: 20px;
    outline: none;
}

.ace-chatbot-input button {
    margin-left: 10px;
    padding: 10px 15px;
    background: #0d6efd;
    color: white;
    border: none;
    border-radius: 20px;
    cursor: pointer;
}

.chat-message {
    margin-bottom: 10px;
    padding: 8px 12px;
    border-radius: 12px;
    max-width: 80%;
}

.chat-message.user {
    background: #0d6efd;
    color: white;
    margin-left: auto;
}

.chat-message.bot {
    background: #e9ecef;
    color: #333;
    margin-right: auto;
}

.ace-chatbot-toggle {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #0d6efd;
    color: white;
    border: none;
    box-shadow: 0 4px 12px rgba(13, 110, 253, 0.4);
    z-index: 9998;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.chat-bubble {
    position: fixed;
    bottom: 90px;
    right: 20px;
    background: #28a745;
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 12px;
    z-index: 9997;
}

@media (max-width: 768px) {
    .ace-chatbot {
        width: 90%;
        height: 70%;
        bottom: 0;
        right: 5%;
        left: 5%;
        border-radius: 12px 12px 0 0;
    }

    .ace-chatbot-toggle {
        bottom: 80px;
    }

    .chat-bubble {
        bottom: 150px;
    }
}