@import url('https://fonts.googleapis.com/css2?family=Fragment+Mono&display=swap');

html {
  height: 100%;
  margin: 0;
  padding: 0;
}

body {
  box-sizing: border-box;
  display: grid;
  font-family: sans-serif;
  height: 100%;
  margin: 0;
  max-height: 100vh;
}

body.load-file {
  align-items: center;
  justify-content: center;
  padding: 24px;
}

body.preview-chat {
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr auto;
  height: 100%;
  max-height: 100vh;
}

body.view-results {
  grid-template-columns: auto 1fr;
  grid-template-rows: 1fr auto;
}

.source-selector {
  max-width: 640px;
}

.query-example {
  background: hsl(198.75, 100%, 12.55%);
  border-radius: 5px;
  color: hsl(0, 0%, 99%);
  padding: 24px;
}

.file-error {
  color: red;
}

.chat {
  padding: 24px;
}

.chat textarea {
  box-sizing: border-box;
  display: block;
  font-family: 'Fragment Mono', monospace;
  font-size: 1rem;
  height: 100%;
  line-height: 1.25;
  margin: 0;
  overflow-y: scroll;
  padding: 24px;
  resize: none;
  width: 100%;
}

.chat-previews {
  overflow-y: scroll;
  padding: 24px;
}

.chat-preview {
  border-bottom: 1px solid hsl(0, 0%, 90%);
  max-width: 600px;
  padding: 24px 0 23px;
}

.chat-preview__message-role {
  align-self: center;
  font-weight: 600;
  grid-column: 2 / 3;
  margin: 0 0 8px;
}

.chat-preview__message-content {
  font-family: 'Fragment Mono', monospace;
  font-size: 1rem;
  grid-column: 2 / 3;
  line-height: 1.25;
  order: 4;
  overflow-x: auto;
  margin: 0;
  padding: 0;
  white-space: pre-wrap;
  white-space: -moz-pre-wrap;
  white-space: -pre-wrap;
  white-space: -o-pre-wrap;
  word-wrap: break-word;
}

.chat-actions {
  background: hsl(258deg 12% 93%);
  box-shadow: 0 -5px 7px 3px hsl(0deg 0% 48.24% / 30%),
              0 -1px 3px 1px hsl(0deg 0% 48.24% / 10%);
  grid-column: 1 / 3;
  padding: 24px 48px;
}

.chat-actions__group {
  align-items: center;
  display: flex;
  justify-content: space-between;
  margin: 0 auto;
  max-width: 1200px;
}

.responses {
  overflow-y: scroll;
  padding: 24px;
}

.results {
  overflow-y: scroll;
  padding: 24px;
}


.result-actions {
  background: hsl(258deg 12% 93%);
  box-shadow: 0 -5px 7px 3px hsl(0deg 0% 48.24% / 30%),
              0 -1px 3px 1px hsl(0deg 0% 48.24% / 10%);
  grid-column: 1 / 3;
  padding: 24px 48px;
}

.result-actions__group {
  align-items: center;
  display: flex;
  justify-content: space-between;
  margin: 0 auto;
  max-width: 1200px;
}


table {
  width: 100%;
}

table th {
  padding: 12px;
  text-align: left;
}

table td {
  border-bottom: 1px solid hsl(0, 0%, 85%);
  padding: 12px;
  vertical-align: top;
}
