html {
  min-width: 100vw;
  min-height: 100vh;
  max-width: 100vw;
  max-height: 100vh;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
}

body {
  width: 100%;
  height: 100%;
  line-height: 1.5715;
  margin: 0;
  padding: 0;
  background-color: #fff;
  font-family:
    Roboto,
    Helvetica Neue,
    Arial,
    Noto Sans,
    sans-serif;
}

.page {
  min-width: max(100%, 256px);
  max-width: 100%;
  max-height: 100%;
  width: 100%;
  height: 100%;
  padding: 10px;
  display: -webkit-flex;
  display: -ms-flex;
  display: flex;
  -webkit-flex-direction: column;
  -ms-flex-direction: column;
  flex-direction: column;
  gap: 4px;
  align-items: center;
  justify-content: center;
}

/* .menu-page {
  padding-bottom: 54px;
} */

.task-page {
  padding-top: 54px;
}

.login-page {
  padding-top: 54px;
  padding-bottom: 54px;
}

.flex {
  display: -webkit-flex !important;
  display: -ms-flex !important;
  display: flex !important;
  gap: 4px;
}

.flex-row {
  -webkit-flex-direction: row !important;
  -ms-flex-direction: row !important;
  flex-direction: row !important;
}

.flex-col {
  -webkit-flex-direction: column !important;
  -ms-flex-direction: column !important;
  flex-direction: column !important;
}

.flex-wrap {
  -webkit-flex-wrap: wrap !important;
  -ms-flex-wrap: wrap !important;
  flex-wrap: wrap !important;
}

.flex-grow {
  flex-grow: 1 !important;
}

.flex-content-start {
  align-items: center !important;
  justify-content: flex-start !important;
}
.flex-content-end {
  align-items: center !important;
  justify-content: flex-end !important;
}
.flex-content-evenly {
  align-items: center !important;
  justify-content: space-evenly !important;
}
.flex-content-between {
  align-items: center !important;
  justify-content: space-between !important;
}
.flex-content-center {
  align-items: center !important;
  justify-content: center !important;
}

.border-separator-top {
  border-top: 2px solid;
  border-color: rgb(217, 217, 217);
  padding-top: 8px;
}

.border-separator-bottom {
  border-bottom: 2px solid;
  border-color: rgb(217, 217, 217);
  padding-bottom: 8px;
}

.border-separator-left {
  border-left: 2px solid;
  border-color: rgb(217, 217, 217);
  padding-left: 8px;
}

.border-separator-right {
  border-right: 2px solid;
  border-color: rgb(217, 217, 217);
  padding-right: 8px;
}

.border-separator-top-0 {
  border-top: 2px solid;
  border-color: transparent;
  padding-top: 8px;
}

.border-separator-bottom-0 {
  border-bottom: 2px solid;
  border-color: transparent;
  padding-bottom: 8px;
}

.border-separator-left-0 {
  border-left: 2px solid;
  border-color: transparent;
  padding-left: 8px;
}

.border-separator-right-0 {
  border-right: 2px solid;
  border-color: transparent;
  padding-right: 8px;
}

header {
  position: absolute;
  padding: 10px 20px 10px 10px;
  width: 100%;
}

footer {
  position: absolute;
  bottom: 10px;
  right: 10px;
}

header p {
  margin: 0;
}

header > div {
  gap: 8px !important;
}

.v-sep {
  border-right: 1px solid #000;
  height: 30px;
}

main > div {
  width: 100%;
}

.w-50per-500px {
  max-width: max(50%, 500px);
}

.push-up {
  margin-bottom: auto;
}

.push-down {
  margin-top: auto;
}

.push-left {
  margin-right: auto;
}

.push-right {
  margin-left: auto;
}

#ta-output {
  background-color: white;
}

#ta-input {
  min-height: 14vh;
  max-height: 14vh;
  overflow: auto;
  overflow-y: scroll;
  -ms-resize: none;
  resize: none;
  background-color: white;
}

textarea::placeholder {
  color: rgba(0, 0, 0, 0.25);
}

a,
a:visited,
a:focus,
a:active {
  color: #8c0035;
}

text-center {
  text-align: center;
}

p,
a {
  margin-top: 0;
  margin-bottom: 1em;
  font-variant: tabular-nums;
  line-height: 1.5715;
  list-style: none;
  font-feature-settings: "tnum";
}

* {
  box-sizing: border-box !important;
}

.w-fit-content {
  width: fit-content;
}

.w-full {
  width: 100%;
}

.p-large {
  padding-top: 2em;
}

.max-w-500 {
  max-width: 500px;
}

.form-label {
  width: 33.33333333%;
  display: block;
}

