/* ChatGPT-style Top Chatbot Interface - Modern Dark Theme */
.chatbot-top-container {
    width: 100%;
    max-width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    background: rgba(10, 10, 15, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    z-index: 10;
}

.chatbot-top-header {
    padding: 24px 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(10, 10, 15, 0.8);
    backdrop-filter: blur(10px);
    text-align: center;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content-wrapper {
    max-width: 800px;
    margin: 0 auto;
}

.animated-title {
    font-size: 1.8rem;
    font-weight: 700;
    background: linear-gradient(135deg, #6366f1, #8b5cf6, #818cf8);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 5s ease infinite;
    margin-bottom: 8px;
}

@keyframes gradientShift {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

.chatbot-subtitle {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 400;
}

.chatbot-messages-top {
    flex: 1;
    overflow-y: auto;
    padding: 30px;
    background: transparent;
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 800px;
    margin: 0 auto;
    width: 100%;
    scroll-behavior: smooth;
}

.chatbot-messages-top::-webkit-scrollbar {
    width: 6px;
}

.chatbot-messages-top::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
}

.chatbot-messages-top::-webkit-scrollbar-thumb {
    background: rgba(99, 102, 241, 0.5);
    border-radius: 10px;
}

.chatbot-messages-top::-webkit-scrollbar-thumb:hover {
    background: rgba(99, 102, 241, 0.7);
}

.chatbot-message {
    display: flex;
    flex-direction: column;
    gap: 8px;
    animation: fadeInUp 0.4s ease-out;
}

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

.chatbot-message.user {
    align-items: flex-end;
}

.chatbot-message.bot {
    align-items: flex-start;
}

.chatbot-message-content {
    max-width: 75%;
    padding: 14px 18px;
    border-radius: 18px;
    word-wrap: break-word;
    line-height: 1.6;
    font-size: 0.95rem;
    position: relative;
    transition: all 0.3s;
}

.chatbot-message.user .chatbot-message-content {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: white;
    border-bottom-right-radius: 4px;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

.chatbot-message.user .chatbot-message-content:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.4);
}

.chatbot-message.bot .chatbot-message-content {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    color: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom-left-radius: 4px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.chatbot-message.bot .chatbot-message-content:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(99, 102, 241, 0.3);
}

.chatbot-input-container-top {
    display: flex;
    padding: 20px 30px;
    background: rgba(10, 10, 15, 0.8);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    gap: 12px;
    max-width: 800px;
    margin: 0 auto;
    width: 100%;
    position: sticky;
    bottom: 0;
    z-index: 100;
}

.chatbot-input-top {
    flex: 1;
    padding: 14px 18px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    font-size: 0.95rem;
    font-family: 'Inter', sans-serif;
    outline: none;
    transition: all 0.3s;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    color: rgba(255, 255, 255, 0.9);
}

.chatbot-input-top::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.chatbot-input-top:focus {
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2), 0 4px 15px rgba(99, 102, 241, 0.2);
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-1px);
}

.chatbot-send-top {
    padding: 14px 24px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: white;
    border: none;
    border-radius: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    min-width: 52px;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

.chatbot-send-top:hover {
    background: linear-gradient(135deg, #818cf8, #a78bfa);
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.4);
}

.chatbot-send-top:active {
    transform: translateY(0) scale(1);
}

.chatbot-send-top:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.chatbot-typing {
    display: flex;
    gap: 6px;
    padding: 14px 18px;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 18px;
    max-width: 80px;
    border-bottom-left-radius: 4px;
}

.chatbot-typing-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(99, 102, 241, 0.8);
    animation: typing 1.4s infinite;
    box-shadow: 0 0 10px rgba(99, 102, 241, 0.5);
}

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

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

@keyframes typing {
    0%, 60%, 100% {
        transform: translateY(0);
        opacity: 0.7;
    }
    30% {
        transform: translateY(-10px);
        opacity: 1;
    }
}

/* Content below chatbot */
.content-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 20px;
    position: relative;
    z-index: 1;
}

/* Responsive */
@media (max-width: 768px) {
    .chatbot-top-header {
        padding: 18px 20px;
    }

    .animated-title {
        font-size: 1.5rem;
    }

    .chatbot-messages-top {
        padding: 20px 15px;
    }

    .chatbot-message-content {
        max-width: 85%;
        padding: 12px 16px;
    }

    .chatbot-input-container-top {
        padding: 15px 20px;
    }

    .chatbot-input-top {
        padding: 12px 16px;
        font-size: 0.9rem;
    }
}
