/* Root Theme Colors */
:root {
    --primary-purple: #8B3DFF;
    --primary-green: #00FF9D;
    --primary-yellow: #FFD700;
    --bg-dark: #0D0D1F;
    --bg-darker: #070714;
    --text-light: #ffffff;
    --text-gray: #9494A4;
    --gradient-1: linear-gradient(135deg, var(--primary-purple), var(--primary-green));
}

/* Base Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

/* Background */
body {
    background-color: var(--bg-dark);
    color: var(--text-light);
}

/* Header */
header {
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    background: rgba(13, 13, 31, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
nav {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.logo {
    font-size: 1.8rem;
    font-weight: 700;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    color: transparent;
}
.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}
.nav-links a {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 500;
}
.nav-links a:hover {
    color: var(--primary-green);
}

/* Chat Section */
.chat-container {
    max-width: 880px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    overflow: hidden;
    height: 80vh;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(255, 255, 255, 0.1);
}
.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
}
.message {
    display: flex;
    margin-bottom: 1rem;
    opacity: 0;
    transform: translateY(10px);
    animation: fadeIn 0.3s forwards;
}
.message-content {
    padding: 1rem 1.5rem;
    border-radius: 15px;
    max-width: 80%;
    font-size: 0.95rem;
    line-height: 1.4;
}
.ai-message .message-content {
    background: rgba(139, 61, 255, 0.2);
    border-left: 4px solid var(--primary-purple);
    margin-right: auto;
}
.user-message .message-content {
    background: rgba(0, 255, 157, 0.2);
    border-right: 4px solid var(--primary-green);
    margin-left: auto;
}

/* Input Area */
.input-container {
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.input-wrapper {
    display: flex;
    gap: 1rem;
    background: rgba(255, 255, 255, 0.1);
    padding: 1rem;
    border-radius: 15px;
}
textarea {
    flex: 1;
    background: none;
    border: none;
    color: var(--text-light);
    font-size: 0.95rem;
    resize: none;
    outline: none;
}
textarea::placeholder {
    color: var(--text-gray);
}
#send-button {
    background: none;
    border: none;
    color: var(--primary-green);
    cursor: pointer;
    font-size: 1.2rem;
}
#send-button:hover {
    transform: scale(1.1);
}

/* Animation */
@keyframes fadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .chat-container {
        max-width: 100%;
        margin: 0;
        border-radius: 0;
        height: 100vh;
    }
    .chat-messages {
        padding: 1rem;
    }
    .message-content {
        font-size: 14px;
        max-width: 90%;
    }
}