/* AI Assistant Styles - Matches existing site design */
.ai-assistant {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    font-family: system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}

.ai-chat-button {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--brand, #2563eb);
    color: white;
    border: none;
    cursor: pointer;
    font-size: 24px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ai-chat-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.2);
}

.ai-chat-window {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 350px;
    height: 500px;
    background: white;
    border: 1px solid var(--line, #e2e8f0);
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    display: none;
    flex-direction: column;
    overflow: hidden;
}

.ai-chat-window.active {
    display: flex;
}

.ai-chat-header {
    background: var(--brand, #2563eb);
    color: white;
    padding: 16px;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ai-close-button {
    background: none;
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
}

.ai-close-button:hover {
    background: rgba(255,255,255,0.1);
}

.ai-chat-messages {
    flex: 1;
    padding: 16px;
    overflow-y: auto;
    background: #fafafa;
}

.ai-message {
    margin-bottom: 12px;
    padding: 12px;
    border-radius: 12px;
    max-width: 85%;
    line-height: 1.4;
}

.ai-message.user {
    background: var(--brand, #2563eb);
    color: white;
    margin-left: auto;
    text-align: right;
}

.ai-message.assistant {
    background: white;
    border: 1px solid var(--line, #e2e8f0);
    color: var(--ink, #0f172a);
}

.ai-message ul {
    margin: 8px 0;
    padding-left: 16px;
}

.ai-message li {
    margin: 4px 0;
}

.ai-chat-input {
    padding: 16px;
    border-top: 1px solid var(--line, #e2e8f0);
    background: white;
}

.ai-input-wrapper {
    display: flex;
    gap: 8px;
}

.ai-input {
    flex: 1;
    padding: 12px;
    border: 1px solid var(--line, #e2e8f0);
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
}

.ai-input:focus {
    outline: 3px solid #93c5fd;
    outline-offset: 2px;
    border-color: var(--brand, #2563eb);
}

.ai-send-button {
    padding: 12px 16px;
    background: var(--brand, #2563eb);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.2s;
}

.ai-send-button:hover {
    background: #1d4ed8;
}

.ai-send-button:disabled {
    background: #94a3b8;
    cursor: not-allowed;
}

.ai-typing {
    display: none;
    color: #64748b;
    font-style: italic;
    padding: 8px 12px;
    background: #f1f5f9;
    border-radius: 8px;
    margin-bottom: 12px;
}

.ai-typing.active {
    display: block;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .ai-chat-window {
        width: calc(100vw - 40px);
        height: 70vh;
        right: -10px;
    }
    
    .ai-assistant {
        bottom: 10px;
        right: 10px;
    }
}

/* Fade in animation */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.ai-message {
    animation: fadeIn 0.3s ease;
}
