 .msg-row{
    display: flex;
    align-items: center;
    margin: 40px;
  }
  
  .msg-text{
    background-color: rgba(255, 255, 255, 0.1);
    padding: 20px 40px;
    border-radius: 15px 50px 0px 30px;
    flex-basis: 70%;
    font-weight: 300;
  }
  
  .msg-text h2{
    font-weight: 400;
    font-size: 18px;
    margin-bottom: 10px;
  }
  .msg-text2{
    background-color: rgba(255, 255, 255, 0.1);
    padding: 20px 40px;
    border-radius: 50px 15px 30px 0px;
    flex-basis: 70%;
    font-weight: 300;
  }
  
  .msg-text2 h2{
    font-weight: 400;
    font-size: 18px;
    margin-bottom: 10px;
  }
  
  .msg-row2{
    justify-content: flex-end;
  }
  
  .chatbox{
    height: 85%;
    width: 100%;
    min-width: 250px;
    display: flex;
  }
  
  body {
  
    height: 100vh;
  }
  
  .selector {
    display: flex;
    justify-content: center;
    gap: 1em;
    max-width: 40em;
  }
  
  /* .chat-container {
    background: transparent;
    font-family: 'Roboto', sans-serif;
    border-radius: 0.5em;
    padding: 0.5em 1.25em;
    margin: auto;
    max-width: auto;
    height: 40.5em;
  } */
  
  .chat-header {
    margin-bottom: 1em;
    color: #fff;
  }
  
  .chat-header h2 {
    font-size: 1.25em;
    font-weight: bold;
  }
  

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

  
  .configure-tab::-webkit-scrollbar {
    display: none;
  }
  
  .message {
    padding: 0.625em;
    border-radius: 1em;
    margin-bottom: 0.625em;
    display: flex;
    flex-direction: column;
    color: #fff;
  }
  
  .message-sender {
    font-weight: bold;
    margin-bottom: 0.31em;
  }
  
  .message-text {
    font-size: 1em;
    margin-bottom: 0.31em;
    word-wrap: break-word;
  }
  
  .message-timestamp {
    font-size: 0.75em;
    text-align: right;
  }
  
  .blue-bg {
    background-color: #1c7d31;
  }
  
  .gray-bg {
    background-color: #3d654d;
  }
  
  .chat-input-form {
    display: flex;
    align-items: center;
    margin-top: 1.5em;
    gap: 0.625em;
  }
  
  .chat-input {
    padding: 0.625em;
    border: none;
    border-radius: 0.5em;
    background-color: #f5f5f5;
    color: #333;
    font-size: 1em;
    flex-grow: 1;
  }
  
  .send-button {
    background-color: #16dc5b;
    color: #fff;
    font-size: 1em;
    font-weight: bold;
    border-radius: 50px;
    margin-bottom: 25px;
  }

  /* Create style rules  */
  #configure-column {
    display: none;
  }

  .msg-row{
    display: flex;
    align-items: center;
    margin: 40px;
  }

  .msg-text{
    background-color: rgba(255, 255, 255, 0.1);
    padding: 20px 40px;
    border-radius: 15px 50px 0px 30px;
    flex-basis: 70%;
    font-weight: 300;
  }

  .msg-text h2{
    font-weight: 400;
    font-size: 18px;
    margin-bottom: 10px;
  }

  .msg-text2{
    background-color: rgba(255, 255, 255, 0.1);
    padding: 20px 40px;
    border-radius: 50px 15px 30px 0px;
    flex-basis: 70%;
    font-weight: 300;
  }

  .msg-text2 h2{
    font-weight: 400;
    font-size: 18px;
    margin-bottom: 10px;
  }

  .msg-row2{
    justify-content: flex-end;
  }

  .chatbox{
    height: 85%;
    width: 100%;
    min-width: 250px;
    display: flex;
  }

  body {
    height: 100vh;
  }

  .selector {
    display: flex;
    justify-content: center;
    gap: 1em;
    max-width: 40em;
  }

  .chat-container {
    background: transparent;
    font-family: 'Roboto', sans-serif;
    border-radius: 0.5em;
    padding: 0.5em 1.25em;
    margin: auto;
    /*height: 37.5em;*/
    display: flex;
    flex-direction: column; 
    height: 85vh;
  }

 

  .chat-header {
    margin-bottom: 1em;
    color: #fff;
  }

  .chat-header h2 {
    font-size: 1.25em;
    font-weight: bold;
  }

  #files-column {
      margin-left: -12px;
  }

  .selector.is-flex.is-vcentered button {
    border-radius: 10px;
    font-size: 0.8rem;
    height: 40px;
    margin-top: 15px;
}

.form-container {
  display: flex;
  justify-content: center;
  align-items: center;
}

