/* static/css/vacaride-ai.css */
#vacaride-ai-chat {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
    font-family: 'Inter', sans-serif;
}

#ai-chat-toggle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: var(--primary-color, #0d6efd);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: transform 0.2s;
    border: none;
}

#ai-chat-toggle:hover {
    transform: scale(1.05);
}

#ai-chat-window {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 350px;
    height: 500px;
    max-height: 80vh;
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid #e2e8f0;
}

#ai-chat-header {
    background: var(--primary-color, #0d6efd);
    color: white;
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
}

#ai-chat-close {
    background: transparent;
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
}

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

.ai-msg {
    max-width: 85%;
    padding: 10px 14px;
    border-radius: 12px;
    font-size: 14px;
    line-height: 1.4;
    word-wrap: break-word;
}

.bot-msg {
    background: white;
    border: 1px solid #e2e8f0;
    align-self: flex-start;
    border-bottom-left-radius: 4px;
    color: #333;
}

.user-msg {
    background: var(--primary-color, #0d6efd);
    color: white;
    align-self: flex-end;
    border-bottom-right-radius: 4px;
}

#ai-chat-input-area {
    display: flex;
    padding: 10px;
    background: white;
    border-top: 1px solid #e2e8f0;
}

#ai-chat-input {
    flex: 1;
    border: 1px solid #ced4da;
    border-radius: 20px;
    padding: 8px 15px;
    outline: none;
    font-size: 14px;
}

#ai-chat-input:focus {
    border-color: var(--primary-color, #0d6efd);
}

#ai-chat-send {
    background: var(--primary-color, #0d6efd);
    color: white;
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    margin-left: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

#ai-chat-send:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

#ai-typing {
    display: none;
    align-self: flex-start;
    background: transparent;
    color: #6c757d;
    font-size: 12px;
    margin-left: 5px;
}

@media (max-width: 576px) {
    #ai-chat-window {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        width: 100%;
        height: 100%;
        height: 100dvh;
        max-height: 100%;
        max-height: 100dvh;
        border-radius: 0;
        border: none;
        z-index: 100000;
    }
}