/* --------------------- Open Props --------------------------- */
/* the props */
/* optional imports that use the props */
/* ------------------------------------------------------------ */
body {
  background-color: #fafafa;
}

.logo img {
  margin: 1em;
  width: 4em;
}

p.logo-bottom {
  display: block;
  text-align: center;
  font-size: 0.9rem;
}
p.logo-bottom img {
  margin: 1rem;
  width: 4rem;
}

div.page {
  margin: 0em auto;
  padding: 1em;
  width: 100%;
  max-width: 50em;
  box-sizing: border-box;
}

.frontpage {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
}
.frontpage h1 {
  font-size: 4rem;
}

.sidebar {
  border-right: 1px solid 888;
  background: #f0f0f0;
}

.instructions {
  color: #224;
  background: #efefff;
  border: 1px solid #d0d0e6;
  padding: 0.5em 0.5em 0.5em 1.5em;
  margin: 2em 0em;
  border-radius: 10px;
}

label {
  margin: 1em 0em 0.3em 0em;
}

h1 {
  margin: 2rem 0rem 1rem 0rem;
  font-size: 1.8rem;
}

.hint {
  color: gray;
  font-style: italic;
}

span.italic {
  font-style: italic;
}

div.read-more {
  overflow: hidden;
  max-height: 10em;
  mask-image: linear-gradient(to bottom, black 80%, transparent 100%);
  mask-repeat: no-repeat;
  mask-size: 100% 100%;
}

div.read-more.expanded {
  max-height: none;
  mask-image: none;
}

.read-more-button {
  margin: 0em auto 1em auto;
  display: block;
  background: none;
  border: none;
  color: #5252a8;
  text-decoration: underline;
  cursor: pointer;
  text-align: center;
  font-size: 0.9rem;
}

.additional-info {
  color: gray;
  font-size: 90%;
  margin-top: 4em;
}

.rag-document a {
  text-decoration: none;
}

.feedback-box label {
  margin-bottom: 0.2em;
}
.feedback-box button {
  margin-top: 0.6em;
  margin-right: 1em;
}
.feedback-box .status {
  color: gray;
}

pre {
  white-space: pre-wrap;
  overflow-wrap: break-word;
}

.spinner {
  display: flex;
  align-items: center;
  background-image: url("public/spinner.gif");
  background-repeat: no-repeat;
  background-size: 2em 2em;
  background-position: left center;
  padding-left: 2.8em;
  margin: 2em 0em;
  min-height: 2em;
  font-variant: small-caps;
}

div.bottom-buttons {
  display: flex;
  justify-content: space-between;
  margin: 5em 0em 4em 0em;
  gap: 1em;
}
div.bottom-buttons .next-button {
  margin-left: auto;
}
div.bottom-buttons .centered {
  margin: 0em auto;
}
@media (max-width: 600px) {
  div.bottom-buttons {
    flex-direction: column;
    align-items: stretch;
  }
}

div.document {
  margin-bottom: 2px;
  padding: 1em 0em;
  border-top: 1px solid gray;
  border-bottom: 1px solid gray;
}
div.document pre {
  background: #eee;
  border: 1px solid #ddd;
  padding: 1em;
  white-space: pre-wrap;
}
div.document div.buttons {
  float: right;
}
div.document div.buttons .btn {
  margin: 2px;
}

div.page.picker h1 .deadline {
  font-size: 1rem;
  font-weight: normal;
  color: gray;
  padding-left: 1em;
}
div.page.picker .description {
  font-size: 0.9rem;
}
div.page.picker h2 {
  font-size: 1.1rem;
  margin-top: 1.5em;
}

div.picker-list div.picker-row {
  display: flex;
  align-items: flex-start;
  margin: 0.8em 0em;
}
div.picker-list div.item {
  background: #ddd;
  padding: 0.3em 0.4em;
  font-size: 0.9rem;
  cursor: pointer;
  border-radius: 6px;
  flex: 1 1 0;
  min-width: 0;
  margin-right: 1em;
}
div.picker-list div.item:hover {
  background: #C4D5EE;
}
div.picker-list div.item.selected {
  background: #acf;
}
div.picker-list div.buttons {
  flex-shrink: 0;
  white-space: nowrap;
  color: #ddd;
  padding: 0.2em 0.4em;
  cursor: pointer;
}
div.picker-list div.buttons:hover {
  color: black;
}
div.picker-list div.buttons.selected {
  color: #c00;
  animation: pop 0.2s ease;
}