.btn {
  text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.12);
  box-shadow: 0 2px #0000000b;
  /* line-height: 1.5715; */
  position: relative;
  display: inline-block;
  font-weight: 400;
  white-space: nowrap;
  text-align: center;
  align-content: center;
  background-image: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);
  -ms-user-select: none;
  -webkit-user-select: none;
  user-select: none;
  -ms-touch-action: manipulation;
  touch-action: manipulation;
  height: 34px;
  padding: 4px 15px;
  border-radius: 12px;
  color: #000000d9;
  border-color: #d9d9d9;
  background: #fff;
}

.option-btn {
}
.option-btn:hover {
  background-color: #f5f5f5;
}

table {
  border-spacing: 0;
  border-collapse: collapse;
  margin-bottom: 8px;
}

table th {
  border: 1px solid black;
  padding: 8px;
  background-color: #ececec;
}

table td {
  border: 1px solid black;
  padding: 8px;
}

.user-field-contaier {
  display: -webkit-flex;
  display: -ms-flex;
  display: flex;
  -webkit-flex-direction: row;
  -ms-flex-direction: row;
  flex-direction: row;
  flex-flow: row wrap;
  gap: 4px;
  margin: 0 0 24px;
  padding: 0;
  color: #000000d9;
  font-variant: tabular-nums;
  line-height: 1.5715;
  list-style: none;
  font-feature-settings: "tnum";
  vertical-align: top;
  width: 100%;
}

.btn::before {
  position: absolute;
  top: -1px;
  right: -1px;
  bottom: -1px;
  left: -1px;
  z-index: 1;
  display: none;
  background: #fff;
  border-radius: inherit;
  opacity: 0.35;
  transition: opacity 0.2s;
  content: "";
  pointer-events: none;
}

.btn-primary:hover,
.btn-primary:focus {
  color: #fff;
  border-color: #991845;
  background: #991845;
}

.btn-primary {
  color: #fff;
  border-color: #8c0035;
  background: #8c0035;
  text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.12);
  box-shadow: 0 2px #0000000b;
}

.icon-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.icon-button.always-enabled:not(:disabled):hover {
  color: #fff;
  background: #8c0035;
}

.btn:disabled {
  color: #00000040;
  border-color: #d9d9d9;
  background: #f5f5f5;
  text-shadow: none;
  box-shadow: none;
  cursor: default;
}

#btn-nav-back {
  margin: 0;
}

#btn-nav-back > i,
#btn-nav-back > span {
  font-size: 1em;
}

.submit-button > i,
.submit-button > span {
  font-size: 1em;
}

b {
  font-weight: bold;
}

.loading-message {
  background-color: #8c0035 !important;
  color: #fff;
  margin-bottom: 0;
  padding: 5px;
  border-radius: 2px;
}

#llm-main-message-container {
  flex-grow: 0;
  height: 0;
  display: -webkit-flex;
  display: -ms-flex;
  display: flex;
  -webkit-flex-direction: column;
  -ms-flex-direction: column;
  flex-direction: column;
  position: relative;
  overflow: auto;
  gap: 4px;
  transition: all 0.5s cubic-bezier(0.645, 0.045, 0.355, 1);

  padding-right: 4px;
}

.metadata-control-container {
  justify-content: space-between;
  margin-bottom: 0.5em;
}
.metadata-control-container-tl {
  margin-top: 8px;
}
.metadata-control-container-tl:hover {
  cursor: default;
}

.metadata-control-subcontainer {
  gap: 8px;
}

.metadata-control-button-tl {
  cursor: pointer;
  border: none;
  border-radius: 2px;
  padding: 16px 8px;
}
.metadata-control-button-tl.green {
  color: white;
  background-color: green;
}
.metadata-control-button-tl.red {
  color: white;
  background-color: red;
}
.metadata-control-button-tl.blue {
  color: white;
  background-color: blue;
}
.metadata-control-button-tl.gray {
  color: white;
  background-color: gray;
}

.metadata-control-button,
.topic-search-icon,
.btn-menu {
  cursor: pointer;
  background: none;
  background-color: transparent;
  color: #000;
  border: 1px solid #d9d9d9;
  border-radius: 8px;
  min-height: 24px;
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.02);
}
.sub-topic-main-container .metadata-control-button {
  border: 1px solid #b3b3b3;
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.03);
}

.metadata-control-button:disabled,
.topic-search-icon:disabled,
.btn-menu:disabled {
  cursor: auto;
  color: #b9b9b9;
  border: 1px solid #b9b9b9;
}

.metadata-control-button-multi {
  cursor: pointer;
  background: none;
  background-color: transparent;
  color: #000 !important;
  border: 1px solid #000 !important;
  border-radius: 25%;
  padding: 0;
  margin: 0;
  height: 1.8em;
  width: 3.6em;
}

.metadata-control-button > i,
.metadata-control-button > span > i,
.topic-search-icon > i,
.topic-search-icon > span > i,
.btn-menu > i,
.btn-menu > span > i {
  font-size: 1em;
}

