/* assets/css/ai-assistant.css */
#aiChatToggle {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    z-index: 1000;
    transition: all 0.3s ease;
}

#aiChatToggle:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0,0,0,0.4);
}

#aiChatBox {
    position: fixed;
    bottom: 90px;
    right: 20px;
    width: 350px;
    height: 500px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    display: none;
    flex-direction: column;
    z-index: 999;
    overflow: hidden;
}

#aiChatBox.active {
    display: flex;
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

#aiMessages {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    background: #f8f9fa;
}

.message {
    margin-bottom: 15px;
    padding: 10px 15px;
    border-radius: 18px;
    max-width: 80%;
    word-wrap: break-word;
}

.message.user {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    margin-left: auto;
    text-align: right;
}

.message.ai {
    background: white;
    color: #333;
    border: 1px solid #e0e0e0;
    margin-right: auto;
}

.message.typing {
    opacity: 0.7;
    font-style: italic;
}

#aiChatForm {
    display: flex;
    padding: 15px;
    border-top: 1px solid #e0e0e0;
    background: white;
}

#aiMessage {
    flex: 1;
    border: none;
    padding: 12px 15px;
    border-radius: 25px;
    background: #f8f9fa;
    outline: none;
}

#aiChatForm button {
    margin-left: 10px;
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    cursor: pointer;
}

#aiChatForm button:hover {
    transform: scale(1.05);
}

/* Scrollbar */
#aiMessages::-webkit-scrollbar {
    width: 4px;
}
#aiMessages::-webkit-scrollbar-track {
    background: #f1f1f1;
}
#aiMessages::-webkit-scrollbar-thumb {
    background: #667eea;
    border-radius: 2px;
}