:root {
    --bg-color: #080808;
    --neon-purple: #bc13fe;
    --neon-cyan: #00f3ff;
    --glass: rgba(255, 255, 255, 0.04);
}

* { box-sizing: border-box; margin: 0; padding: 0; font-family: 'Segoe UI', sans-serif; }
body { background: var(--bg-color); color: white; height: 100vh; overflow: hidden; }

.app-container { 
    display: grid; grid-template-columns: 320px 1fr 400px; 
    height: 100vh; gap: 20px; padding: 20px; 
}

.glass-card { 
    background: var(--glass); backdrop-filter: blur(20px); 
    border: 1px solid rgba(255,255,255,0.1); border-radius: 25px; 
}

/* Sidebar & Camera */
.sidebar { display: flex; flex-direction: column; gap: 20px; }
.camera-container { height: 240px; background: #000; display: flex; align-items: center; justify-content: center; overflow: hidden; }
#cameraPreview { width: 100%; height: 100%; object-fit: cover; display: none; }

/* Stats */
.stats-container { padding: 25px; flex-grow: 1; }
.stat-item { display: flex; justify-content: space-between; margin-bottom: 20px; font-size: 1.1rem; color: #ccc; }
.neon-text { color: var(--neon-cyan); text-shadow: 0 0 10px var(--neon-cyan); font-weight: bold; }

/* Center Panel & Dropdown */
.center-panel { display: flex; flex-direction: column; align-items: center; justify-content: center; }
.glass-select {
    background: var(--glass); border: 1px solid var(--neon-cyan); color: var(--neon-cyan);
    padding: 12px 25px; border-radius: 15px; cursor: pointer; outline: none;
    font-size: 1rem; margin-bottom: 20px; text-shadow: 0 0 5px var(--neon-cyan);
}

.orb-wrapper { width: 100%; height: 60%; display: flex; justify-content: center; align-items: center; }
.controls { display: flex; gap: 30px; margin-top: 20px; }
.control-btn { 
    background: var(--glass); border: 1px solid var(--neon-purple); color: white; 
    width: 65px; height: 65px; border-radius: 50%; cursor: pointer; font-size: 1.5rem; transition: 0.3s;
}
.control-btn.active { background: var(--neon-cyan); box-shadow: 0 0 25px var(--neon-cyan); border-color: white; }

/* Chat Window */
.chat-container { display: flex; flex-direction: column; height: 100%; }
.chat-messages { 
    flex: 1; padding: 20px; overflow-y: auto; display: flex; flex-direction: column; gap: 15px; 
    max-height: calc(100vh - 180px); scroll-behavior: smooth;
}
.message { max-width: 85%; padding: 12px 18px; border-radius: 20px; font-size: 0.95rem; line-height: 1.5; }
.user-message { align-self: flex-end; background: var(--neon-purple); border-bottom-right-radius: 2px; }
.ai-message { align-self: flex-start; background: rgba(255,255,255,0.08); border-bottom-left-radius: 2px; }

.input-area { padding: 15px; display: flex; gap: 10px; border-top: 1px solid rgba(255,255,255,0.1); }
#userInput { flex-grow: 1; background: rgba(0,0,0,0.3); border: 1px solid rgba(255,255,255,0.2); border-radius: 12px; padding: 12px; color: white; outline: none; }
#sendBtn { background: none; border: 1px solid var(--neon-cyan); color: var(--neon-cyan); width: 50px; border-radius: 12px; cursor: pointer; font-size: 1.2rem; }

::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-thumb { background: var(--neon-purple); border-radius: 10px; }