@keyframes pop {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.3);
  }
  100% {
    transform: scale(1);
  }
}
div.page.generator .thanks {
  margin: 4em 0em 3em 0em;
  text-align: center;
  font-size: 2rem;
  font-weight: bold;
}

div.generated-list div.list-row {
  display: flex;
  align-items: flex-start;
  margin: 0.8em 0em;
}
div.generated-list div.item {
  background: #eee;
  padding: 0.3em 0.4em;
  font-size: 0.9rem;
  max-width: 50em;
  border-radius: 6px;
  flex: 1 1 0;
  min-width: 0;
  margin-right: 0.5em;
}
div.generated-list div.buttons {
  flex-shrink: 0;
  white-space: nowrap;
  color: #ddd;
  padding: 0.2em 0.4em;
  cursor: pointer;
}
div.generated-list div.buttons:hover {
  color: black;
}
div.generated-list div.buttons.selected {
  color: #c00;
  animation: pop 0.2s ease;
}

div.user-input-form {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  min-height: 100vh;
  padding: 1em;
}
div.user-input-form .intro {
  max-width: 30em;
  margin-bottom: 5em;
}
div.user-input-form form {
  width: 100%;
  max-width: 50em;
  box-sizing: border-box;
}
div.user-input-form .form-label {
  margin: 0rem 0rem;
}
div.user-input-form label {
  font-size: 1.1rem;
  font-weight: bold;
}
div.user-input-form input[type=text] {
  width: 100%;
}
div.user-input-form button {
  margin: 1rem 0rem;
}

div.chat .message {
  background: #eee;
  padding: 0.2em 0.4em;
}
div.chat .message h1 {
  font-size: 1.5rem;
}
div.chat .message.assistant {
  margin: 1em 6em 1em 0em;
}
div.chat .message.user {
  margin: 1em 0em 1em 6em;
}
div.chat .message.error {
  background: #fdd;
  margin: 1em 0em 1em 0em;
}
div.chat .message.profile_saved {
  background: #dfd;
  width: 20em;
  margin: 1em auto;
}
div.chat .row.status {
  border: 1px solid #ccc;
  background: #eee;
  margin: 0em 0em 1em 0em;
  padding: 0.2em 0em;
}
div.chat .row.status.error {
  border: 1px solid #ebb;
  background: #fee;
}
div.chat button.execute {
  font-size: 2rem;
  line-height: 2rem;
  padding: 0em 0.4em 0.2em 0.4em;
  margin-top: 0.4em;
}
div.chat button.toggle-feedback {
  margin-left: auto;
  margin-right: auto;
}
div.chat div.user-profile-container {
  margin-bottom: 2em;
}
div.chat div.user-profile {
  background: #eef;
  border: 1px solid #dde;
  padding: 0.4em 0.6em;
  margin-bottom: 1em;
}

div.page.retrievals div.results ul {
  list-style: none;
  padding: 0em;
}
div.page.retrievals div.results li {
  margin-bottom: 0.5rem;
}

div.feedback {
  margin: 4em 0em;
}
div.feedback p {
  margin-bottom: 0.2rem;
}
div.feedback .thumbs {
  text-align: center;
}
div.feedback svg {
  margin: 1em 2em 1em 2em;
  color: #444;
  padding: 1em;
}
div.feedback svg:hover {
  color: black;
}
div.feedback svg.thumb-up {
  margin-top: -2em;
}
div.feedback svg.selected {
  background: #dfdfff;
  border-radius: 10px;
}
div.feedback svg.thumb-up.selected {
  color: black;
  animation: pop 0.2s ease;
}
div.feedback svg.thumb-down.selected {
  color: black;
  animation: pop 0.2s ease;
}
div.feedback textarea {
  width: 100%;
}
div.feedback .send-buttons {
  display: flex;
  align-items: center;
  margin-top: 1em;
  gap: 1em;
}
div.feedback .feedback-sent {
  margin: 0;
}
