:root {
    --neon-cyan: #00ffea;
    --neon-magenta: #ff00ff;
    --neon-green: #39ff14;
    --dark-bg: #0a0015;
    --deep-purple: #1a0033;
    --text-glow: rgba(0, 255, 234, 0.8);
}

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

body {
    height: 100vh;
    overflow: hidden;
    background: var(--dark-bg);
    font-family: 'Courier New', Courier, monospace;
    color: var(--neon-cyan);
}

#scene-container {
    position: fixed;
    inset: 0;
    z-index: 1;
}

#chat-container {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 700px;
    z-index: 10;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

#chat-bubbles {
    max-height: 60vh;
    overflow-y: auto;
    padding: 16px;
    border-radius: 16px;
    background: rgba(10, 0, 21, 0.6);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(0, 255, 234, 0.15);
    display: flex;
    flex-direction: column;
    gap: 16px;
    pointer-events: auto;
}

.bubble {
    max-width: 80%;
    padding: 12px 16px;
    border-radius: 18px;
    position: relative;
    animation: floatIn 0.6s ease-out;
}

.bubble.user {
    align-self: flex-end;
    background: linear-gradient(135deg, var(--neon-magenta), #c300ff);
    color: white;
    border-bottom-right-radius: 4px;
}

.bubble.bot {
    align-self: flex-start;
    background: linear-gradient(135deg, #1e0033, var(--deep-purple));
    border: 1px solid var(--neon-cyan);
    border-bottom-left-radius: 4px;
    box-shadow: 0 0 20px rgba(0, 255, 234, 0.3);
}

.bubble::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    border-radius: inherit;
    pointer-events: none;
    box-shadow: inset 0 0 30px rgba(0, 255, 234, 0.2);
}

#chat-input {
    flex: 1;
    padding: 14px 18px;
    font-size: 1.1rem;
    background: rgba(20, 0, 40, 0.7);
    border: 2px solid var(--neon-cyan);
    border-radius: 999px;
    color: var(--neon-cyan);
    outline: none;
    transition: all 0.3s;
}

#chat-input:focus {
    box-shadow: 0 0 25px rgba(0, 255, 234, 0.5);
    border-color: var(--neon-magenta);
}

#send-button {
    padding: 14px 28px;
    font-size: 1.1rem;
    background: linear-gradient(90deg, var(--neon-magenta), #ff44ff);
    color: white;
    border: none;
    border-radius: 999px;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: bold;
}

#send-button:hover {
    transform: scale(1.08);
    box-shadow: 0 0 30px rgba(255, 0, 255, 0.6);
}

/* Scrollbar styling */
#chat-bubbles::-webkit-scrollbar {
    width: 6px;
}

#chat-bubbles::-webkit-scrollbar-track {
    background: rgba(0,0,0,0.3);
}

#chat-bubbles::-webkit-scrollbar-thumb {
    background: var(--neon-cyan);
    border-radius: 3px;
}

/* Mobile adjustments */
@media (max-width: 600px) {
    #chat-container {
        width: 96%;
        bottom: 12px;
    }
    
    .bubble {
        max-width: 88%;
    }
}

/* Entrance animation */
@keyframes floatIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
