/* Moira Chatbot Styles */
.chatbot-container {
    max-width: 800px;
    margin: 2rem auto;
    padding: 2rem;
    background: white;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.back-link {
    transition: color 0.3s;
}

.back-link:hover {
    color: var(--dark);
}

.chatbot-header {
    text-align: center;
    margin-bottom: 2rem;
}

.chatbot-header h1 {
    color: var(--dark);
    font-size: 2.2rem;
    margin-bottom: 0.5rem;
}

.chatbot-header p {
    color: var(--primary);
    font-style: italic;
    font-size: 1.1rem;
}

#chatbot-messages {
    height: 60vh;
    overflow-y: auto;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 10px;
    margin-bottom: 1rem;
    scroll-behavior: smooth;
}

.message {
    margin-bottom: 0.8rem;
    padding: 0.8rem 1rem;
    border-radius: 15px;
    max-width: 80%;
    line-height: 1.4;
    animation: fadeIn 0.3s ease-out;
}

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

.message.user {
    background: var(--primary);
    color: blue;
    margin-left: auto;
    border-bottom-right-radius: 5px;
}

.message.bot {
    background: var(--secondary);
    margin-right: auto;
    border-bottom-left-radius: 5px;
}

.typing-indicator {
    background: transparent !important;
    padding: 0.8rem 1rem;
    display: flex;
    gap: 5px;
}

.typing-indicator span {
    width: 8px;
    height: 8px;
    background: var(--dark);
    border-radius: 50%;
    display: inline-block;
    animation: bounce 1.4s infinite both;
}

.typing-indicator span:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-indicator span:nth-child(3) {
    animation-delay: 0.4s;
}

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

.chatbot-input-container {
    display: flex;
    gap: 0.5rem;
}

#chatbot-input {
    flex: 1;
    padding: 0.8rem;
    border: 1px solid #ced4da;
    border-radius: 8px;
    font-family: inherit;
}

#send-message {
    padding: 0 1.5rem;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s;
}

#send-message:hover {
    background: var(--dark);
}

/* Responsive*/
@media (max-width: 768px) {
    .chatbot-container {
        padding: 1rem;
        margin: 1rem;
    }
    
    #chatbot-messages {
        height: 50vh;
    }
    
    .message {
        max-width: 90%;
    }
    }
