/* AI Chat Widget Styles */
.ai-chat-widget {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    font-family: inherit;
}

.chat-button {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(59, 130, 246, 0.3);
    transition: all 0.3s ease;
}

.chat-button:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(59, 130, 246, 0.4);
}

.chat-button svg {
    width: 28px;
    height: 28px;
    color: white;
}

.chat-window {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 350px;
    height: 500px;
    background: #1f2937;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    display: none;
    flex-direction: column;
    border: 1px solid #374151;
    overflow: hidden;
}

.chat-window.show {
    display: flex;
}

.chat-header {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: white;
    padding: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.chat-header h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
}

.close-button {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    font-size: 20px;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chat-messages {
    flex: 1;
    padding: 16px;
    overflow-y: auto;
    background: #111827;
}

.message {
    margin-bottom: 12px;
    padding: 12px 16px;
    border-radius: 18px;
    max-width: 80%;
    word-wrap: break-word;
}

.message.user {
    background: #3b82f6;
    color: white;
    margin-left: auto;
    border-bottom-right-radius: 4px;
}

.message.bot {
    background: #374151;
    color: #e5e7eb;
    border-bottom-left-radius: 4px;
}

.message.bot strong {
    color: #60a5fa;
}

.quick-questions {
    padding: 12px 16px;
    background: #1f2937;
    border-top: 1px solid #374151;
}

.quick-questions h4 {
    margin: 0 0 8px 0;
    color: #e5e7eb;
    font-size: 14px;
    font-weight: 600;
}

.quick-questions .question-btn {
    display: inline-block;
    background: #374151;
    color: #d1d5db;
    padding: 6px 12px;
    border-radius: 16px;
    margin: 2px 4px 2px 0;
    cursor: pointer;
    font-size: 12px;
    border: none;
    transition: all 0.2s ease;
}

.quick-questions .question-btn:hover {
    background: #4b5563;
    color: white;
}

.chat-input {
    padding: 16px;
    background: #1f2937;
    border-top: 1px solid #374151;
    display: flex;
    gap: 8px;
}

.chat-input input {
    flex: 1;
    padding: 10px 16px;
    border: 1px solid #374151;
    border-radius: 20px;
    background: #111827;
    color: #e5e7eb;
    font-size: 14px;
}

.chat-input input::placeholder {
    color: #6b7280;
}

.chat-input input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2);
}

.chat-input button {
    padding: 10px 16px;
    background: #3b82f6;
    color: white;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: background 0.2s ease;
}

.chat-input button:hover {
    background: #2563eb;
}

.typing-indicator {
    display: none;
    padding: 12px 16px;
    color: #6b7280;
    font-size: 14px;
    font-style: italic;
}

.typing-indicator.show {
    display: block;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .ai-chat-widget {
        bottom: 16px;
        right: 16px;
    }

    .chat-window {
        width: calc(100vw - 32px);
        height: calc(100vh - 120px);
        bottom: 76px;
        right: 16px;
    }

    .chat-button {
        width: 56px;
        height: 56px;
    }

    .chat-button svg {
        width: 24px;
        height: 24px;
    }
}