body {
    font-family: 'circular';
    background-color: #f9f9f9;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    background-color: #000;
    display: flex;
    flex-direction: row;
  }
  
  .chat-container {
    max-width: 100%;
    width: 100%;
    height: 88vh;
    background-color: rgba(10, 14, 14, 0.95);
    border-radius: 10px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    margin-left: 15px;
  }
  
  .chat-messages {
    flex-grow: 1;
    margin-bottom: 20px;
    padding: 10px;
    background-color: #131719;
    border-radius: 10px;
    overflow-y: auto;
    box-shadow: rgba(255, 255, 255, 0.1) 0px 0px 15px 5px;

  }
  
  .message {
    display: flex;
    margin-bottom: 10px;
  }
  
  .message.user {
    justify-content: flex-end;
  }
  
    
  .message.system .message-content {
    color: #ffffff;
    font-family: 'circular';
    max-width: 70%;
    padding: 15px;
    margin-top: 10px;
    position: relative;
    overflow-x: auto;
    word-wrap: break-word;
}



  .message .message-content.system, .terminal-like {
    background-color: #000;
    color: #ffffff;
    box-shadow: rgba(255, 255, 255, 0.1) 0px 0px 15px 5px;
    border-radius: 30px;
    border-top-left-radius:0px;
  }
  
  .message .timestamp {
    font-size: 0.8em;
    color: #999;
    margin-left: 10px;
  }
  
  .chat-input {
    display: flex;
    align-items: center;
    gap: 10px;
  }
  
  .chat-input input[type="url"],
  .chat-input input[type="text"] {
    width: 100%;
    padding: 10px;
    box-shadow: rgba(255, 255, 255, 0.2) 0px 0px 15px 5px;
    border-style: groove;
    border-radius: 30px;
    background: #131719;
    color: #fff;
    padding-left: 20px;
  }

  .chat-input input::placeholder {
    color: #fff;
  }
  
  .chat-input button {
    padding: 10px 30px;
    border: none;
    background-color: #fff;
    color: #000;
    border-radius: 20px;
    cursor: pointer;
    display: flex;
    gap: 10px;
  }
  
  .chat-input button:hover {
    background-color: #131719;
    color: #fff;
    border-style: groove;
    border-width: 1px;
  }
  
  .url-input {
    width: -webkit-fill-available;
    padding: 10px;
    color: #fff;
    border-radius: 30px;
    margin-bottom: 10px;
    background: #131719;
    border-style: groove;
    padding-left: 20px;
  }
  .url-input::placeholder {
    color: white;
  }
  
  h1 {
    align-self: center;
    color: white;
  }
  
  /* Terminal-like background for code blocks */
  .terminal-like {
    color: #ffffff; /* White text */
    font-family: 'circular';
    border-radius: 5px;
    max-width: 70%;
    padding: 15px;
    margin-top: 10px;
    position: relative;
    overflow-x: auto;
    word-wrap: break-word;
    border-radius: 30px;
    border-top-left-radius:0px;
  }
  
  .terminal-like pre {
    margin: 0;
    white-space: pre-wrap;
    overflow-wrap: break-word;
    font-family: 'circular';
  } 
  
  /* Styling for message content */
  .message-content {
    margin-bottom: 10px;
  }
  
  .timestamp {
    font-size: 10px;
    color: gray;
  }

  .message.user .message-content {
    background-color: #fff;
    color: #000;
    font-family: 'circular';
    border-radius: 30px;
    border-top-right-radius: 0px;
    max-width: 70%;
    padding: 15px;
    margin-top: 10px;
    position: relative;
    overflow-x: auto;
    word-wrap: break-word;
}
  
/* AI Avatar */
.avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 10px;
    margin-left: 10px;
    flex-shrink: 0;

  }
  

  /* Message container for alignment */
  .message-container {
    display: flex;
    align-items: normal;
  }

  .btn-back {
    background-color: transparent;
    color:#fff;
    border: none;
    padding: 10px 15px;
    font-size: 16px;
    cursor: pointer;
    display: inline-flex;
    align-self: flex-start;
    margin-bottom: 10px;
    position: absolute;
  }
  
  .btn-back i {
    margin-right: 5px;
  }
  
  .sidebar {
    height: 80vh;/* Ensure the sidebar takes full available height */
    width: 40vw;
    margin-top: 5vh;
    display: flex;
    flex-direction: row;
    transition: width 0.8s ease; /* Smooth collapsing effect */
  }
  
  .text-container {
    flex: 1; /* Allow the container to grow and fill available space */
    display: flex;
    box-shadow: (255, 255, 255, 0.1) 0px 0px 15px 5px;
    transition: opacity 0.8s ease; /* Smooth fade-out effect */
  }
  
  .full-height-textbox {
    width: 100%; /* Take full width of the container */
    height: 100%; /* Take full height of the container */
    resize: none; /* Optional: prevent resizing if not desired */
    box-sizing: border-box; /* Include padding and border in the element's dimensions */
    padding: 8px; /* Optional: add padding inside the textbox */
    border-radius: 20px;
    background-color: #131719;
    color: #fff;
    margin-top: 5px;
  }


  .collapse-button-sidebar {
    cursor: pointer;
    background-color: #000;
    color: #fff;
    width: 10%;
    writing-mode: vertical-rl; /* Rotate text vertically from right to left */
    text-orientation: mixed; /* Ensure text remains upright */
    transform: rotate(180deg); /* Adjust direction for readable text */
    border-style: none;
    font-size: 20px;
  }
  
  .sidebar.collapsed {
    width: 1%;
  }
  
  .sidebar.collapsed .text-container {
    opacity: 0; /* Hide the text-container */
    pointer-events: none; /* Disable interaction */
  }
  
  .save-container {
    width: 100%;
  }
  
  button#save-button {
    width: 90%;
    padding: 10px 30px;
    margin-top: 15px;
    border: none;
    background-color: #fff;
    color: #000;
    border-radius: 20px;
    cursor: pointer;
}

button#save-button:hover {
    background-color: #131719;
    color: #fff;
    border-style: groove;
    border-width: 1px;
    cursor: pointer;
}

