/* Floating AI Chatbox - Styled to blend with site design */
.ai-chatbox-container {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 9999;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.ai-chat-toggle {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    color: #fff;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.ai-chat-toggle:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
}

.ai-chat-window {
    position: absolute;
    right: 0;
    bottom: 70px;
    width: 360px;
    height: 520px;
    display: none;
    flex-direction: column;
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(0,0,0,0.06);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.18);
}

.ai-chat-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    padding: 12px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.ai-chat-header h3 {
    margin: 0;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: .2px;
}
.ai-chat-close {
    background: transparent;
    border: 0;
    color: #fff;
    font-size: 22px;
    width: 32px;
    height: 32px;
    line-height: 32px;
    text-align: center;
    cursor: pointer;
}

.ai-chat-messages {
    flex: 1;
    padding: 14px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: #fafbff;
}
.ai-msg {
    max-width: 82%;
    padding: 10px 13px;
    border-radius: 16px;
    font-size: 14px;
    line-height: 1.45;
    word-wrap: break-word;
}
.ai-msg.user {
    align-self: flex-end;
    background: #eef2ff;
    color: #2b2f42;
    border-bottom-right-radius: 6px;
}
.ai-msg.bot {
    align-self: flex-start;
    background: #ffffff;
    color: #2b2f42;
    border: 1px solid rgba(0,0,0,0.06);
    border-bottom-left-radius: 6px;
}
.ai-msg.typing {
    font-style: italic;
    color: #888;
    background: #fff;
    border: 1px dashed rgba(0,0,0,0.1);
}

.ai-chat-input {
    display: flex;
    gap: 8px;
    padding: 10px;
    border-top: 1px solid rgba(0,0,0,0.06);
    background: #fff;
}
.ai-input {
    flex: 1;
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    padding: 10px 12px;
    outline: none;
    font-size: 14px;
}
.ai-input:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102,126,234,0.12);
}
.ai-send-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border: none;
    border-radius: 18px;
    padding: 10px 16px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}
.ai-send-btn:disabled {
    opacity: .7;
    cursor: not-allowed;
}

/* Mobile adjustments */
@media (max-width: 576px) {
    .ai-chat-window {
        width: 92vw;
        height: 70vh;
        right: -6px;
    }
}


