/* These styles are generated from project.scss. */

.alert-debug {
  color: black;
  background-color: white;
  border-color: #d6e9c6;
}

.alert-error {
  color: #b94a48;
  background-color: #f2dede;
  border-color: #eed3d7;
}

body {
  text-decoration: none;
  font-family: system-ui;
}

/*button {*/
/*	margin-left: 10px;*/
/*	background: rgb(0, 196, 65);*/
/*	color: #fff;*/
/*	font-weight: bold;*/
/*	cursor: pointer;*/
/*	transition: background 0.23s;*/
/*	margin: 0.5em;*/
/*	padding: 0.5em;*/
/*	border: none;*/
/*	border-radius: 0.5em;*/
/*}*/

/*button:hover {*/
/*	background: rgb(0, 180, 50);*/
/*}*/

h-divider {
  display: block;
  width: 90%;
  height: 0.3em;
  border-top: 0.3em solid #bbb;
  border-radius: 5px;
  padding: 0;
  margin: 0;
}

/*.container {*/
/*  margin: 0;*/
/*}*/

.topBox {
  display: flex;
  align-items: start;
  flex-direction: column;
}

.topBoxRow {
  display: inherit;
  width: 100%;
  flex-direction: row;
  justify-content: space-between;
}

.mainBox {
  display: flex;
  align-items: start;
  flex-direction: row;
  /*justify-content: space-around;*/
}

.centerBox {
  display: flex;
  align-items: center;
  flex-direction: column;
}

.ChatBox {
  width: 50em;
  height: 40em;
  border-radius: 0.5em;
  padding: 1em;
  margin: 1em;
  display: flex;
  flex-direction: column;
  box-shadow: 0px 0px 8px 3px #666;
}

.ChatBox hr {
  margin: 0;
}

.settingsBox {
  width: 100%;
}

.sideBox {
  min-width: 11em;
  border-radius: 0.5em;
  padding: 1em;
  margin: 1em;
  display: flex;
  flex-direction: column;
  box-shadow: 0px 0px 8px 3px #666;
}

.sideBox hr {
  margin: 0.5em;
}

.sideBoxTop {
  display: flex;
  justify-content: space-between;
}

.convListing {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

.convListingItem {
  width: 15em;
  min-height: 2em;
  border-radius: 0.5em;
  box-shadow: 0px 0px 8px 3px #666;
  margin: 2em;
  padding: 1em;
  text-decoration: none;
  color: black;
  align-items: center;
}

.convListingItem ul {
  margin-bottom: 0;
}
.convListingItem p {
  margin-bottom: 0;
}

#codeBox {
  width: 50em;
  /*height: 40em;*/
  margin: 1em;
  display: flex;
  flex-direction: column;
}

#codeBox code {
  color: white;
  text-decoration: white;
}

#codeBoxCode th {
  padding-left: 1em;
  padding-right: 1em;
}

.context-delete {
  width: 1.4em;
  height: 1.4em;
}

.context-delete-wrapper {
  cursor: pointer;
}

.doc-li {
  border: #cccccc 1px solid;
  border-radius: 0.5em;
  padding: 0;
  padding-left: 0.5em;
  min-width: 15em;
  display: flex;
  flex-direction: row;
}

#upload-form {
  position: relative;
  overflow: hidden;
  display: inline-block;
  cursor: pointer;
}

#upload-form label {
  background: rgb(0, 196, 65);
  color: #fff;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.23s;
  padding: 0.5em;
  border: none;
  border-radius: 3px;
  align-self: flex-end;
}

#upload-form label:hover {
  background: rgb(0, 180, 50);
}

#upload-form input[type='file'] {
  font-size: 100px;
  position: absolute;
  left: 0;
  top: 0;
  opacity: 0;
  cursor: pointer;
}

.settings_btn {
  display: inline-block;
  background-color: #f1f1f1;
  padding: 10px;
  border-radius: 5px;
  text-decoration: none;
}

/* messenger starts here */

#msger-chat {
  flex: 1;
  overflow-y: auto;
  padding: 10px;
}
#msger-chat::-webkit-scrollbar {
  width: 6px;
}
#msger-chat::-webkit-scrollbar-track {
  background: #ddd;
}
#msger-chat::-webkit-scrollbar-thumb {
  background: #bdbdbd;
}
.msg {
  display: flex;
  align-items: flex-start;
  margin-bottom: 10px;
}

.msg-text {
  max-width: 25em;
  font-weight: 300;
  font-size: 1em;
  padding-left: 0.5em;
}

.msg-img {
  width: 25px;
  height: 25px;
  /*margin-right: 5px;*/
  background: #ddd;
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  border-radius: 50%;
}
.msg-bubble {
  width: 28em;
  /*padding: 5px;*/
  border-radius: 15px;
  background: var(--left-msg-bg);
}
.msg-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  /*margin-bottom: 10px;*/
  border: grey 1px solid;
  border-radius: 1em;
  padding-left: 0.3em;
  padding-right: 0.3em;
}

