

body {
  background: #0f172a;
  font-family: "Inter", system-ui, sans-serif;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  margin: 0;
}

#chat_box {
  /* width: 420px; */
  width:100%;
  height: 600px;
  /* background: #1e293b; */
  background: transparent;
  border-radius: 14px;
  padding: 16px;
  /* box-shadow: 0 8px 28px rgba(0,0,0,0.5); */
  display: flex;
  flex-direction: column;
}



#display_area {
  flex: 1;
  background: #0f172a;
  color: #e2e8f0;
  border:none;
  /* border: 1px solid #334155; */
  /* border-radius: 10px; */
  padding: 12px;
  resize: none;
  outline: none;
  font-size: 15px;
  line-height: 1.5;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  
}

#display_area #user {
  align-self: flex-end;
  display: flex;
  align-items: flex-end;
  gap: 8px;
  max-width: 70%;
  margin-bottom: 10px;
}


#display_area #user-img {
  order: 2;
}


#display_area #user span {
  order: 1;
  background: #2563eb;
  color: white;
  padding: 10px 14px;
  border-radius: 16px;
  border-bottom-right-radius: 4px;
  font-size: 15px;
  line-height: 1.5;
  word-wrap: break-word;
  max-width: 100%;
}



#display_area #bot {
  align-self: flex-start;
  display: flex;
  align-items: flex-end;
  gap: 8px;
  max-width: 70%;
  margin-bottom: 10px;
}


#display_area #bot-img {
  order: 1;
}


#display_area #bot span {
  order: 2;
  background: #1e293b;
  color: #e2e8f0;
  padding: 10px 14px;
  border-radius: 16px;
  border-bottom-left-radius: 4px;
  font-size: 15px;
  line-height: 1.5;
  word-wrap: break-word;
  max-width: 100%;
}



#user-img,
#bot-img {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.4);
}

#input_container {
  position: relative;
  margin-top: 12px;
  margin-left:25%;
  margin-right:25%;
}


#query_area {
  width: 100%;
  padding: 12px 48px 12px 12px;
  border-radius: 12px;
  border: 1px solid #334155;
  background: #0f172a;
  color: #f1f5f9;
  font-size: 15px;
  outline: none;
  box-sizing: border-box;
}

#query_area::placeholder {
  color: #94a3b8;
}

#query_area:focus {
  border-color: #38bdf8;
  box-shadow: 0 0 0 2px rgba(56,189,248,0.25);
}



#submit_btn {
  position: absolute;
  right: 5px;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border-radius: 8px;
  border: none;
  background: #2563eb;
  color: white;
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
}

#submit_btn:hover {
  background: #1d4ed8;
}

#submit_btn:active {
  transform: translateY(-50%) scale(0.95);
}




