body {
  font-family: 'Segoe UI', sans-serif;
  background: #f1f2f6;
  margin: 0;
  padding: 0;
}

/* Full-width container with padding */
.container {
  width: calc(100% - 80px);
  max-height: 750px;
  margin: 5px auto;
  background: white;
  border-radius: 14px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.08);
  padding: 18px 22px 20px 22px;
}

h1 {
  color: #2f3542;
}

.chat-box {
    max-height: 330px;
    overflow-y: auto;
    border-radius: 8px;
    padding: .5rem;
    background: #fff;
	border: 1px solid #e0e4e7;
}

.message {
  margin-bottom: 12px;
  padding: 15px 14px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.06);
  transition: 0.3s;
  line-height: 1.5;
}

.message.user {
  background: #f8fcf5;
  align-self: flex-end;
  text-align: left;
  margin-left: auto;
  max-width: 60%;
  border-width: 0.5px;
  border-style: solid;
  border-color: #a5d47f;
  transition: 0.3s;
}

.message.bot {
  background: white;
  align-self: flex-start;
  text-align: left;
  max-width: 70%;
  border-width: 0.5px;
  border-style: solid;
  border-color: #f0c154;
  transition: 0.3s;
  animation: message-fade-in 0.2s ease-out;
}

@keyframes message-fade-in {
  from {
    opacity: 0;
    transform: translateY(3px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.input-area {
  display: flex;
  gap: 10px;
  transition: 0.3s;
  margin-top: 8px;
}

#loader{
  padding: 8px;
  color: steelblue;
}

input[type="text"] {
  flex: 1;
  padding: 10px;
  border: 1px solid #5ad660;
  border-radius: 6px;
  font-size: 16px;
  transition: 0.3s;
}

#send-btn{
  padding: 14px 18px;
  background: linear-gradient(to left, #29da4f, steelblue);
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
  opacity: 0.7;
  transition: 0.5s;
}

#send-btn:hover {
  opacity: 1;
}

#reset-btn {
  padding: 8px 16px;
  background: #ff7043;
  color: white;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 600;
  opacity: 0.9;
  transition: 0.2s;
}

#reset-btn:hover {
  opacity: 1;
  background: red;
}