.msg-info * {
  font-size: small;
}

.msg-info-name {
  margin-right: 10px;
  font-weight: 500;
}
.msg-info-time {
  font-size: 0.85em;
}

.left-msg .msg-bubble {
  border-bottom-left-radius: 0;
}

.right-msg {
  flex-direction: row-reverse;
}
.right-msg .msg-bubble {
  background: var(--right-msg-bg);

  border-bottom-right-radius: 0;
}
.right-msg .msg-img {
  margin: 0 0 0 10px;
}

.left-msg .msg-img {
  margin: 0 10px 0 0;
}

.msger-inputarea {
  align-items: end;
  display: flex;
  border-top: var(--border);
}

.extra_bar {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.extra_bar * {
  margin-left: 0.8em;
  margin-right: 0.8em;
  margin-bottom: 0.1em;
  margin-top: 0.1em;
  padding: 0;
}

.attachment-button {
  text-align: center;
  font-size: 1.5em;
  padding: 0;
  cursor: pointer;
}

.msger-inputarea .msger-send-btn {
  height: 3em;
}

.msger-inputarea * {
  /*padding: 10px;*/
  /*border: none;*/
  /*#border-radius: 3px;*/
  /*align-self: flex-end;*/
}
.msger-input {
  resize: none; /* Prevent user from manually resizing */
  margin: 0.5em;
  flex: 1;
  background: #ddd;
}
.msger-send-btn {
  /* width: 11em; */
  /*background: rgb(0, 196, 65);*/
  /*color: #fff;*/
  font-weight: bold;
  cursor: pointer;
  transition: background 0.23s;
}
.msger-send-btn:hover {
  /*background: rgb(0, 180, 50);*/
}
#send-btn-chat-user {
  width: 11em;
  background-color: #24538f;

  /*background: rgba(134, 134, 134, 0.39);*/
}
#send-btn-chat-user:after {
  width: 11em;
  background-color: #3382fc;
  /*background: rgba(134, 134, 134, 0.39);*/
}
#send-btn-chat-user:hover {
  /*background: rgb(0, 180, 50);*/
}

.button_a {
  text-decoration: auto;
  color: white;
}

.btn_box_send {
  display: flex;
  justify-content: center;
  flex-direction: column;
  margin: 0;
  padding: 0;
}

.loading-spinner {
  /*margin: 0.8em;*/
  display: block;
  padding: 0;
}

.loading-spinner img {
  width: 2em;
  padding: 0;
}

.styled-table {
  border: black 1px solid;
  border-radius: 2em;
  text-align: center;
}

.styled-table {
  border-collapse: collapse;
  border-radius: 0.7em;
  border-style: hidden; /* hide standard table (collapsed) border */
  box-shadow: 0px 0px 8px 3px #666; /* this draws the table border  */
}

.styled-table td {
  border: 1px solid #ccc;
}
.styled-table thead th {
  border-bottom: 1px solid #000;
  /*font-size: 0.3em;*/
}
.styled-table tbody td {
  /*font-size: 0.3em;*/
  font-weight: normal;
}

#id_conversation_id {
  width: 8em;
}

/* When the screen width is less than 768px */
@media (max-width: 1024px) {
  .mainBox {
    display: flex;
    align-items: center;
    flex-direction: column;
    justify-content: space-around;
  }

  .centerBox {
    order: 1;
  }

  #side-left {
    order: 2;
  }

  #side-right {
    order: 3;
  }
}

#progress-list a {
  text-decoration: none;
  color: black;
  cursor: pointer;
}

.workflow-list {
  border-radius: 0.5em;
  border-style: solid;
  justify-content: center;
  align-items: center;
  background-color: #ececec;
  border-width: 3px;
  padding: 0;
  padding-left: 0.4em;
  min-width: 8em;
  display: flex;
  flex-direction: row;
  margin-bottom: 1em;
  text-align: center;
  padding-top: 0.4em;
  padding-bottom: 0;
  font-size: small;
  font-weight: 600;
}

.step-answered {
  border-color: #45a75e;
}

.step-unanswered {
  border-color: #ececec;
}


/* CSS */
button {
  background-color: #1899d6;
  border: solid transparent;
  border-radius: 16px;
  border-width: 0 0 4px;
  box-sizing: border-box;
  color: #ffffff;
  cursor: pointer;
  display: inline-block;
  font-family: din-round, sans-serif;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.8px;
  line-height: 20px;
  margin: 0.4rem;
  outline: none;
  overflow: visible;
  padding: 13px 16px;
  text-align: center;
  text-transform: uppercase;
  touch-action: manipulation;
  transform: translateZ(0);
  transition: filter 0.2s;
  user-select: none;
  -webkit-user-select: none;
  vertical-align: middle;
  white-space: nowrap;
  /*width: 100%;*/
}