.metadata-control-button:enabled:hover,
.metadata-control-button-multi:hover,
.topic-search-icon:hover,
.btn-menu:enabled:hover {
  color: #8c0035 !important;
  border-color: #8c0035 !important;
}

.metadata-control-button.open,
.topic-search-icon.open,
.metadata-control-button-multi.open {
  background-color: #8c0035 !important;
  border-color: #8c0035 !important;
  color: #fff !important;
}

.llm-message-content-container {
  border-radius: 0.75em;
  padding: 0.25rem 0.5rem;
  margin-right: 0.25em;
  margin-bottom: 0.25em;
  overflow-wrap: break-word;
}

.llm-message-content-container .metadata-control-container,
.llm-message-content-container .llm-message-secondary-control {
  opacity: 0;
  transition: opacity 0.2s ease;
}

.llm-message-content-container:hover .metadata-control-container,
.llm-message-content-container:hover .llm-message-secondary-control {
  opacity: 1;
}

.llm-message-content-container p {
  margin: 0 0 2px 0;
}

.llm-message-header {
  margin: 0.5em 0 0.25em 0;
}

.user-message {
  background-color: #ededed;
  max-width: 90%;
  justify-self: end;
}

.option-message {
  background-color: #ededed;
  width: 100%;
  justify-self: center;
}

#llm-message-options-control {
  display: -webkit-flex;
  display: -ms-flex;
  display: flex;
  -webkit-flex-direction: row;
  -ms-flex-direction: row;
  flex-direction: row;
  justify-content: space-between;
  align-items: baseline;
  max-width: 100%;
}

#llm-message-options-label-select-container {
  display: -webkit-flex;
  display: -ms-flex;
  display: flex;
  -webkit-flex-direction: row;
  -ms-flex-direction: row;
  flex-direction: row;
  gap: 5px;
}

.options-col {
  display: -webkit-flex;
  display: -ms-flex;
  display: flex;
  -webkit-flex-direction: column;
  -ms-flex-direction: column;
  flex-direction: column;
  justify-content: space-evenly;
  gap: 5px;
}

#llm-message-options-control select {
  max-width: 200px;
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
}

#llm-message-options-control select option {
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
}

#llm-message-options-menu {
  display: -webkit-flex;
  display: -ms-flex;
  display: flex;
  -webkit-flex-direction: row;
  -ms-flex-direction: row;
  flex-direction: row;
  align-self: flex-end;
  gap: 5px;
  margin-top: -999px;
  margin-bottom: 12px;
  transition: margin-bottom 0.333s ease-out;
}

#llm-message-options-menu.nudge {
  margin-bottom: 0;
}

.llm-message-container {
  display: flex;
  flex-direction: column;
}

.llm-options-content-text-container {
  padding: 3px 0 0 3px;
}
.llm-options-content-container-wrapper {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.llm-message-content-container.option-message {
  display: flex;
  gap: 4px;

  justify-content: space-between;
}

.menu-item {
  cursor: pointer;
  background: none;
  background-color: transparent;
  color: #000;
  border: none;
  padding: 0;
  margin: 0;
  height: 1.6em;
  width: 1.6em;
}

.menu-item:hover {
  color: #8c0035;
}

.menu-item > i {
  font-size: 1em;
}

#error-container {
  position: absolute;
  top: 52px;
  left: 10px;
  right: 10px;
}

.message {
  padding: 10px;
  background-color: #f1f1f1;
  border: 1px solid #ccc;
  border-radius: 12px;
  margin: 0;
  opacity: 1;
  width: 100%;
  text-align: center;
}

.success {
  background-color: #65cf68;
  color: white;
}

.info {
  background-color: #65baff;
  color: white;
}

.warning {
  background-color: #f0aa42;
  color: white;
}

.error {
  background-color: #c5443b;
  color: white;
}

.close {
  cursor: pointer;
  border: 1px solid;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
}

.close span {
  font-size: 2.5em !important;
}

.input:hover {
  border-color: #991845;
  border-right-width: 1px !important;
}

.input:focus {
  border-color: #991845;
  box-shadow: 0 0 0 2px #8c003533;
  border-right-width: 1px !important;
  outline: 0;
}

.select-btn {
  line-height: 30px;
  font-weight: 400;
  height: 34px;
  min-width: 180px;
}

.loading-dots {
  font-size: 1.5em;
  min-height: 1.5em;
  height: 1.5em;
  margin: 0;
  padding: 4px 8px;
}

.topic-header-container {
  border-radius: 12px;
}
.topic-header-container-tl {
  min-height: 50px;
  border-radius: 2px;
}

.topic-container,
.topic-container-wf {
  border-radius: 12px;
  min-height: 30px;
  /* padding: 2px 10px; */
  margin: 0 10px 0 0;
  box-sizing: border-box;
}

.topic-container:not(.active):not(:hover) .topic-search-icon {
  display: none;
}

.topic-header {
  padding: 0 1em 0 0;
  margin: 0;

  align-items: baseline;
}

