/*
Inspired by mscbot by Indently:
https://github.com/indently/mscbot/tree/main/mscbot

A lot of the code below is taken directly from the above links
*/

#textInput {
  border-color: rgb(235, 235, 235);
  border-width: 3px;
  border-style: solid;
  transition: all 0.15s ease-in;
}

#textInput:focus {
  border-color: green;
  border-width: 3px;
  border-style: solid;
}

.code-copy-button,
.copy-all-button,
.thumbs-up-button,
.thumbsDownButton,
.speakButton,
.stopButton,
#copy-convo {
  border: none;
  border-radius: 1em;
  background-color: #e0e0e0;
  transition: background-color 0.3s ease;
  padding: 0.5em 0.7em;
}

.metadata {
  font-size: 0.6em;
  color: gray;
}

#copy-convo {
  background-color: rgb(235, 235, 235);
}

.code-copy-button:hover,
.copy-all-button:hover,
.thumbs-up-button:hover,
.thumbsDownButton:hover,
.speakButton:hover,
.stopButton:hover,
#copy-convo:hover {
  background-color: #98969667;
}

#convo-history {
  border: none;
  border-radius: 1em;
  background-color: rgb(235, 235, 235);
  transition: background-color 0.3s ease;
  padding: 0.5em 0.7em;
}


#convo-history:hover {
  background-color: #98969667;
}

#upload-image {
  border: none;
  border-radius: 1em;
  background-color: rgb(235, 235, 235);
  transition: background-color 0.3s ease;
  padding: 0.5em 0.7em;
}

#upload-image:hover {
  background-color: #98969667;
}

.slider-parent {
  width: 20%;
  display: inline-block;
  height: 43.98px;
}

.soc-class {
  height: 70%;
  width: 30%;
}

.soc-label {
  color: black;
  height: 30%;
  display: block;
}

.api-label {
  color: black;
  height: 30%;
  display: block;
  padding-left: 15px;
}

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

.chatbot_text {
  color: black;
}

#chat-button:focus {
  outline: none;
}

.chat-bar-collapsible {
  position: fixed;
  bottom: 0;
  right: 0;
  box-shadow: 0 8px 16px 0 rgba(0, 0, 0, 0.2);
}

.collapsible {
  background-color: rgb(47, 129, 47);
  color: white;
  cursor: pointer;
  padding: 8px;
  width: 650px;
  text-align: left;
  outline: none;
  font-size: 16px;
  border-radius: 10px 10px 0px 0px;
  border: 3px solid white;
  border-bottom: none;
}

.content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.2s ease-out;
  background-color: #f1f1f1;
  z-index: -1;
  position: relative;
}

.full-chat-block {
  width: 650px;
  background: rgb(38, 36, 36);
  border: 3px solid white;
  text-align: center;
  overflow: auto;
  scrollbar-width: none;
  height: max-content;
  transition: max-height 0.2s ease-out;
  margin-bottom: 84px;
  padding-bottom: 20px;
}

.outer-container {
  min-height: 500px;
  bottom: 0%;
  position: relative;
}

.chat-container {
  max-height: 500px;
  width: 100%;
  position: absolute;
  bottom: 0;
  left: 0;
  scroll-behavior: smooth;
  hyphens: auto;
  /*height: calc(100% - 5px); /* Adjust as needed */
  overflow: auto; 
}

.chat-container::-webkit-scrollbar {
  display: none;
}

.chat-bar-input-block {
  display: flex;
  position: absolute;
  bottom: 0;
  right: 0;
  flex-direction: row;
  float: left;
  box-sizing: border-box;
  justify-content: space-between;
  width: 100%;
  align-items: center;
  background-color: rgb(235, 235, 235);
  border-radius: 10px 10px 0px 0px;
  padding: 10px 0px 10px 10px;
  z-index: 5;
}

.chat-bar-icons {
  display: flex;
  justify-content: space-evenly;
  box-sizing: border-box;
  width: 15%;
  height: 100%;
  float: right;
  font-size: 20px;
  padding: 10px 10px 20px 10px;
}

#chat-icon:hover {
  opacity: 0.7;
}

/* Chat bubbles */

#userInput {
  width: 80%;
}