button a {
  text-decoration: none;
  color: white;
}

button:after {
  background-clip: padding-box;
  background-color: #1cb0f6;
  border: solid transparent;
  border-radius: 16px;
  border-width: 0 0 4px;
  bottom: -4px;
  content: '';
  left: 0;
  position: absolute;
  right: 0;
  top: 0;
  z-index: -1;
}

button:main,
.button:focus {
  user-select: auto;
}

button:hover:not(:disabled) {
  filter: brightness(1.1);
  -webkit-filter: brightness(1.1);
}

button:disabled {
  cursor: auto;
}

button:active {
  border-width: 4px 0 0;
  background: none;
}

/* CSS for Textbox */
input[type='text'],
textarea {
  background-color: #ffffff; /* Light blue background */
  border: solid transparent;
  border-radius: 8px; /* Rounded corners */
  border-width: 0 0 2px; /* Bottom border like the button */
  box-sizing: border-box;
  color: #333333; /* Dark text color */
  display: inline-block;
  font-family: din-round, sans-serif;
  font-size: 15px;
  font-weight: 400;
  letter-spacing: 0.5px;
  line-height: 20px;
  margin: 0;
  margin-top: 1em;
  outline: none;
  padding: 10px 16px; /* Padding to make it comfortable */
  width: 100%; /* Full width by default */
  transition:
    box-shadow 0.2s,
    border-color 0.2s;
  user-select: text;
  -webkit-user-select: text;
  vertical-align: middle;
  white-space: normal;
  box-shadow: 0px 0px 5px rgba(0, 0, 0, 0.1); /* Soft shadow */
}

/* Focus State for Textbox */
input[type='text']:focus,
textarea:focus {
  border-color: #1899d6; /* Similar color to the button */
  box-shadow: 0 0 0 3px rgba(24, 153, 214, 0.3); /* Light blue glow */
}

/* Disabled State for Textbox */
input[type='text']:disabled,
textarea:disabled {
  background-color: #e0e0e0;
  color: #888888;
  border-color: #c0c0c0;
  cursor: not-allowed;
}

/* CSS for Number Input */
input[type='number'] {
  background-color: #fff; /* Light blue background */
  border: solid transparent;
  border-radius: 8px; /* Rounded corners */
  border-width: 0 0 2px; /* Bottom border */
  box-sizing: border-box;
  color: #333333; /* Dark text color */
  display: inline-block;
  font-family: din-round, sans-serif;
  font-size: 15px;
  font-weight: 400;
  letter-spacing: 0.5px;
  line-height: 20px;
  margin: 0;
  margin-top: 1em;
  outline: none;
  padding: 10px 16px; /* Comfortable padding */
  width: 100%; /* Full width by default */
  transition:
    box-shadow 0.2s,
    border-color 0.2s;
  user-select: text;
  -webkit-user-select: text;
  vertical-align: middle;
  white-space: normal;
  box-shadow: 0px 0px 5px rgba(0, 0, 0, 0.1); /* Soft shadow */
  -moz-appearance: textfield; /* To remove number input arrows in some browsers */
}

/* Focus State for Number Input */
input[type='number']:focus {
  border-color: #1899d6; /* Similar color to the button */
  box-shadow: 0 0 0 3px rgba(24, 153, 214, 0.3); /* Light blue glow */
}

/* Remove spin buttons from input[type="number"] for Webkit browsers (Chrome, Safari, etc.) */
input[type='number']::-webkit-outer-spin-button,
input[type='number']::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* Disabled State for Number Input */
input[type='number']:disabled {
  background-color: #e0e0e0;
  color: #888888;
  border-color: #c0c0c0;
  cursor: not-allowed;
}

/*Start page::*/
.mainBanner {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  margin-top: 30vh;
}

.mainBanner h1 {
  color: whitesmoke;
  font-variant: all-small-caps;
  font-weight: 600;
}

.mainBanner h2 {
  color: whitesmoke;
}
.mainBanner a {
  color: #b9d6ff;
}

/*slider stuff*/
.switch {
  position: relative;
  display: inline-block;
  width: 60px;
  height: 34px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  -webkit-transition: 0.4s;
  transition: 0.4s;
  border-radius: 34px;
}

.slider:before {
  position: absolute;
  content: '';
  height: 26px;
  width: 26px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  -webkit-transition: 0.4s;
  transition: 0.4s;
  border-radius: 50%;
}

input:checked + .slider {
  background-color: #2196f3;
}

input:focus + .slider {
  box-shadow: 0 0 1px #2196f3;
}

input:checked + .slider:before {
  -webkit-transform: translateX(26px);
  -ms-transform: translateX(26px);
  transform: translateX(26px);
}
/*End of start page*/
