.message-box {
  padding: 10px;
  /* border-radius: 15px; */
  margin: 3px 0;
  margin-bottom: 30px;
  /* display: inline-block; */
  min-width: 300px;
  max-width: 100%;
  position: relative;
}
.message-box::before {
  content: "";
  position: absolute;
  top: 0; /* Align with the top of the message-box */
  left: -100px; /* Extend 10px to the left */
  right: -100px; /* Extend 10px to the right */
  bottom: 0; /* Align with the bottom of the message-box */
  background-color: inherit; /* Inherit the background color from the message-box */
  z-index: -1; /* Place it behind the message-box content */
}
.message-text {
  overflow-wrap: anywhere;
}

.user-message {
  /* text-align: left;
  float: right;
  clear: both; */
  max-width: 100%;
}

.message-action {
  margin-left: 4px;
  cursor: pointer;
}

.user-message > .message-box {
  background-color: #3f4247;
  background-size: 150% 150%;
}

.user-message span.message-action {
  display: none;
}

.response-message {
  /* text-align: left;
  float: left;
  clear: both; */
  max-width: 100%;
}

.response-message > .message-box {
  background-color: #30343f;
  background-size: 150% 150%;
}

code {
  color: inherit !important;
}

.language-mermaid svg {
  max-width: 100%;
}

.chat-info {
  font-size: medium;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

body {
  font-family: Arial, sans-serif;
}

#chat-box {
  height: 72vh;
  overflow-y: auto;
}

.selected-provider {
  box-shadow: 0 0 8px #a100ff, 0 0 12px #a100ff inset;
  color: #a100ff;
}

#providerList {
  overflow-y: scroll;
  max-height: 40vh;
  scrollbar-width: none; /* For Firefox */
  -ms-overflow-style: none; /* For Internet Explorer and Edge */

  /* Webkit */
  &::-webkit-scrollbar {
    display: none;
  }
}

.no-border {
  border: none !important;
  border-bottom: 4px solid #ced4da;
}

.file-upload-provider-present {
  display: none;
}
.text-provider-present {
  display: none;
}

.text-wrap {
  white-space: pre-wrap; /* Allows text to wrap to the next line as needed */
  word-break: break-word; /* To prevent overflow and ensure wrapping */
}

#conversations-list {
  overflow-y: scroll;
  max-height: 75vh;
  scrollbar-width: none; /* For Firefox */
  -ms-overflow-style: none; /* For Internet Explorer and Edge */

  /* Webkit */
  &::-webkit-scrollbar {
    display: none;
  }
}

.conversation-item {
  cursor: pointer;
}

.refreshButton {
  cursor: pointer;
}

img {
  max-height: 450px;
}

.code-container {
  position: relative;
}

.code-copy-button {
  position: absolute;
  right: 0.5em;
  top: 1.5em;
  z-index: 10; /* Make sure the button is above the code block */
  cursor: pointer; /* Indicate the button is clickable */
}

/* You may want to adjust these for better styling and visibility */
.code-copy-button i {
  font-size: 1em;
  color: white;
  background-color: #22272e;
  padding: 3px;
  border-radius: 3px;
}

.conversationsList {
  cursor: pointer;
}

/* Add this CSS to your stylesheet */
.search-bar {
  padding: 0.25rem 0.5rem;
  font-size: 1rem;
  line-height: 1.5;
  color: #ffffff;
  background-color: #343a40;
  background-clip: padding-box;
  border: 1px solid #6c757d;
  border-radius: 0.25rem;
  margin-left: 1rem; /* Adjust the margin as per design */
  margin-top: -0.5rem; /* Adjust the vertical margin as per design */
}