.buttons {
  display: flex;
  justify-content: center;
}

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

  .chat-messages {
    /*height: 32em;*/
    height: 75vh;
    overflow-y: scroll;
    scrollbar-width: thin;
    scrollbar-color: #a4a4a4 #f2f2f2;
    padding-right: 5px;
    flex-grow: 1; 
    overflow-y: auto;
  }

  #msgs-box {
    height: 35.5rem;
}


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

  .configure-tab {
      height: 37.5em;
    	overflow-y: scroll;
  }

  .files-tab {
    height: 37.5em;
}

  .configure-tab::-webkit-scrollbar {
    display: none;
  }

  #starters button {
    margin: 5px 8px;
}


  .message {
    padding: 0.625em;
    border-radius: 1em;
    margin-bottom: 0.625em;
    display: flex;
    flex-direction: column;
    color: #fff;
  }

  .message-sender {
    font-weight: bold;
    margin-bottom: 0.31em;
  }

  .message-text {
    font-size: 1em;
    margin-bottom: 0.31em;
    word-wrap: break-word;
  }

  .message-timestamp {
    font-size: 0.75em;
    text-align: right;
  }

  .blue-bg {
    background-color: #1c7d31;
  }

  .gray-bg {
    background-color: #3d654d;
  }

  .chat-input-form {
    display: flex;
    align-items: center;
    margin-top: 1.5em;
    gap: 0.625em;
  }

  #origin::placeholder {
    color: #C0C0C0;
}

  #extra-button {
    position: absolute;
    right: 200px;
    border: solid;
  }
  #extra-button2 {
    position: absolute;
    right: 100px;
  }

  #custom-nav-toggler {
    border: none;
    display: grid;
    grid-template-columns: auto auto;
    column-gap: 5px;
  }

  /* #custom-nav-toggler i {
  } */

  #custom-nav-toggler i {
    margin-top: 5px;
    padding-right: 5px;
}

  #custom-nav-toggler:focus {
      box-shadow: none;
  }

  .chat-input {
    padding: 0.625em;
    border: none;
    border-radius: 0.5em;
    background-color: #f5f5f5;
    color: #333;
    font-size: 1em;
    flex-grow: 1;
  }

  .send-button {
    background-color: #1c7d31;
    color: #fff;
    font-size: 1em;
    font-weight: bold;
    border-radius: 50px;
    margin-bottom: 25px;
  }

  .preloader-container {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    flex-direction: column;
  }

  .spinner {
    border: 5px solid #f3f3f3; /* Light grey */
    border-top: 5px solid #1c7d31; /* Green */
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 2s linear infinite;
  }

  @keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
  }

  .message {
    color: white;
    font-size: 18px;
    margin-top: 20px;
  }

  .copy-btn {
    padding: 5px 10px;
    /* margin-top: 5px; */
    /* background-color: #4CAF50; */
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    width: 75px;
  }

  .copy-btn:hover {
    background-color: #45a049;
  }

  .download-button {
    padding: 8px 15px;
    background-color: #4CAF50; /* Green */
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    margin-left: 0px;
  }

  .download-button:hover {
    background-color: #45a049; /* Darker green on hover */
  }

  #content2 {
      scrollbar-color: gray black;
  }

  #content {
      scrollbar-color: gray black;
  }

  #modif-no-shadow {
    box-shadow: none;
    /*border: solid 1px #1D1D1D;*/
    border: solid 1px #e1e1e1;
    /* overflow: hidden; fix cropping of the long messages */
}

#user_submit2 {
  border-radius: 8px;
  padding: 8px;
  width: 55px;
  margin-bottom: 0px;
}

#user_submit {
  border-radius: 8px;
  padding: 8px;
  width: 55px;
  margin-bottom: 0px;
}

#history-bar {
  /*display: grid;*/
  /*grid-template-columns: 80% 20%;*/
  padding: 5px;
}

  @media (min-width: 320px) and (max-width: 480px) {
    .download-button {
      display: none;
    }
    #profile-pic {
      display: none;
    }

    #extra-button {
      display: none;
    }
  }

 

.custom-input {
    border-top: none;
    border-left: none;
    border-right: none;
    border-radius: 0px;
}

/* width */
#text-box-1::-webkit-scrollbar {
  width: 20px;
}

/* Track */
#text-box-1::-webkit-scrollbar-track {
  border-radius: 5px;
  border-radius: solid red 1px;
}
 
/* Handle */
#text-box-1::-webkit-scrollbar-thumb {
  background: slategray; 
  border-radius: 10px;
}

/* Handle on hover */
#text-box-1::-webkit-scrollbar-thumb:hover {
  background-color: aliceblue;
}


/* Custom preloader starts  */

:root {
  --dot-width: 10px;
  --dot-color: #3b5998;
  --speed: 1.5s;
}

.typing {
  position: relative;
  display: flex;
  gap: calc(var(--dot-width) * 0.5);
}

.typing span {
  height: var(--dot-width);
  width: var(--dot-width);
  background: var(--dot-color);
  border-radius: 50%;
  animation: blink var(--speed) infinite;
  animation-fill-mode: both;
}

.typing span:nth-child(2) {
  animation-delay: 0.2s;
}

.typing span:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes blink {
  0% {
    opacity: 0.1;
  }
  20% {
    opacity: 1;
  }
  100% {
    opacity: 0.1;
  }
}


/* Custom preloader ends  */

iframe {
  width: 100%;
  height: 100vh;
  border: none;
  overflow: hidden;
}

.iframe-container {
  position: relative;
  width: 100%;
  padding-bottom: 66.67%; /* 400/600 */
}

.iframe-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  overflow: hidden;
}

.history-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    transition: background-color 0.3s;
}
.history-item:hover {
    background-color: #F0F0F0;
}
body.dark-theme .history-item:hover {
    background-color: #555;
    color: #000;
}
.history-item-text {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.history-item-text a {
    text-decoration: none;
    /* color: #8373fc;  */
    /* font-weight: bold;  */
}
.delete-button {
    background: none;
    border: none;
    color: #7c7c7c;
    cursor: pointer;
    font-size: 1rem;
    transition: color 0.3s;
}
.delete-button:hover {
    color: #CC0000;
}