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

body {
  background-color: #fff5f7;
  font-family: 'Quicksand', sans-serif;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  margin: 0;
  flex-direction: column;
  color: #222;
}

.chat-container {
  width: 90%;
  max-width: 450px;
  height: 480px;
  padding: 20px;
  background-color: #fffaf0; 
  border-radius: 20px;
  box-shadow: 0 6px 20px rgba(255, 182, 193, 0.4);
  overflow-y: auto;
  margin-bottom: 20px;
  border: 2px solid #ffb6c1;
  display: flex;
  flex-direction: column;
  gap: 10px;
  animation: fadeIn 0.6s ease-in-out;
}

.message {
  padding: 12px 16px;
  border-radius: 20px;
  max-width: 80%;
  word-wrap: break-word;
  animation: slideUp 0.4s ease-in-out;
}

.message strong {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
}


.message.bot {
  background-color: #ffb6c1;
  color: #222;
  align-self: flex-start;
}


.message.user {
  background-color: #222;
  color: #fff;
  align-self: flex-end;
}

#chat-form {
  display: flex;
  width: 90%;
  max-width: 450px;
}

#user-input {
  flex-grow: 1;
  padding: 12px 16px;
  border: 2px solid #ffb6c1;
  border-radius: 25px 0 0 25px;
  font-size: 16px;
  outline: none;
  background-color: #fff;
  transition: border-color 0.3s;
}

#user-input:focus {
  border-color: #ff69b4; 
}

#chat-form button {
  background-color: #ff69b4;
  color: #fff;
  border: none;
  padding: 12px 20px;
  font-weight: bold;
  border-radius: 0 25px 25px 0;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

#chat-form button:hover {
  background-color: #ff1493;
}

@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

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