body {
  font-family: "IBM Plex Sans", sans-serif !important;
}

.upload-data {
  float: right;
  width: min(250px, 100%);
}

.carbon-input {
  background-color: #f4f4f4 !important;
  border-radius: 0;
  border-bottom-color: #8d8d8d;
  border-top: none;
  border-left: none;
  border-right: none;
  padding: 0.6875rem 1rem;
  resize: none;

  &:disabled {
    border-bottom: 1px solid transparent;
    cursor: not-allowed;
    outline: none;
  }

  &:active,
  &:focus {
    box-shadow: none;
    outline: 2px solid #0f62fe;
    outline-offset: -2px;
  }
}

.btn-link {
  padding: 0 12px 0 1px;
  vertical-align: unset;
  &:active,
  &:hover {
    background-color: transparent !important;
  }
}

.carbon-btn {
  height: 2.5rem;
  width: min(250px, 100%);
  border-radius: 0;
  text-align: left;
  padding-left: 1rem;
  padding-right: 4rem;
  margin-top: 0.5rem;
  font-size: 14px;
}

.nav-dropdown-btn {
  width: 3rem;
  height: 3rem;
  text-align: center;
  padding-top: 0.7rem;

  &:hover {
    background-color: #6c757d;
  }
}

/* For DropDown */
.dropdown-menu[data-bs-popper] {
  border-radius: 0;
  box-shadow: 0 2px 6px 0 rgba(0, 0, 0, 0.2);
  width: 100%;
  padding: unset;
  border: none;
  background-color: #f4f4f4;
  max-height: 13.75rem;
  transition: max-height 0.11s cubic-bezier(0.2, 0, 0.38, 0.9);
  min-width: 12rem;
}

.dmi-class {
  color: #525252;
  font-size: 14px;
  border-bottom: 1px solid transparent;
  border-top: 1px solid transparent;
  border-top-color: #c6c6c6;
  padding: 11px 24px 11px 16px;
  height: 2.5rem;
  letter-spacing: 0.16px;
  line-height: 1rem;

  &:first-of-type {
    border-top-color: transparent;
  }

  &:hover {
    background-color: #e8e8e8;
  }
}

.token-cost {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
}

.token-cost-div {
  font-style: italic;
  color: #41464b;
  font-size: 12px;
}

.api-info-btm {
  font-style: italic;
  color: #41464b;
  font-size: 12px;
  padding-top: 1rem;
  color: #5c97ff;
}

.generate-output {
  padding: 1rem 3rem 0;
  display: grid;
  align-content: space-between;
}

/* For payload modal */
.modal-content {
  border-radius: 0;
  min-height: 550px !important;
  max-height: 750px !important;

  .nav-tabs {
    padding-bottom: 1rem;
  }

  .nav-item > a {
    background: none;
    border: none;
    border-bottom: 2px solid #e0e0e0;
    color: #525252;
    font-size: 0.875rem;
    font-weight: 400;
    height: 2.5rem;
    margin-left: 1px;
    padding: 0.5rem 1rem;

    &:focus {
      outline: 2px solid #0f62fe;
      outline-offset: -2px;
    }

    &.active {
      background: none;
      border: none;
      border-bottom: 2px solid #0f62fe;
      color: #161616;
      font-weight: 600;
    }
  }
}

.custom-tab {
  background: none;
  border: none;
  border-bottom: 2px solid #e0e0e0;
  border-radius: 0;
  color: #525252;
  font-size: 0.875rem;
  font-weight: 400;
  height: 2.5rem;
  margin-left: 1px;
  padding: 0.5rem 1rem;
  width: min(250px, 100%);

  &:focus {
    outline: 2px solid #0f62fe !important;
    outline-offset: -2px;
  }

  &:hover,
  &:active {
    color: #525252 !important;
    background-color: unset !important;
    border-color: #e0e0e0 !important;
  }

  &.active {
    background: none;
    border: none;
    border-bottom: 2px solid #0f62fe;
    color: #161616;
    font-weight: 600;

    &:hover {
      color: #161616 !important;
      border-color: #0f62fe !important;
    }
  }
}

#qna-btn {
  position: fixed;
  bottom: 5rem;
  right: 1rem;
  border-radius: 30px;
  height: 3.5rem;
  width: 3.5rem;
}

.search-btn {
  background-color: #f4f4f4;
  border-radius: 0;
  border-bottom-color: #8d8d8d;
  border-top: none;
  border-left: none;
  border-right: none;
}

/* hljs is for markdown */
.hljs {
  background-color: #343a3f;
  color: #78a9ff;
  font-family: "IBM Plex Mono", sans-serif !important;
}
.hljs-string {
  color: #9ef0f0;
  font-family: "IBM Plex Mono", sans-serif !important;
}

.tab-content {
  background-color: #343a3f;
}

#generate-output {
  max-width: 100%;
  overflow: auto;
}

.output-div:not(:first-child) {
  padding-top: 2rem;
}

/* Disabled threshold inputs */
input:disabled {
  color: #a8a8a8 !important;
}

/* Example scenario buttons: deep purple so the unselected (outline) state is readable */
.example-btn.btn-outline-info {
  color: #6929c4;
  border-color: #6929c4;
}
.example-btn.btn-outline-info:hover,
.example-btn.btn-outline-info:focus {
  background-color: #491d8b;
  border-color: #491d8b;
  color: #ffffff;
}
.example-btn.btn-info,
.example-btn.btn-info:hover,
.example-btn.btn-info:focus {
  background-color: #6929c4;
  border-color: #6929c4;
  color: #ffffff;
}

/* Scenario text boxes: slightly smaller text and padding */
#user-query,
#context,
#generated-response {
  font-size: 0.9375rem;
  line-height: 1.45;
  padding: 0.375rem 0.625rem;
}
#advanced-collapse .card-body,
#generated-response-collapse .card-body {
  padding: 0.75rem 1rem;
}
