* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Inter, system-ui, sans-serif;
}

/* 🔵 CLEAR blue gradient background */
body {
  height: 100vh;
  background: linear-gradient(
    135deg,
    #dbe7ff,
    #eef4ff,
    #ffffff
  );
  color: #111;
}

/* App container (white card look) */
.app {
  max-width: 800px;
  margin: auto;
  height: 100vh;
  display: flex;
  flex-direction: column;
  background: #ffffff;
  box-shadow: 0 20px 60px rgba(0, 60, 255, 0.12);
}

/* Header */
header {
  padding: 20px;
  border-bottom: 1px solid #dbe7ff;
}

h1 {
  font-size: 24px;
  font-weight: 700;
  background: linear-gradient(
    90deg,
    #2f5bff,
    #6f8dff
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.subtitle {
  font-size: 12px;
  color: #5c6fb5;
}

/* Chat area */
main {
  flex: 1;
  padding: 20px;
  overflow-y: auto;
}

/* Messages */
.message {
  max-width: 80%;
  padding: 14px 18px;
  margin-bottom: 14px;
  border-radius: 16px;
  line-height: 1.45;
}

/* 🚀 USER — animated gradient (VERY visible) */
.user {
  margin-left: auto;
  color: #ffffff;
  background: linear-gradient(
    270deg,
    #2f5bff,
    #6f8dff,
    #2f5bff
  );
  background-size: 400% 400%;
  animation: gradientMove 4s ease infinite;
}

/* 🤖 BOT — white card */
.bot {
  background: #ffffff;
  color: #111;
  border: 1px solid #dbe7ff;
  box-shadow: 0 6px 18px rgba(0, 60, 255, 0.08);
}

/* Footer */
footer {
  display: flex;
  padding: 14px;
  border-top: 1px solid #dbe7ff;
  background: #ffffff;
}

/* Input */
footer input {
  flex: 1;
  background: #ffffff;
  color: #000;
  border: 1px solid #cbd9ff;
  padding: 12px;
  border-radius: 10px;
  outline: none;
}

footer input::placeholder {
  color: #6f82c9;
}

/* 🔵 Button — strong gradient */
footer button {
  margin-left: 10px;
  padding: 12px 22px;
  background: linear-gradient(
    135deg,
    #2f5bff,
    #6f8dff
  );
  color: #ffffff;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 600;
}

footer button:hover {
  opacity: 0.9;
}

/* 🎞 Animation */
@keyframes gradientMove {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Mobile */
@media (max-width: 600px) {
  .message {
    max-width: 95%;
  }
}