@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@600&family=Poppins:wght@400;600&display=swap');

body {
  font-family: 'Poppins', sans-serif;
  background: linear-gradient(135deg, #1a1a2e, #16213e, #0f3460);
  color: white;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  margin: 0;
  overflow: hidden;
}

.chat-container {
  background: rgba(0, 0, 0, 0.7);
  padding: 25px;
  border-radius: 20px;
  width: 600px;
  max-width: 95%;
  box-shadow: 0 0 30px rgba(0, 255, 200, 0.4);
  animation: fadeIn 1s ease-in-out;
}

h1.glow {
  font-family: 'Orbitron', sans-serif;
  text-align: center;
  font-size: 2.5rem;
  color: #00ffcc;
  text-shadow: 0 0 10px #00ffcc, 0 0 20px #00ffaa, 0 0 40px #00ffcc;
  animation: pulse 2s infinite;
}

.author {
  text-align: center;
  margin-top: -10px;
  font-size: 1rem;
  color: #ff80ff;
  text-shadow: 0 0 10px #ff40ff, 0 0 20px #ff00ff;
}

#chat-box {
  height: 400px;
  overflow-y: auto;
  background: rgba(20, 20, 30, 0.9);
  padding: 15px;
  border-radius: 12px;
  margin: 15px 0;
  box-shadow: inset 0 0 15px rgba(0, 255, 200, 0.2);
}

.message {
  margin: 8px 0;
  padding: 8px 12px;
  border-radius: 10px;
  max-width: 80%;
  word-wrap: break-word;
}

.user {
  text-align: right;
  background: #00ffcc;
  color: black;
  margin-left: auto;
  box-shadow: 0 0 10px #00ffcc;
}

.bot {
  text-align: left;
  background: #ff80ff;
  color: black;
  margin-right: auto;
  box-shadow: 0 0 10px #ff40ff;
}

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

input {
  flex: 1;
  padding: 12px;
  border: none;
  border-radius: 10px;
  outline: none;
  font-size: 1rem;
}

button {
  padding: 12px 18px;
  border: none;
  border-radius: 10px;
  background: linear-gradient(135deg, #ff40ff, #ff1e6f);
  color: white;
  font-weight: bold;
  cursor: pointer;
  transition: 0.3s;
  box-shadow: 0 0 15px rgba(255, 64, 255, 0.5);
}

button:hover {
  background: linear-gradient(135deg, #ff80ff, #ff4081);
  box-shadow: 0 0 25px rgba(255, 100, 255, 0.8);
}

/* ANIMASI */
@keyframes pulse {
  0% { text-shadow: 0 0 10px #00ffcc, 0 0 20px #00ffaa, 0 0 40px #00ffcc; }
  50% { text-shadow: 0 0 20px #00ffaa, 0 0 40px #00ffcc, 0 0 60px #00ffcc; }
  100% { text-shadow: 0 0 10px #00ffcc, 0 0 20px #00ffaa, 0 0 40px #00ffcc; }
}

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

