/* AI Assistant Styling */
.ai-assistant-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1050;
}

.ai-assistant-button {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: #4299E1;
    color: white;
    border: none;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.ai-assistant-button:hover {
    background-color: #2B6CB0;
    transform: scale(1.05);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

.ai-assistant-button:active {
    transform: scale(0.95);
}

.ai-chat-container {
    height: 400px;
    display: flex;
    flex-direction: column;
}

.ai-chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
    background-color: #F7FAFC;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.ai-message {
    margin-bottom: 1rem;
    max-width: 80%;
    display: flex;
    flex-direction: column;
}

.ai-message.user {
    align-self: flex-end;
    margin-left: auto;
}

.ai-message.assistant {
    align-self: flex-start;
    margin-right: auto;
}

.ai-message-content {
    padding: 0.75rem 1rem;
    border-radius: 18px;
    position: relative;
}

.ai-message.user .ai-message-content {
    background-color: #4299E1;
    color: white;
    border-bottom-right-radius: 4px;
}

.ai-message.assistant .ai-message-content {
    background-color: #E2E8F0;
    color: #2D3748;
    border-bottom-left-radius: 4px;
}

.ai-message-time {
    font-size: 0.75rem;
    color: #718096;
    margin-top: 0.25rem;
    align-self: flex-end;
}

.ai-message.user .ai-message-time {
    margin-right: 0.5rem;
}

.ai-message.assistant .ai-message-time {
    margin-left: 0.5rem;
}

.ai-chat-input {
    padding: 0.5rem 0;
}

.ai-assistant-info {
    font-size: 0.85rem;
}

/* Animations */
@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(66, 153, 225, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(66, 153, 225, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(66, 153, 225, 0);
    }
}

.ai-assistant-button.pulse {
    animation: pulse 1.5s infinite;
}

/* Typing indicator */
.typing-indicator {
    display: flex;
    padding: 0.5rem;
}

.typing-indicator span {
    height: 8px;
    width: 8px;
    background-color: #718096;
    border-radius: 50%;
    display: inline-block;
    margin: 0 2px;
    opacity: 0.7;
}

.typing-indicator span:nth-child(1) {
    animation: bounce 1s infinite 0.1s;
}

.typing-indicator span:nth-child(2) {
    animation: bounce 1s infinite 0.3s;
}

.typing-indicator span:nth-child(3) {
    animation: bounce 1s infinite 0.5s;
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-5px);
    }
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .ai-assistant-container {
        bottom: 20px;
        right: 20px;
    }
    
    .ai-assistant-button {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }
    
    .ai-chat-container {
        height: 350px;
    }
    
    .ai-message {
        max-width: 90%;
    }
}