:root {
    --hc-primary: #6366f1;
    --hc-primary-hover: #4f46e5;
    --hc-bg-glass: rgba(255, 255, 255, 0.1);
    --hc-border-glass: rgba(255, 255, 255, 0.2);
    --hc-text-main: #ffffff;
    --hc-text-muted: rgba(255, 255, 255, 0.7);
    --hc-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
    --hc-font: 'Inter', system-ui, -apple-system, sans-serif;
}

.hero-chat-wrapper {
    position: relative;
    width: 100%;
    min-height: 500px;
    /* Default height for hero */
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 100%);
    font-family: var(--hc-font);
    color: var(--hc-text-main);
    border-radius: 12px;
    /* If used inside content, otherwise 0 for full width */
}

/* Background Blobs Animation Removed */

/* Chat Interface Container */
.hero-chat-interface {
    position: relative;
    z-index: 10;
    width: 90%;
    max-width: 700px;
    background: var(--hc-bg-glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--hc-border-glass);
    border-radius: 24px;
    padding: 2rem;
    box-shadow: var(--hc-shadow);
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.hero-chat-header h2 {
    margin: 0;
    font-size: 2rem;
    font-weight: 700;
    text-align: center;
    background: linear-gradient(to right, #fff, #a5b4fc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Messages Area */
.hero-chat-messages {
    max-height: 300px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding-right: 10px;
    scrollbar-width: thin;
    scrollbar-color: var(--hc-border-glass) transparent;
}

.hero-chat-messages::-webkit-scrollbar {
    width: 6px;
}

.hero-chat-messages::-webkit-scrollbar-thumb {
    background-color: var(--hc-border-glass);
    border-radius: 10px;
}

.message {
    padding: 12px 18px;
    border-radius: 16px;
    max-width: 80%;
    line-height: 1.5;
    font-size: 1rem;
    animation: popIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.bot-message {
    background: rgba(255, 255, 255, 0.1);
    align-self: flex-start;
    border-bottom-left-radius: 4px;
}

.user-message {
    background: var(--hc-primary);
    align-self: flex-end;
    border-bottom-right-radius: 4px;
}

@keyframes popIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Input Area */
.hero-chat-input-area {
    display: flex;
    gap: 10px;
    background: rgba(0, 0, 0, 0.2);
    padding: 8px;
    border-radius: 50px;
    border: 1px solid var(--hc-border-glass);
    transition: border-color 0.3s ease;
}

.hero-chat-input-area:focus-within {
    border-color: var(--hc-primary);
}

#hero-chat-input {
    flex: 1;
    background: transparent;
    border: none;
    color: white;
    padding: 10px 20px;
    font-size: 1rem;
    outline: none;
}

#hero-chat-input::placeholder {
    color: var(--hc-text-muted);
}

#hero-chat-submit {
    background: var(--hc-primary);
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.2s ease;
}

#hero-chat-submit:hover {
    background: var(--hc-primary-hover);
    transform: scale(1.05);
}

#hero-chat-submit:active {
    transform: scale(0.95);
}