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

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}

body {
  background: linear-gradient(135deg, #4B0082, #764ba2);
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  color: #fff;
}

/* Chat Area */
#chat-Area {
  width: 200%;
  max-width: 800px;
  height: 80vh;
  background: #4B0082;
  border-radius: 20px;
  padding: 20px;
  overflow-y: auto;
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  gap: 15px;
  animation: fadeIn 0.7s ease-in-out;
}

/* Scrollbar Styling */
#chat-Area::-webkit-scrollbar {
  width: 6px;
}
#chat-Area::-webkit-scrollbar-thumb {
  background-color: rgba(255, 255, 255, 0.4);
  border-radius: 10px;
}

/* Chat Bubbles */
#chat-Bubble div {
  max-width: 75%;
  padding: 12px 16px;
  border-radius: 18px;
  line-height: 1.4em;
  position: relative;
  word-wrap: break-word;
  animation: slideUp 0.4s ease-out;
  font-size: 14px;
  color: #333;
}

/* Question Bubble (Left) */
#chat-Bubble div.user {
  background: #18233e; 
  color: white;
  align-self: flex-start;
  border-top-left-radius: 0;
}

/* Response Bubble (Right) */
#chat-Bubble div.assistant {
  background: #270E4D;  
  color: #fff;
  align-self: flex-end;
  margin-left: 100px;
  margin-top: 20px;
  margin-bottom: 20px;
  border-top-right-radius: 0;
}

/* Input Area */
#textArea {
  width: 50%;
  padding: 10px 14px;
  border-radius: 20px;
  border: none;
  outline: none;
  font-size: 14px;
  margin-top: 10px;
  transition: all 0.3s ease;
}
#textArea:focus {
  box-shadow: 0 0 5px #fff;
}

/* Ask Button */
#askBtn {
  padding: 10px 18px;
  border-radius: 20px;
  border: none;
  background: #270E4D;
  color: #fff;
  font-weight: 500;
  cursor: pointer;
  margin-left: 10px;
  transition: 0.3s ease;
}
#askBtn:hover {
  background: #18233e;
  transform: scale(1.05);
}

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

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