* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #1a0b2e 0%, #0f001a 100%);
    min-height: 100vh;
    color: #e0e0ff;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.header {
    text-align: center;
    margin-bottom: 30px;
    padding: 20px 0;
}

.title {
    font-family: 'Poppins', sans-serif;
    font-size: 4.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, #c3b1ff 0%, #a78bfa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 4px 12px rgba(0,0,0,0.5);
    margin-bottom: 10px;
    letter-spacing: -0.03em;
}

.subtitle {
    font-size: 1.3rem;
    color: rgba(200, 190, 255, 0.85);
    font-weight: 400;
}

.chat-container {
    flex: 1;
    background: rgba(30, 25, 60, 0.75);
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(160, 140, 255, 0.15);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    margin-bottom: 20px;
}

.chat-messages {
    flex: 1;
    padding: 30px;
    overflow-y: auto;
    max-height: 60vh;
}

.welcome-message {
    text-align: center;
    padding: 40px 20px;
    color: #b0a0ff;
}

.welcome-icon {
    font-size: 3rem;
    color: #a78bfa;
    margin-bottom: 20px;
}

.welcome-message h2 {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: #e0d0ff;
}

.welcome-message p {
    font-size: 1.1rem;
    color: #b0a0ff;
    max-width: 500px;
    margin: 0 auto;
}

.message {
    margin-bottom: 20px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

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

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

.message.user .message-avatar {
    background: linear-gradient(135deg, #a78bfa 0%, #7c3aed 100%);
    color: white;
}

.message.assistant .message-avatar {
    background: linear-gradient(135deg, #c084fc 0%, #8b5cf6 100%);
    color: white;
}

.message-content {
    background: #2a1f45;
    padding: 15px 20px;
    border-radius: 18px;
    max-width: 70%;
    box-shadow: 0 2px 12px rgba(0,0,0,0.3);
    line-height: 1.5;
    color: #e0e0ff;
}

.message.user .message-content {
    background: linear-gradient(135deg, #7c3aed 0%, #5b21b6 100%);
    color: white;
}

.message.assistant .message-content {
    background: #352b52;
    border: 1px solid #4a3f6e;
}

.typing-indicator {
    display: flex;
    gap: 6px;
    padding: 12px 16px;
}

.typing-indicator .typing-dot {
    width: 8px;
    height: 8px;
    background: #a78bfa;
    border-radius: 50%;
    animation: typingBounce 1.4s infinite ease-in-out;
}

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

@keyframes typingBounce {
    0%, 80%, 100% { transform: scale(0.6); opacity: 0.4; }
    40% { transform: scale(1); opacity: 1; }
}

.chat-input-container {
    padding: 20px 30px;
    border-top: 1px solid #4a3f6e;
    background: #251c40;
}

.input-wrapper {
    display: flex;
    align-items: flex-end;
    gap: 12px;
    background: #2a1f45;
    border-radius: 25px;
    padding: 8px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.4);
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.input-wrapper:focus-within {
    border-color: #a78bfa;
    box-shadow: 0 4px 24px rgba(167,139,250,0.25);
}

.chat-input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 16px;
    font-size: 1rem;
    resize: none;
    max-height: 120px;
    background: transparent;
    color: #e0e0ff;
}

.chat-input::placeholder {
    color: #a0a0cc;
    font-style: italic;
}

.send-button {
    background: linear-gradient(135deg, #a78bfa 0%, #7c3aed 100%);
    color: white;
    border: none;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.send-button:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 16px rgba(167,139,250,0.4);
}

.footer {
    text-align: center;
    padding: 20px 0;
    color: rgba(200, 190, 255, 0.7);
    font-size: 0.9rem;
}

.highlight {
    color: #c3b1ff;
    font-weight: 600;
}

/* Code formatting (from your snippet) */
.message-content code,
.message-content pre {
    background: #1e1638;
    color: #e0d0ff;
    padding: 2px 6px;
    border-radius: 4px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .title { font-size: 3rem; }
    .chat-messages { padding: 20px; }
}