.chat-container {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  background: #f9f9f9;
}

.chat-message {
  display: flex;
}

.chat-message.user {
  justify-content: flex-end;
}

.chat-message.assistant {
  justify-content: flex-start;
}

.chat-bubble {
  max-width: 70%;
  padding: 8px 12px;
  border-radius: 14px;
  font-size: 14px;
  line-height: 1.4;
}

.chat-message.user .chat-bubble {
  background: #3e7e9c;
  color: white;
  border-bottom-right-radius: 2px;
}

.chat-message.assistant .chat-bubble {
  background: #e5e7eb;
  color: #111;
  border-bottom-left-radius: 2px;
}

.chat-input-row {
  display: flex;
  gap: 8px;
  margin-top: 10px;
  width: 100%;
}

.chat-input {
  flex: 1 1 auto;
  width: 100%;
  resize: none;
  border: 1px solid #ccc;
  border-radius: 6px;
  padding: 8px 10px;
  font-size: 14px;
  min-height: 36px;
  box-sizing: border-box;
  margin-top: 5px;
}

.chat-send {
  border: none;
  font-size: 14px;
  font-weight: bold;
  background-color: #3e7e9c;
  color: white;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 4px;
  line-height: 1;
  margin-top: 5px;
  margin-bottom: 5px;
}

.chat-send:hover {
  background-color: #316481;
}

.chat-table-wrapper {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.chat-apply-btn {
  background: #318441;
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 28px;
  height: 28px;
  cursor: pointer;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.chat-apply-btn:hover {
  background: #256634;
}

.chat-table-wrapper .vts-schema-table {
  overflow: visible;
  position: unset;
}

.chat-table-wrapper .vts-schema-table .endpoint {
  display: none;
}