.topic-container > .topic-search-control-container,
.topic-container-wf > .topic-search-control-container {
  opacity: 0;
  transition: opacity 0.2s ease;
  pointer-events: none;
}

.topic-container.active > .topic-search-control-container,
.topic-container-wf.active > .topic-search-control-container {
  opacity: 1;
  pointer-events: all;
}

.topic-search-control-container {
  gap: 5px;
  padding: 0;
  margin: 0;
}
.sub-topic-navigation-container {
  padding: 14px 28px;
  margin-left: -28px;
  cursor: default;
}

.topic-search-button,
.deviation-card-button {
  cursor: pointer;
  background: none;
  background-color: transparent;
  color: #000;
  border: 1px solid #000;
  border-radius: 25%;
  padding: 0;
  margin: 0;
  height: 1.6em;
  width: 1.6em;
}

.topic-search-button > i {
  font-size: 1em;
}

.topic-search-button:hover {
  color: #8c0035;
  border-color: #8c0035;
}

.topic-search-button:last-of-type {
  margin-left: auto;
}

.topic-search-button:disabled {
  color: #00000040;
  border-color: #00000040;
  background: #f5f5f5;
  text-shadow: none;
  box-shadow: none;
}

#welcome-header {
  font-weight: normal;
  color: #000;
}

#welcome-header-strong {
  color: #8c0035;
}

#div-welcome {
  /* position: absolute;
  top: 150px; */
}

.llm-select {
  border-radius: 12px;
  height: 34px;
  border-width: thin;
  padding: 0 10px;

  max-width: 100%;
  min-width: 66%;
}

.floating-button {
  position: relative;
}

.menu-container {
  padding-top: 8px;
}

.menu-category-label {
  padding: 0;
  margin: 0;
  font-size: 0.666rem;
}

.btn-menu {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px 6px;
  height: 34px;
  border-radius: 12px;
}

.btn-menu .anticon {
  padding-top: inherit;
}

#menu-options-container {
  margin-top: 24px;
}

.dropdown {
  width: fit-content;
}

.dropbtn {
  cursor: pointer;
}

.dropdown-content {
  position: absolute;
  background-color: white;
  box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
  border-radius: 12px;
  width: fit-content;
  padding: 8px 4px 4px 4px;
  z-index: 1;
}

.dropdown-content div:hover {
  background-color: #f1f1f1;
}

.dropdown-content span {
  font-size: 1em;
}

.dropdown-content .btn-menu {
  width: 100%;
  border-color: transparent;
  box-shadow: none;
}

.dropdown-content .btn-menu:enabled:hover {
  background-color: #f1f1f1;
  color: #000;
  border-color: transparent;
}

.input-label {
  min-width: 94px;
  flex-grow: 0;
}

.input-label-small {
  min-width: 56px;
  flex-grow: 0;
}

.input-select-select,
.input-select-text,
.input-select-button {
  width: fit-content;
  max-width: 100%;
  min-width: 250px;
  flex-grow: 1;
  border-radius: 12px;
  height: 34px;
  border-width: thin;
  padding: 0 10px;
}

/* .playbook-button-container {
  max-width: 330px;
  width: 100%;
} */

.playbook-mode:not(.active) {
  display: none !important;
}

/* ############################################# */
/* FILES */
/* ############################################# */

.file-list {
  margin: 0;
  padding: 0;
  /* padding-left: 20px; */
}

.file-element span i {
  margin-right: 10px;
}

.remove-file-button {
  border: none;
  background-color: transparent;

  padding: 4px 8px;
  margin-left: 6px;
}
.remove-file-button:hover {
  color: #8c0035;
  cursor: pointer;
}

.fa-link {
  rotate: 90deg;
}

/* ############################################# */
/* TRAFFIC LIGHT WORKFLOWS */
/* ############################################# */

.traffic-light-section-container {
  width: 99%;
}

.traffic-light-topic,
.sub-traffic-light-topic {
  z-index: 1;
  padding: 0 10px;
}
.traffic-light-topic.open {
  background-color: #f1f1f1;
}
.traffic-light-topic:hover {
  cursor: pointer;
  background-color: #f1f1f1;
}
.traffic-light-topic:not(.open) .topic-search-icon {
  display: none;
}

.sub-traffic-light-topic.open {
  background-color: #d5d5d5;
}
.sub-traffic-light-topic:hover {
  cursor: pointer;
  background-color: #d5d5d5;
}

.topic-main-container {
  border-radius: 12px;
}
.topic-container-open {
  background-color: #f1f1f1;
}

.topic-main-container-tl {
  border-radius: 0px;
  border-bottom: 1px solid lightgray;
  min-height: 50px;
  justify-content: center;
}

.sub-topic-main-container {
  border-radius: 12px;
}
.sub-topic-container-open {
  /* background-color: #d5d5d5; */
}

