:root {
    --bg-gradient: linear-gradient(135deg, #0f172a 0%, #1e1b4b 100%);
    --glass-card: rgba(30, 41, 59, 0.7);
    --border-color: rgba(255, 255, 255, 0.08);
    --glow-cyan: #38bdf8;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

body {
    background: var(--bg-gradient);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.ai-showcase-container {
    width: 100%;
    max-width: 440px;
}

/* Glassmorphic Panel Core UI Layout */
.chat-card {
    background: var(--glass-card);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-radius: 24px;
    border: 1px solid var(--border-color);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 520px;
}

/* Header Profile Section */
.chat-header {
    padding: 20px;
    background: rgba(15, 23, 42, 0.4);
    border-bottom: 1px solid var(--border-color);
}

.bot-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.avatar-ring {
    width: 42px;
    height: 42px;
    background: rgba(56, 189, 248, 0.1);
    border: 1px solid rgba(56, 189, 248, 0.3);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.3rem;
}

.chat-header h3 { font-size: 1.1rem; color: var(--text-main); font-weight: 700; }
.status { font-size: 0.8rem; color: #10b981; font-weight: 500; }

/* Message Streams Display Logic */
.chat-body {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.msg {
    padding: 12px 16px;
    border-radius: 16px;
    font-size: 0.95rem;
    line-height: 1.5;
    max-width: 80%;
    word-break: break-word;
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

.bot-msg {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-main);
    align-self: flex-start;
    border-bottom-left-radius: 4px;
    border: 1px solid rgba(255,255,255,0.03);
}

.user-msg {
    background: var(--glow-cyan);
    color: #0f172a;
    align-self: flex-end;
    border-bottom-right-radius: 4px;
    font-weight: 500;
}

/* Real App Typing Solution Simulation */
.typing-indicator {
    display: flex;
    gap: 5px;
    padding: 12px 20px;
    align-self: flex-start;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    margin-left: 20px;
    margin-bottom: 10px;
}

.dot {
    width: 6px;
    height: 6px;
    background: var(--glow-cyan);
    border-radius: 50%;
    animation: pulse 1.4s infinite ease-in-out both;
}

.dot:nth-child(1) { animation-delay: -0.32s; }
.dot:nth-child(2) { animation-delay: -0.16s; }

@keyframes pulse {
    0%, 80%, 100% { transform: scale(0); }
    40% { transform: scale(1); }
}

.hidden { display: none !important; }

/* Control Input Panel Footer */
.chat-footer {
    padding: 15px 20px;
    background: rgba(15, 23, 42, 0.4);
    border-top: 1px solid var(--border-color);
    display: flex;
    gap: 12px;
}

.chat-footer input {
    flex: 1;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid var(--border-color);
    outline: none;
    padding: 12px 16px;
    border-radius: 12px;
    color: var(--text-main);
    font-size: 0.95rem;
}

.chat-footer input::placeholder { color: #64748b; }

.chat-footer button {
    background: var(--glow-cyan);
    color: #0f172a;
    border: none;
    padding: 0 20px;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.1s, opacity 0.2s;
}

.chat-footer button:hover { opacity: 0.9; }
.chat-footer button:active { transform: scale(0.97); }