.input-box{
  float: left;
  border: none;
  box-sizing: border-box;
  flex: 1;
  width: 100%;
  min-height: 20px;
  max-height: 80px; /* Adjust as needed */
  overflow: auto;
  resize: none; /* Prevent manual resize */
  white-space: pre-wrap; /* Allow line breaks */
  border-radius: 10px;
  padding: 10px;
  font-size: 16px;
  color: #000;
  background-color: white;
  outline: none;
}

.userText {
  color: white;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  font-size: 16px;
  font-weight: normal;
  text-align: left;
  clear: both;
}

.userText span {
  line-height: 1.5em;
  display: inline-block;
  background: rgb(37, 101, 238);
  padding: 10px;
  border-radius: 8px;
  border-bottom-right-radius: 2px;
  max-width: 97%;
  margin-left: 10px;
  animation: floatup 0.5s forwards;
  margin-bottom: 10px;
}

.botText {
  color: #000;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  font-weight: normal;
  font-size: 16px;
  text-align: left;
}

.botText span {
  line-height: 1.5em;
  display: inline-block;
  background: #e0e0e0;
  padding: 10px;
  border-radius: 8px;
  border-bottom-left-radius: 2px;
  max-width: 97%;
  margin-left: 10px;
  animation: floatup 0.5s forwards;
  margin-bottom: 15px;
}

.statusText {
  color: #1e6218;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  font-weight: normal;
  font-size: 10px;
  text-align: left;
}

.statusText span {
  line-height: 1.5em;
  display: inline-block;
  background: #e0e0e0;
  padding: 10px;
  border-radius: 8px;
  border-bottom-left-radius: 2px;
  max-width: 97%;
  margin-left: 10px;
  animation: floatup 0.5s forwards;
  margin-bottom: 15px;
}

.statusTextProgress {
  color: #1e6218;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  font-weight: normal;
  font-size: 12px;
  text-align: left;
}

.statusTextProgress span {
  line-height: 1.5em;
  display: inline-block;
  background: #e0e0e0;
  padding: 10px;
  border-radius: 8px;
  border-bottom-left-radius: 2px;
  max-width: 97%;
  margin-left: 10px;
  animation: floatup 0.5s forwards;
  margin-bottom: 15px;
}

.errorStatusText {
  color: #9c0d0d;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  font-weight: normal;
  font-size: 10px;
  text-align: left;
}

.errorStatusText span {
  line-height: 1.5em;
  display: inline-block;
  background: #e0e0e0;
  padding: 10px;
  border-radius: 8px;
  border-bottom-left-radius: 2px;
  max-width: 97%;
  margin-left: 10px;
  animation: floatup 0.5s forwards;
  margin-bottom: 15px;
}

.errorText {
  color: #9c0d0d;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  font-weight: normal;
  font-size: 16px;
  text-align: left;
}

.errorText span {
  line-height: 1.5em;
  display: inline-block;
  background: #edcdcd;
  padding: 10px;
  border-radius: 8px;
  border-bottom-left-radius: 2px;
  max-width: 97%;
  margin-left: 10px;
  animation: floatup 0.5s forwards;
  margin-bottom: 15px;
}

@keyframes floatup {
  from {
    transform: translateY(14px);
    opacity: 0;
  }
  to {
    transform: translateY(0px);
    opacity: 1;
  }
}

@media screen and (max-width: 600px) {
  .full-chat-block {
    width: 100%;
    border-radius: 0px;
  }
  .chat-bar-collapsible {
    position: fixed;
    bottom: 0;
    right: 0;
    width: 100%;
  }
  .collapsible {
    width: 100%;
    border: 0px;
    border-top: 3px solid white;
    border-radius: 0px;
  }
}


.move-left {
  margin-left: -10px; /* Move the block 10px to the left */
}

.buttons-container {
  margin-left: -10px; /* Move the buttons 10px to the left */
}

.centered-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  border-left: 1px solid #b3abab; /* Change color as needed */
  padding-right: 10px; /* Add some space between the border and the content */
  margin-right: 10px; /* Add some space between the border and the next element */
}

.border-right {
  border-right: 1px solid #6565d5; /* Change color as needed */
  padding-right: 10px; /* Add some space between the border and the content */
  margin-right: 10px; /* Add some space between the border and the next element */
}


.custom-button {
  margin: 5px;
  padding: 2px 5px; /* Reduced padding */
  background-color: #4CAF50; /* Define the green color here */
  color: white;
  box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.2);
  border: none;
  cursor: pointer;
  font-size: 9px; /* Reduced font size */
  height: auto; /* Remove fixed height */
}