.traffic-light-content-container {
  /* max-height: 100%; */
  /* max-height: 100vh; */

  padding: 0 10px;
  border-radius: 12px;
  /* transition: margin 0s ease; */
}
.traffic-light-content-container:not(.collapse) {
  /* margin-bottom: 10px; */
}
.traffic-light-content-container .llm-message-content-container {
  padding: 0;
  margin: 0;
}

.llm-message-secondary-control {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 4px 0;
}

/* ########## OPTION / SNIPPET / CLAUSE MESSAGES ########## */

.topic-main-container .btn-option-add-snippet,
.topic-main-container .btn-option-edit-category,
.topic-main-container .btn-option-delete-category {
  opacity: 0.15;
}
.topic-main-container:hover .btn-option-add-snippet,
.topic-main-container:hover .btn-option-edit-category,
.topic-main-container:hover .btn-option-delete-category {
  opacity: 1;
}

.just-icon {
  background-color: transparent;
  border: none;
  cursor: pointer;
  /* font-size: 1.1em; */
}
.just-icon:hover {
  color: #8c0035;
}
.just-icon.active {
  color: #8c0035;
}
.just-icon.active:hover {
  color: #a70845;
}

.llm-message-content-container.option-message.is-favorite {
  /* box-shadow: 0px 0px 66px -33px rgba(140, 0, 53, 1) inset; */
  background: rgb(140 0 53 / 20%);
}

.traffic-light-content-wrapper {
  padding-bottom: 10px;
}
.sub-traffic-light-content-wrapper {
  padding: 0 10px;
  /* margin: 0px 4px; */
}

.tl-m1 {
  /* background-color: #f1f1f1; */
  background-color: transparent;
  border-radius: 8px;
  padding: 2px 6px;
  margin-left: -6px;
}

.traffic-light-entry {
  /* border-radius: 12px;
  padding: 0 10px;
  margin: 0 -10px; */

  border-radius: 2px;
}

.traffic-light-summary-deviations-container {
  display: -webkit-flex;
  display: -ms-flex;
  display: flex;
  -webkit-flex-direction: row;
  -ms-flex-direction: row;
  flex-direction: row;

  align-items: center;
  justify-content: space-evenly;

  gap: 8px;
  padding: 4px 0;
}
.traffic-light-deviation-card {
  border: 1px solid;
  border-radius: 8px;

  min-height: 75px;
  min-width: 155px;

  flex-grow: 1;

  padding: 10px;
}
.traffic-light-deviation-card.deviation {
  color: #8c0035;
  background-color: #fbe9e9;
}
.traffic-light-deviation-card.missing {
  color: #8c0035;
  background-color: #fbe9e9;
}
.traffic-light-deviation-count {
  font-weight: bold;
}
.traffic-light-deviation-text {
  color: slategray;
}

.deviation-card-button:disabled {
  color: #00000040;
  border-color: #00000040;
  text-shadow: none;
  box-shadow: none;
  cursor: default;
}

.traffic-light-deviation-card-control-container {
  opacity: 0.05;
}
.traffic-light-deviation-card:hover .traffic-light-deviation-card-control-container {
  opacity: 1;
}

.status-light {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  /* border: 1px solid gray; */
  margin-right: 4px;
}

.status-light.success {
  background-color: rgb(34, 140, 34);
}

.status-light.failure {
  background-color: rgb(223, 35, 32);
}

.toggle-button {
  display: flex;
  align-items: center;
  background: none;
  border: none;
  cursor: pointer;
}

.triangle {
  margin-right: 8px;
  width: 0;
  height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 9px solid black;
  transition: transform 0.3s ease !important;
}

.open .triangle {
  transform: rotate(180deg) !important;
}

.topic-search-icon {
  z-index: 2;
  width: 1.5em;
  height: 1.5em;
  display: flex;
  align-items: center;
  justify-content: center;
}

.topic-container-wf.active .topic-search-icon {
  display: none !important;
}

::-webkit-scrollbar {
  width: 5px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
  background: #cacaca;
}

::-webkit-scrollbar-thumb:hover {
  background: #888;
}

#welcome-text,
.welcome-text {
  display: -webkit-flex;
  display: -ms-flex;
  display: flex;
  -webkit-flex-direction: column;
  -ms-flex-direction: column;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  margin: 10px;
  transition: all 0.5s cubic-bezier(0.645, 0.045, 0.355, 1);
}

#welcome-text > p {
  margin: 0 0 5px 0;
}

.form-label {
  width: 100%;
  display: block;
  min-width: fit-content;
}

.card-body {
  padding: 24px;
  width: 100%;
}

.form-item-control-input-content {
  flex: auto;
  max-width: 100%;
}

.form-item {
  width: 100%;
}

