body {
  font-family: "Poppins", sans-serif;
  background: linear-gradient(135deg, #f3f4f6, #e5e7eb);
  margin: 0;
  padding: 0;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.chat-container {
  width: 400px;
  height: 600px;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  max-width: 100%;
  max-height: 100vh;
}

.chat-header {
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: white;
  text-align: center;
  padding: 15px;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 1px;
}

#list {
  flex: 1;
  list-style: none;
  margin: 0;
  padding: 20px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  scroll-behavior: smooth;
}

#list li {
  max-width: 80%;
  padding: 10px 14px;
  border-radius: 15px;
  line-height: 1.5;
  word-wrap: break-word;
  font-size: 15px;
}

#list li.user {
  align-self: flex-end;
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: white;
  border-bottom-right-radius: 3px;
}

#list li.bot {
  align-self: flex-start;
  background: #f3f4f6;
  color: #111827;
  border-bottom-left-radius: 3px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

#typing {
  font-style: italic;
  color: #764ba2;
  font-size: 14px;
  padding: 10px 20px;
  display: none;
  animation: blink 1.5s infinite;
}

@keyframes blink {
  0%,
  100% {
    opacity: 0.2;
  }
  50% {
    opacity: 1;
  }
}

.chat-input {
  display: flex;
  border-top: 1px solid #e5e7eb;
  background: #f9fafb;
}

.chat-input input {
  flex: 1;
  padding: 15px;
  border: none;
  outline: none;
  font-size: 15px;
  border-radius: 0 0 0 20px;
  background: transparent;
}

.chat-input button {
  background: linear-gradient(135deg, #667eea, #764ba2);
  border: none;
  color: white;
  padding: 0 20px;
  border-radius: 0 0 20px 0;
  cursor: pointer;
  transition: 0.3s;
}

#list::-webkit-scrollbar {
  width: 6px;
}
#list::-webkit-scrollbar-thumb {
  background-color: #cbd5e1;
  border-radius: 10px;
}
