
#chat {
  margin: 0;
  font-family: 'Arial', sans-serif;
  background-color: #ececec;
}

.chat-wrapper {
  max-width: 400px;
  margin: 50px auto;
  background: #ffffff;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  height: 600px;
  overflow: hidden;
}

.chat-header {
  background-color: #ffe812;
  padding: 15px;
  text-align: center;
  font-weight: bold;
  font-size: 18px;
  border-bottom: 1px solid #ddd;
}

.chat-body {
  flex: 1;
  padding: 15px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.chat-input {
  display: flex;
  border-top: 1px solid #ddd;
}

.chat-input input {
  flex: 1;
  padding: 10px;
  border: none;
  font-size: 16px;
}

.chat-input button {
  background-color: #ffe812;
  border: none;
  padding: 10px 15px;
  font-weight: bold;
  cursor: pointer;
}

.bubble {
  max-width: 70%;
  padding: 10px 14px;
  border-radius: 18px;
  font-size: 14px;
  line-height: 1.4;
  position: relative;
  word-break: break-word;
}

.bubble.user {
  background-color: #dcf8c6;
  align-self: flex-end;
  border-bottom-right-radius: 0;
}

.bubble.bot {
  background-color: #f1f0f0;
  align-self: flex-start;
  border-bottom-left-radius: 0;
}

.bubble::after {
  content: attr(data-time);
  display: block;
  font-size: 11px;
  color: #999;
  margin-top: 5px;
  text-align: right;
}