.form-item input {
  margin: 0;
  font-variant: tabular-nums;
  list-style: none;
  font-feature-settings: "tnum";
  position: relative;
  display: inline-block;
  width: 100%;
  min-width: 0;
  padding: 4px 11px;
  color: #000000d9;
  font-size: 14px;
  line-height: 1.5715;
  background-color: #fff;
  background-image: none;
  border: 1px solid #d9d9d9;
  border-radius: 12px;
  transition: all 0.3s;
}

.card-bordered {
  border: 1px solid #f0f0f0;
  border-radius: 12px;
  box-sizing: border-box;
  color: #000000d9;
  font-size: 14px;
  font-variant: tabular-nums;
  line-height: 1.5715;
  list-style: none;
  font-feature-settings: "tnum";
  display: -webkit-flex;
  display: -ms-flex;
  display: flex;
  align-items: center;
  margin-left: auto;
  margin-right: auto;
}

#login-form {
  display: flex;
  -webkit-flex-direction: column;
  -ms-flex-direction: column;
  flex-direction: column;
  align-items: center;
  padding: 20px 30px;
  border-radius: 5px;
}
.login-tab-nav::before{
  position: absolute;
  z-index: 1;
  opacity: 0;
  transition: opacity 0.3s;
  content: '';
  pointer-events: none;
  left: 0;
  box-shadow: inset 10px 0 8px -8px rgba(0, 0, 0, 0.08);

}
.login-tab-nav {
  display: flex;
  flex-direction: row;

  justify-content: flex-start;
  width: 100%;
  padding: 10px 24px;
  margin-bottom: -20px;
}
.tab-btn{
  margin: 0;
  padding: 8px 16px;
  background: rgba(0, 0, 0, 0.02);
  border: 1px solid rgba(5, 5, 5, 0.06);
  border-bottom-color: rgba(5, 5, 5, 0.06);
  transition: all 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);  
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 12px 0;
  font-size: 14px;
  background: #ffffff;
  outline: none;
  cursor: pointer;
  padding: 8px 16px;
  border-radius: 14px 14px 0 0;
}
.tab-btn-active {
  color: #8c0035;
  border-bottom-color: #ffffff;
}
form input:hover,
form .custom-modal-input:hover {
  border-color: #991845;
  border-right-width: 1px !important;
}

form input:focus,
form .custom-modal-input:focus {
  border-color: #991845;
  box-shadow: 0 0 0 2px #8c003533;
  border-right-width: 1px !important;
  outline: 0;
}

form input.invalid,
form .custom-modal-input.invalid {
  border-color: #ff4d4f;
  box-shadow: 0 0 0 2px #ff4d4f33;
}

#login-error {
  display: none;
  color: red;
}

.a {
  text-decoration: none !important;
}

.custom-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  padding: 10px;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
}

.custom-modal-overlay.visible {
  opacity: 1;
  visibility: visible;
}

.custom-modal-container {
  background-color: #fff;
  border-radius: 12px;
  border: 1px solid transparent;
  padding: 20px 30px;
  min-width: 245px;
  max-width: 500px;
  width: 100%;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
  font-family: sans-serif;
}

.custom-modal-form {
  gap: 8px;
}

.custom-modal-item-field {
  align-items: baseline;
  flex-wrap: wrap;
}

.custom-modal-input {
  margin: 0;
  font-variant: tabular-nums;
  list-style: none;
  font-feature-settings: "tnum";
  position: relative;
  display: inline-block;
  padding: 4px 11px;
  color: #000000d9;
  background-color: #fff;
  background-image: none;
  border: 1px solid #d9d9d9;
  border-radius: 12px;
  transition: all 0.3s;
  height: 32px;
  min-width: 166px;
  width: 0;
  flex-grow: 1;
}

.custom-modal-buttons {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 20px;
}

.reset-link {
  width: fit-content;
  margin: 0;
}

.sticky-header {
  position: sticky;
  top: -10px;
  z-index: 10;
  background-color: #fff;
  /* box-shadow: 0 2px 3px rgba(0, 0, 0, 0.1); */
}

.fab {
  width: 3em;
  height: 3em;
  border-radius: 50%;
  z-index: 99;
  position: absolute;
  bottom: 10%;
  justify-self: anchor-center;
  box-shadow: 0 2px 3px 1px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  transition:
    all 0.3s,
    bottom 0s;
}

.gone {
  display: none !important;
}

.hidden {
  visibility: hidden !important;
  opacity: 0 !important;
}

.collapse {
  max-height: 0 !important;
  overflow: hidden !important;
}

label:not(.empty)::after {
  content: ":";
  margin: 0 2px 0 2px;
}

.fade {
  transition: all 0.2s cubic-bezier(0.645, 0.045, 0.355, 1);
}

