body {
  background-color: #1a1a1a;
  color: #4d4dff;
  font-family: 'Inter', 'Segoe UI', sans-serif;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  margin: 0;
  overflow: hidden;
}

.background-gfx {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  overflow: hidden;
}

.wave {
  position: absolute;
  width: 50%;
  height: 100%;
  filter: drop-shadow(0 0 20px rgba(77, 77, 255, 0.3));
  animation: waveAnim 10s ease-in-out infinite alternate;
}

.wave.left {
  left: 0;
  transform: rotate(180deg);
}

.wave.right {
  right: 0;
}

@keyframes waveAnim {
  from { transform: translateY(0); }
  to { transform: translateY(-20px); }
}

.particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: transparent;
}

.particle {
  position: absolute;
  border-radius: 50%;
  background: #4d4dff;
  opacity: 0.3;
  animation: float 15s infinite linear;
  box-shadow: 0 0 10px #4d4dff;
}

@keyframes float {
  0% { transform: translateY(0); opacity: 0.3; }
  50% { opacity: 0.5; }
  100% { transform: translateY(-100vh); opacity: 0; }
}

.chat-container {
  width: 600px;
  max-height: 80vh;
  background: rgba(43, 43, 43, 0.8);
  backdrop-filter: blur(10px);
  padding: 20px;
  border-radius: 15px;
  box-shadow: 0 0 30px rgba(77, 77, 255, 0.5), inset 0 0 10px rgba(77, 77, 255, 0.2);
  display: flex;
  flex-direction: column;
  animation: fadeIn 0.5s ease-in-out;
  z-index: 1;
}

h1 {
  text-align: center;
  font-size: 2rem;
  text-shadow: 0 0 10px rgba(77, 77, 255, 0.7);
  margin-bottom: 20px;
}

#chat-box {
  flex-grow: 1;
  max-height: 500px;
  overflow-y: auto;
  background: #1f1f1f;
  padding: 15px;
  border-radius: 10px;
  margin-bottom: 15px;
  scrollbar-width: thin;
  scrollbar-color: #4d4dff #2b2b2b;
}

#chat-box::-webkit-scrollbar {
  width: 8px;
}

#chat-box::-webkit-scrollbar-track {
  background: #2b2b2b;
}

#chat-box::-webkit-scrollbar-thumb {
  background: #4d4dff;
  border-radius: 4px;
}

.message {
  margin: 10px 0;
  padding: 10px 15px;
  border-radius: 10px;
  max-width: 80%;
  word-wrap: break-word;
  animation: slideIn 0.3s ease-in-out;
}

.message.user {
  background: #4d4dff;
  color: white;
  margin-left: auto;
  box-shadow: 0 0 10px rgba(77, 77, 255, 0.5);
}

.message.bot {
  background: #333;
  color: #4d4dff;
  margin-right: auto;
  position: relative;
  padding-left: 40px;
}

.message.bot::before {
  content: "🎵";
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
}

.message a {
  color: #9999ff;
  text-decoration: none;
  font-weight: bold;
}

.message a:hover {
  text-decoration: underline;
}

.typing {
  color: #4d4dff;
  font-style: italic;
  opacity: 0.7;
}

.input-container {
  display: flex;
  gap: 10px;
}

#user-input {
  flex-grow: 1;
  padding: 12px;
  border: none;
  border-radius: 10px;
  background: #2b2b2b;
  color: #4d4dff;
  box-shadow: inset 0 0 5px rgba(77, 77, 255, 0.3);
  transition: box-shadow 0.3s ease;
}

#user-input:focus {
  outline: none;
  box-shadow: 0 0 10px rgba(77, 77, 255, 0.7);
}

button {
  padding: 12px 20px;
  background: linear-gradient(45deg, #4d4dff, #1a1aff);
  color: white;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  font-weight: bold;
  transition: transform 0.2s, box-shadow 0.2s;
}

button:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 15px rgba(77, 77, 255, 0.7);
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes slideIn {
  from { opacity: 0; transform: translateX(-20px); }
  to { opacity: 1; transform: translateX(0); }
}
