@use "@cloudscape-design/design-tokens/index" as awsui;

.chat_container {
  min-height: calc(100vh - 155px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.chat_app_container {
  min-height: calc(100vh - 40px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.welcome_text {
  color: awsui.$color-text-body-default;
  font-size: 3rem;
  font-weight: bolder;
  opacity: 0.4;
}

.input_container {
  position: sticky;
  bottom: 0;
  margin-top: 10px;
  background: linear-gradient(
    to bottom,
    transparent 0%,
    awsui.$color-background-container-content 20%
  );
  margin-left: -8px;
  margin-right: -8px;
  container-type: inline-size;
  container-name: input_container;
}

.input_textarea_container {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 4px;
}

.prompt_input_wrapper {
  position: relative;

  .icon {
    position: absolute;
    right: 40px;
    bottom: 5px;
    color: blue;
  }
}

.input_textarea {
  resize: none;
  border: none;
  padding: 12px 12px 12px 4px;
  background-color: transparent;
  outline: none;
  width: 100%;
  height: 100%;
  font-size: 1rem;
}

.input_controls {
  display: grid;
  grid-template-rows: 1fr;
  grid-template-columns: minmax(300px, 800px) minmax(180px, auto);
  gap: awsui.$space-scaled-xs;
  align-items: center;

  .input_controls_selects_2 {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: awsui.$space-scaled-xs;
  }

  .input_controls_selects_1 {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr;
    align-items: center;
    gap: awsui.$space-scaled-xs;
  }

  .input_controls_right {
    justify-self: end;
  }
}

.btn_chabot_message_copy {
  float: right;
}

.btn_chabot_metadata_copy {
  float: right;
  margin-top: 1em;
}

.img_chabot_message {
  width: 200px;
  border-radius: 8px;
  max-height: 200px;
  object-fit: cover;
  overflow: hidden;
}

.img_chabot_message_ai {
  max-width: 50%;
  border-radius: 8px;
}

.video_chabot_message {
  max-width: 100%;
  border-radius: 8px;
}

@media (max-width: 689px) {
  .input_controls {
    display: grid;
    grid-template-rows: 1fr 1fr;
    grid-template-columns: 1fr;
    gap: awsui.$space-scaled-xs;
  }
}

@container (max-width: 689px) {
  .input_controls {
    display: grid;
    grid-template-rows: 1fr 1fr;
    grid-template-columns: 1fr;
    gap: awsui.$space-scaled-xs;
  }
}

.codeMarkdown {
  background-color: awsui.$color-charts-line-grid;
  text-overflow: ellipsis;
  overflow: scroll;
  border-radius: 5px;
  padding: 5px;
}

.markdown {
  font-family: awsui.$font-family-base;
}

.markdown p {
  margin: 0px;
}

.markdownTable {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1em;
  border: 1px solid awsui.$color-border-divider-default;
  border-radius: awsui.$border-radius-container;
}

.markdownTable th,
.markdownTable td {
  border: 1px solid awsui.$color-border-divider-default;
  padding: 8px;
  text-align: left;
}

.markdownTable th {
  background-color: awsui.$color-background-container-header;
}

.markdownTable tr:nth-child(even) {
  background-color: awsui.$color-background-container-content;
}

.appChatContainer {
  padding: 20px;
}