.loading {
  background: linear-gradient(90deg, #eee 25%, #ddd 50%, #eee 75%);
  background-size: 200% 100%;
  animation: loading 1.5s infinite linear;
}

@keyframes loading {
  from {
    background-position: 200% 0;
  }
  to {
    background-position: -200% 0;
  }
}

.initializing {
  opacity: 0 !important;
}

/* .status-container {
  display: flex;
  flex-direction: row;
} */
.checkmark {
  color: rgb(94, 196, 94);
  font-size: 1.5em;
}
.checkmark.fail {
  color: rgb(223, 35, 32);
  font-size: 1.5em;
}

pre {
  overflow: auto;
}

.green {
  background-color: rgb(34, 140, 34);
}
.green.bs {
  box-shadow: 0 0 0 2px rgba(16, 124, 16, 0.2);
}
.red {
  background-color: rgb(223, 35, 32);
}

.red.bs {
  box-shadow: 0 0 0 2px rgba(223, 35, 32, 0.2);
}
.yellow {
  background-color: rgb(255, 204, 0);
}
.yellow.bs {
  box-shadow: 0 0 0 2px rgba(255, 204, 0, 0.2);
}

.bg-light-red {
  background-color: rgb(223, 35, 32, 0.1) !important;
}
.bg-light-green {
  background-color: rgb(34, 140, 34, 0.1) !important;
}
.bg-light-yellow {
  background-color: rgb(255, 204, 0, 0.1) !important;
}

.hover-pointer {
  cursor: pointer;
}

/* ############################################# */
/* NEW REDESIGNED MENU PAGE STYLES */
/* ############################################# */

.app-container {
  display: flex;
  height: 100vh;
  background-color: #fff;
  color: #374151;
  font-family: sans-serif;
}

.app-container .left-sidebar {
  width: 64px;
  background-color: #f3f4f6;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 16px 0;
  border-right: 1px solid #e5e7eb;
}

.app-container .sidebar-logo {
  margin-bottom: 32px;
  font-weight: bold;
  font-size: 24px;
  color: #8c0035;
}

.app-container .sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: center;
}

.app-container .sidebar-help {
  margin-top: auto;
}

/* .settings-button {
  width: 34px;
  justify-content: center;
}
.settings-button span {
  font-size: 1.2em;
} */
.app-container .nav-button,
.settings-button,
.settings-button-small {
  padding: 8px;
  border-radius: 8px;
  border: none;
  background: transparent;
  cursor: pointer;
  color: #6b7280;
  transition: all 0.2s;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.settings-button-small {
  width: 32px;
  height: 32px;
}

.app-container .nav-button:hover,
.settings-button:hover,
.settings-button-small:hover {
  background-color: #e5e7eb;
}

.app-container .nav-button.active {
  background-color: #f5e6eb;
  color: #8c0035;
}

.app-container .nav-button i,
.settings-button i,
.settings-button-small i {
  font-size: 20px;
}

.app-container .main-content {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.app-container .app-header {
  /* padding: 16px; */
  padding: 16px 16px 15px 16px;
  border-bottom: 1px solid #e5e7eb;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: white;
  position: relative;
}

.app-container .header-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.app-container .app-title {
  font-size: 20px;
  font-weight: 600;
  margin: 0;
  color: #374151;
}

.app-container .app-subtitle {
  font-size: 14px;
  color: #6b7280;
}

.app-container .chat-header {
  padding: 16px;
  border-bottom: 1px solid #e5e7eb;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: white;
  position: relative;
}

.app-container .header-content {
  display: flex;
  align-items: center;
  gap: 8px;
}

.app-container .header-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

.app-container .settings-btn {
  padding: 8px;
  border-radius: 8px;
  border: none;
  background: transparent;
  cursor: pointer;
  color: #6b7280;
  transition: all 0.2s;
}

.app-container .settings-btn:hover {
  background-color: #f3f4f6;
}

.app-container .logout-btn {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px 12px;
  background-color: #8c0035;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
}

.app-container .logout-btn:hover {
  background-color: #7a002e;
}

.app-container .page {
  flex: 1;
  padding: 24px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: unset;
}

.app-container .menu-page {
  padding-bottom: 24px;
}

.app-container .task-page {
  padding-top: 0;
}

.app-container .welcome-section {
  margin-bottom: 24px;
  text-align: center;
}

.app-container .welcome-title {
  font-size: 32px;
  font-weight: normal;
  margin: 0 0 4px 0;
  color: #374151;
}

.app-container .welcome-title strong {
  color: #8c0035;
  font-weight: bold;
}
.app-container #div-welcome strong {
  color: #8c0035;
  font-weight: bold;
}
#div-welcome h2,
#div-welcome h1 {
  margin: 0;
}

.app-container .welcome-subtitle {
  color: #6b7280;
  margin: 0;
  font-size: 16px;
}

.app-container .quick-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  /* margin-bottom: 24px; */
  width: 100%;
  max-width: 600px;
}

.app-container .quick-action-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background-color: #f5e6eb;
  color: #8c0035;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
  gap: 8px;

  height: 52px;
}

