/* Copyright (c) Microsoft Corporation.
   Licensed under the MIT License. */

body {
  padding: 12px;
  height: 100%;
  /*  match the native vscode chat style */
  font-family: "Segoe WPC", "Segoe UI", "sans-serif";
  font-size: 13px;
  background-color: var(--vscode-chat-list-background);
}

html {
  height: 100%;
}

h1 {
  /* match the native vscode chat style */
  font-size: 24px;
  font-weight: 500;
  margin-top: 10px;
}

.welcome-message {
  text-align: center;
}

.app {
  max-width: 800px;
  display: flex;
  flex-direction: column;
  height: 100%;
}

/* Whole chat container including the input box */
.chat {
  flex: 1;
}

.status-indicator {
  height: 30px;
  font-weight: bold;
  text-align: right;
  font-size: smaller;
}

.input-textarea {
  height: auto;
  min-height: calc(1.33em * 2);
  background: inherit;
  width: 100%;
  border: none;
  outline: none;
  overflow-y: auto;
  padding: 16px 10px;
  margin: 0;
  line-height: 1.33;
  vertical-align: middle;
  cursor: text;
  resize: none;
  color: var(--vscode-input-foreground);
  background: var(--vscode-input-background);
}

.input-textarea:focus {
  outline: none;
}

.send-button {
  padding: 2px;
}

.input-box-divider {
  height: 50px;
}

.right-message-row,
.left-message-row {
  display: flex;
  flex-direction: row;
}

.right-message-row {
  justify-content: flex-end;
}

.left-message-row {
  justify-content: flex-start;
}

.user-message,
.assistant-message {
  padding: 0 16px;
  margin-bottom: 16px;
  border: 1px solid #ccc;
  border-radius: 0.5em;
}

.user-message {
  background-color: var(--vscode-input-background);
}

.content-reminder {
  font-size: x-small;
  margin: 16px 0;
}

pre code {
  background: inherit;
  border: 0.5px solid gray;
  display: block;
  padding: 8px;
  margin: 8px 0;
  overflow: auto;
  white-space: pre-wrap;
}

.retry-button {
  margin: 10px 0 10px 32px;
  text-align: right;
}

.input-box {
  display: flex;
  justify-content: flex-start;
  align-items: flex-end;

  /* match native vscode chat UI */
  /* https://github.com/microsoft/vscode/blob/7fadaa1ddc1c03dcd9a58fab063dac74284eb63e/src/vs/workbench/contrib/chat/browser/media/chat.css#L522 */
  /* box-sizing: border-box; */
  /* cursor: text; */
  background-color: var(--vscode-input-background);
  border: 1px solid var(--vscode-input-border, transparent);
  border-radius: 4px;
  padding: 0 6px 6px 6px; /* top padding is inside the editor widget */
  max-width: 100%;
}

.input-box:has(textarea:focus) {
  border: 2px solid #0078d4;
}

.service-radio-group {
  position: relative;
  display: inline-flex;
  justify-content: space-evenly;
  width: 100%; /* Optional: Adjust the width as needed */
}

.service-radio-group label {
  width: 100%;
  display: flex;
  align-items: center;
  font-size: smaller;
}

.service-radio-group input {
  margin-right: 5px;
}

/* override the github-markdown css background color */
.markdown-body {
  background-color: var(--vscode-chat-list-background);
}

.histogram-container {
  width: 100%;
}
