* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: sans-serif;
  height: 100vh;
  background: #f0f0f0;
}

#container {
  display: flex;
  flex-direction: column;
  height: 95vh;
  width: 50vw;
  margin: 2.5vh auto 0;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

#messages {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.msg {
  max-width: 70%;
  padding: 12px 16px;
  border-radius: 16px;
  line-height: 1.5;
  word-wrap: break-word;
}

.msg-user {
  align-self: flex-end;
  background: #007aff;
  color: #fff;
  border-bottom-right-radius: 4px;
}

.msg-assistant {
  align-self: flex-start;
  background: #e9e9eb;
  color: #000;
  border-bottom-left-radius: 4px;
}

.helper-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.btn-helper,
.btn-offer {
  display: inline-block;
  padding: 8px 16px;
  border: 1px solid #ccc;
  border-radius: 20px;
  background: #fff;
  color: #333;
  font-size: 14px;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}

.btn-helper:hover,
.btn-offer:hover {
  background: #f0f0f0;
  border-color: #999;
}

.btn-offer {
  display: block;
  width: 100%;
  text-align: center;
  border-radius: 12px;
  white-space: nowrap;
}

.offers {
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

#entry_input {
  display: flex;
  padding: 12px;
  gap: 8px;
  border-top: 1px solid #e0e0e0;
}

#entry {
  flex: 1;
  padding: 10px 14px;
  border: 1px solid #ccc;
  border-radius: 20px;
  font-size: 14px;
  outline: none;
}

#entry:focus {
  border-color: #007aff;
}

#send_btn {
  padding: 10px 20px;
  border: none;
  border-radius: 20px;
  background: #007aff;
  color: #fff;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.2s;
}

#send_btn:hover {
  background: #0066d6;
}
