.chatbot-section {
    max-width: 1200px;
    margin: 3rem auto 4rem;
    padding: 0 2rem;
}

.chatbot-header {
    text-align: center;
    margin-bottom: 3rem;
}

.chatbot-header h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--dark);
}

.chatbot-header p {
    font-size: 1.2rem;
    color: var(--gray);
}

.chatbot-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 2rem;
    align-items: start;
}

/* Prompts Panel */
.prompts-panel {
    background: var(--white);
    padding: 1.5rem;
    border-radius: 20px;
    box-shadow: var(--shadow);
    position: sticky;
    top: 100px;
}

.prompts-panel h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--dark);
}

.prompt-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    margin-bottom: 2rem;
}

.prompt-btn {
    background: linear-gradient(135deg, var(--light-pink) 0%, var(--light-yellow) 100%);
    border: 2px solid transparent;
    padding: 0.8rem 1rem;
    border-radius: 15px;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 500;
    text-align: left;
    transition: all 0.3s;
    color: var(--dark);
}

.prompt-btn:hover {
    border-color: var(--pink);
    transform: translateX(5px);
}

.tips-box {
    background: var(--light-yellow);
    padding: 1rem;
    border-radius: 15px;
}

.tips-box h4 {
    margin-bottom: 0.8rem;
    color: var(--dark);
}

.tips-box ul {
    margin-left: 1.2rem;
}

.tips-box li {
    color: var(--gray);
    font-size: 0.9rem;
    margin-bottom: 0.4rem;
}

/* Chat Window */
.chat-window {
    background: var(--white);
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    display: flex;
    flex-direction: column;
    height: 600px;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.chat-messages::-webkit-scrollbar {
    width: 6px;
}

.chat-messages::-webkit-scrollbar-track {
    background: var(--light-pink);
    border-radius: 10px;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: var(--pink);
    border-radius: 10px;
}

.message {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    animation: fadeInUp 0.3s ease;
}

.user-message {
    flex-direction: row-reverse;
}

.message-avatar {
    font-size: 2rem;
    flex-shrink: 0;
}

.message-bubble {
    max-width: 70%;
    padding: 1rem 1.5rem;
    border-radius: 20px;
    line-height: 1.6;
}

.bot-message .message-bubble {
    background: var(--light-pink);
    border-bottom-left-radius: 5px;
    color: var(--dark);
}

.user-message .message-bubble {
    background: linear-gradient(135deg, var(--pink) 0%, var(--yellow) 100%);
    border-bottom-right-radius: 5px;
    color: var(--white);
}

.message-bubble p {
    margin-bottom: 0.5rem;
}

.message-bubble p:last-child {
    margin-bottom: 0;
}

.typing-indicator {
    display: flex;
    gap: 0.4rem;
    padding: 1rem 1.5rem;
    background: var(--light-pink);
    border-radius: 20px;
    border-bottom-left-radius: 5px;
    width: fit-content;
}

.typing-dot {
    width: 10px;
    height: 10px;
    background: var(--pink);
    border-radius: 50%;
    animation: typingBounce 1.4s infinite;
}

.typing-dot:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-dot:nth-child(3) {
    animation-delay: 0.4s;
}

/* Chat Input */
.chat-input-area {
    padding: 1.5rem;
    border-top: 2px solid var(--light-pink);
    display: flex;
    gap: 1rem;
}

#userInput {
    flex: 1;
    padding: 1rem 1.5rem;
    border: 2px solid var(--light-pink);
    border-radius: 50px;
    font-size: 1rem;
    font-family: 'Poppins', sans-serif;
    outline: none;
    transition: border-color 0.3s;
    background: var(--white);
    color: var(--dark);
}

#userInput:focus {
    border-color: var(--pink);
}

.send-btn {
    background: linear-gradient(135deg, var(--pink) 0%, var(--yellow) 100%);
    color: var(--white);
    border: none;
    padding: 1rem 1.5rem;
    border-radius: 50px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: transform 0.3s;
    white-space: nowrap;
}

.send-btn:hover {
    transform: scale(1.05);
}

@keyframes typingBounce {
    0%, 60%, 100% {
        transform: translateY(0);
    }
    30% {
        transform: translateY(-10px);
    }
}

@media (max-width: 768px) {
    .chatbot-layout {
        grid-template-columns: 1fr;
    }

    .prompts-panel {
        position: static;
    }

    .prompt-buttons {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .chatbot-header h1 {
        font-size: 2rem;
    }

    .chat-window {
        height: 500px;
    }

    .message-bubble {
        max-width: 85%;
    }
}