* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Segoe UI", sans-serif;
}

body {
  height: 100vh;
  overflow: hidden;
  background: #0f172a;
  color: white;
}

canvas {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 0;
}

.app {
  display: flex;
  height: 100%;
  position: relative;
  z-index: 1;
}

.sidebar {
  width: 220px;
  padding: 25px;
  backdrop-filter: blur(20px);
  background: rgba(255,255,255,0.05);
}

.chat-area {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.chat-container {
  flex: 1;
  padding: 40px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.message {
  max-width: 70%;
  padding: 15px;
  border-radius: 15px;
  backdrop-filter: blur(20px);
  background: rgba(255,255,255,0.08);
}

.user {
  align-self: flex-end;
  background: linear-gradient(135deg,#2563eb,#0ea5e9);
}

.bot {
  align-self: flex-start;
}

video {
  width: 100%;
  border-radius: 12px;
  margin-top: 10px;
}

.input-area {
  padding: 20px;
  display: flex;
  gap: 10px;
  backdrop-filter: blur(20px);
  background: rgba(255,255,255,0.05);
}

textarea {
  flex: 1;
  padding: 12px;
  border-radius: 10px;
  border: none;
  resize: none;
}

button {
  padding: 0 25px;
  border-radius: 10px;
  border: none;
  background: linear-gradient(135deg,#0ea5e9,#2563eb);
  color: white;
  cursor: pointer;
}

/* Glow */
.glow {
  box-shadow:
    0 0 20px rgba(14,165,233,0.6),
    0 0 60px rgba(59,130,246,0.4);
}

/* Brain Spinner */
.brain-loader {
  width: 40px;
  height: 40px;
  border: 4px solid rgba(255,255,255,0.2);
  border-top: 4px solid #0ea5e9;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-top: 10px;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}