.app-container .quick-action-btn:hover {
  background-color: #f0d8e1;
}

.app-container .quick-action-btn i {
  font-size: 20px;
}

.llm-input-area {
  display: flex;
  flex-direction: column;
  gap: 8px;

  width: 100%;
  max-width: 600px;
  /* margin-bottom: 24px; */
  border: 1px solid #d1d5db;
  border-radius: 8px;
  padding: 16px;
  position: relative;
}

.input-container {
  background-color: white;
  border: none;
  border-radius: 8px;
  padding: 0;
  margin: 0;
}

.llm-text-input {
  width: 100%;
  height: 96px; /* 128px */
  resize: none;
  border: none;
  outline: none;
  padding: 0;
  color: #374151;
  font-family: inherit;
  font-size: 14px;
  line-height: 1.5; /* 1.5715 */
  background: transparent;
}
.llm-text-input::placeholder {
  color: #9ca3af;
}
.llm-text-input:focus {
  outline: none !important;
  border: none !important;
  box-shadow: none !important;
}

.app-container .input-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.input-elements-container {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  flex-grow: 1;
}

.app-container .model-selection {
  display: flex;
  align-items: center;
  gap: 8px;
}

.app-container .model-label {
  font-size: 14px;
  color: #6b7280;
}

#select-llm-model {
  font-size: 14px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  padding: 4px 8px;
  background: white;
}

.app-container .send-button {
  padding: 8px 16px;
  background-color: #8c0035;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
}
.app-container .send-button:hover:not(:disabled) {
  background-color: #7a002e;
}
.app-container .send-button:disabled {
  background-color: #d1d5db;
  color: #9ca3af;
  cursor: not-allowed;
}

.audio-button {
  background-color: #8c0035;
  color: white;
  border: none;
  min-width: 32px;
  padding-inline-start: 0;
  padding-inline-end: 0;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.2s;
  font-size: 14px;
  height: 32px;
}
.audio-button:hover {
  background-color: #7a002e;
}
.audio-button:disabled {
  background-color: #d1d5db;
  color: #9ca3af;
  cursor: not-allowed;
}

.info-symbol {
  align-self: start;
  margin: 7px -4px 0 -2px;
  color: rgb(245, 229, 234);
}
.info-symbol:hover {
  color: #8c0035;
  cursor: help;
}

.input-button-container {
  display: flex;
  flex-direction: row;
  gap: 8px;
  align-items: baseline;
}

.big-gap {
  gap: 8px;
}
.wide-gap {
  gap: 16px;
}

.app-container .function-categories {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  width: 100%;
  max-width: 600px;
}

.app-container .function-category {
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 16px;
}

.app-container .category-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  cursor: pointer;
}

.app-container .category-title {
  font-weight: 500;
  margin: 0;
  font-size: 16px;
  color: #374151;
}

.app-container .category-toggle {
  font-size: 16px;
  color: #6b7280;
  rotate: 180deg;
  transition: transform 0.2s;
}

.app-container .category-content {
  display: none;
  flex-direction: column;
  gap: 8px;
  max-height: 190px;
  overflow-y: auto;
}

.app-container .category-content.open {
  display: flex;
}

.app-container .function-btn {
  width: 100%;
  text-align: left;
  padding: 8px;
  font-size: 14px;
  background: transparent;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
  color: #374151;
}

.app-container .function-btn:hover {
  background-color: #f3f4f6;
}

.app-container .function-btn.with-icon {
  display: flex;
  align-items: center;
  gap: 8px;
}

.app-container .function-btn.with-icon i {
  font-size: 16px;
  color: #6b7280;
}

.app-container .hidden-compatibility {
  display: none;
}

.app-container #llm-output-area {
  flex-grow: 0;
  height: 0;
  display: -webkit-flex;
  display: -ms-flex;
  display: flex;
  -webkit-flex-direction: column;
  -ms-flex-direction: column;
  flex-direction: column;
  position: relative;
  overflow: auto;
  gap: 4px;
  transition: all 0.5s cubic-bezier(0.645, 0.045, 0.355, 1);
}

.input-select-container {
  display: flex;
  flex-direction: row;
  gap: 4px;
}
@media (max-width: 444px) {
  .input-select-container {
    flex-direction: column;
    align-items: flex-start !important;
  }
}

/* @media (max-width: 768px) { */
@media (max-width: 724px) {
  /* .app-container .quick-actions {
    grid-template-columns: 1fr;
  } */
  .app-container .function-categories {
    grid-template-columns: 1fr;
  }
  .app-container .input-controls {
    /* flex-direction: column; */
    gap: 8px;
    align-items: stretch;
  }
}

@media (max-width: 586px) {
  .app-container .quick-actions {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 345px) {
  .traffic-light-summary-deviations-container {
    -webkit-flex-direction: column;
    -ms-flex-direction: column;
    flex-direction: column;
    align-items: flex-start;
  }
}
