@import url('base.css');

#trelis-chatbot {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
}

.jp-ChatbotWidget {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  padding: 10px;
}

.chat-interface {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.chat-container {
  flex-grow: 1;
  overflow-y: auto;
  margin-bottom: 20px;
  padding: 10px;
}

.chat-message {
  margin-bottom: 15px;
  padding: 10px;
  border-radius: 8px;
}

.user-message {
  background-color: #e6f3ff;
}

.assistant-message {
  background-color: #f0f0f0;
}

.code-container {
  position: relative;
  margin: 0.5rem 0;
  padding: 0.25rem;
  background-color: #f8f8f8;
  border-radius: 4px;
}

.code-container pre {
  padding: 0.25rem;
  margin: 0;
  white-space: pre-wrap;
  word-break: break-all;
}

.replace-button {
  position: static;
  display: block;
  margin-top: 0.5rem;
  margin-right: auto;
  background-color: #0f579b;
  color: white;
  border: none;
  padding: 5px 10px;
  cursor: pointer;
  border-radius: 4px;
  font-size: 12px;
}

.input-container {
  display: flex;
  flex-direction: column;
  border-top: 1px solid #ccc;
  padding-top: 10px;
  width: 100%;
  box-sizing: border-box;
}

.input-area {
  width: 100%;
  min-height: 60px;
  margin-bottom: 10px;
  resize: vertical;
  padding: 8px;
  border-radius: 4px;
  border: 1px solid #ccc;
  box-sizing: border-box;
}

.send-button-container {
  display: flex;
  justify-content: flex-start;
  align-items: center;
}

.send-button {
  background-color: #0f579b;
  color: white;
  border: none;
  padding: 8px 15px;
  cursor: pointer;
  border-radius: 4px;
  margin-right: 10px;
}

.send-button-hint {
  font-style: italic;
  color: #666;
}
