/* Enhanced AI Chat Assistant Styles */
.ai-chat-widget {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 1000;
}

.ai-chat-button {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #d4af37 0%, #f4d03f 100%);
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(212, 175, 55, 0.3);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ai-chat-button:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(212, 175, 55, 0.4);
}

.ai-chat-container {
    position: fixed;
    bottom: 100px;
    right: 2rem;
    width: 350px;
    height: 500px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    display: none;
    flex-direction: column;
    overflow: hidden;
    z-index: 1001;
}

.ai-chat-container.active {
    display: flex;
    animation: slideUp 0.3s ease;
}

.ai-chat-header {
    background: linear-gradient(135deg, #1a237e 0%, #3949ab 100%);
    color: white;
    padding: 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.ai-chat-header h3 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
}

.ai-chat-close {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.2s ease;
}

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

.ai-chat-messages {
    flex: 1;
    padding: 1rem;
    overflow-y: auto;
    background: #f8f9fa;
}

.ai-message {
    margin-bottom: 1rem;
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

.ai-message.user {
    flex-direction: row-reverse;
}

.ai-message-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #d4af37;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.8rem;
    font-weight: 600;
    flex-shrink: 0;
}

.ai-message.user .ai-message-avatar {
    background: #1a237e;
}

.ai-message-content {
    background: white;
    padding: 0.75rem 1rem;
    border-radius: 18px;
    max-width: 80%;
    font-size: 0.9rem;
    line-height: 1.4;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.ai-message.user .ai-message-content {
    background: #1a237e;
    color: white;
}

.ai-chat-input {
    padding: 1rem;
    border-top: 1px solid #e0e0e0;
    background: white;
}

.ai-input-container {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.ai-chat-input input {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 1px solid #e0e0e0;
    border-radius: 25px;
    font-size: 0.9rem;
    outline: none;
    transition: border-color 0.2s ease;
}

.ai-chat-input input:focus {
    border-color: #d4af37;
}

.ai-send-button {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #d4af37;
    border: none;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
}

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

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Dark Mode Support */
[data-theme="dark"] .ai-chat-container {
    background: #2d2d2d;
}

[data-theme="dark"] .ai-chat-messages {
    background: #1a1a1a;
}

[data-theme="dark"] .ai-message-content {
    background: #404040;
    color: white;
}

[data-theme="dark"] .ai-chat-input {
    background: #2d2d2d;
    border-top-color: #404040;
}

[data-theme="dark"] .ai-chat-input input {
    background: #404040;
    border-color: #555;
    color: white;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .ai-chat-container {
        width: calc(100vw - 2rem);
        right: 1rem;
        height: 400px;
    }
    
    .ai-chat-widget {
        bottom: 1rem;
        right: 1rem;
    }
}

