/* Chatbot specific styles */
.chat-container {
    display: flex;
    flex-direction: column;
    height: calc(100vh - 76px);
    margin-top: 76px;
    padding: 2rem;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    margin-bottom: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.message {
    display: flex;
    gap: 1rem;
    max-width: 80%;
    animation: fadeIn 0.3s ease;
}

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

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message.user {
    align-self: flex-end;
    flex-direction: row-reverse;
}

.message-bubble {
    padding: 1rem 1.5rem;
    border-radius: 1.5rem;
    word-wrap: break-word;
}

.message.assistant .message-bubble {
    background: var(--bg-card);
    color: var(--text-main);
    border: 1px solid var(--border-color);
}

.message.user .message-bubble {
    background: var(--primary-color);
    color: white;
}

.message-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.message.assistant .message-avatar {
    background: rgba(79, 70, 229, 0.1);
    color: var(--primary-color);
}

.message.user .message-avatar {
    background: var(--primary-color);
    color: white;
}

.chat-input-container {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 1.5rem;
    padding: 1rem;
    display: flex;
    gap: 1rem;
    align-items: center;
}

.chat-input {
    flex: 1;
    border: none;
    background: transparent;
    font-size: 1rem;
    color: var(--text-main);
    outline: none;
}

.chat-input::placeholder {
    color: var(--text-muted);
}

.send-btn {
    background: var(--primary-color);
    color: white;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.send-btn:hover {
    background: var(--primary-hover);
    transform: scale(1.05);
}

.typing-indicator {
    display: flex;
    gap: 0.5rem;
    padding: 1rem 1.5rem;
}

.typing-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--text-muted);
    animation: typing 1.4s infinite;
}

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

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

@keyframes typing {

    0%,
    60%,
    100% {
        opacity: 0.3;
    }

    30% {
        opacity: 1;
    }
}

/* Responsive design */
@media (max-width: 768px) {
    .chat-container {
        padding: 1rem;
    }

    .message {
        max-width: 90%;
    }
}