body {
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 16px;
    margin: 0;
    padding: 0;
    position: relative;
    background-color: #262626;
    color: lightgrey;
    line-height: 28px;
    font-weight: 400;
}
#sidebar {
    width: 400px; /* Expanded width */
    height: 100vh;
    background-color: #1a1a1a;
    color: white;
    transition: width 0.3s;
    overflow: hidden;
    position: fixed; /* Absolute positioning */
    left: 0; /* Aligns to the left of the page */
    top: 0; /* Aligns to the top of the page */
}
#sidebar.collapsed {
    width: 0; /* Collapsed width */
    padding: 0;
    color: transparent;
}
#sidebar.expanded {
    width: 400px; /* Collapsed width */
}
#sidebar.collapsed > p {
    color: transparent;
}
#sidebar > p {
    color: grey;
    font-size: 15px;
    font-weight: 600;
    margin-top: 100px;
}
select {
  position: fixed;
  top: 20px;
  right: 20px;
  height: 30px;
  widows: 90px;
  background-color: #2f2f2f;
  color: white;
}
#newconversation {
    background-color: #2f2f2f;
    border: none;
    color: grey;
    height: 50px;
    width: 280px;
    border-radius: 30px;
    font-size: 20px;
    position: absolute;
    left: 60px;
    top: 70px;
}
#newconversation:hover {
    transition: background-color 0.3s;
    background-color: #3e3e3e;
}
#newconversation:active {
    transition: background-color 0.3s;
    background-color: #2f2f2f;
}
.deletebtn {
    display: inline;
    position: relative;
    left: -50px; /* Adjust as needed */
    border-radius: 10px;
    background-color: #363636;
    color: white;
    border: none;
    height: 20px;
}
#sidebar > * {
    margin: 0;
    text-align: center;
    white-space: nowrap;
    list-style-type: none;
    user-select: none;
    transition: color 0.1s;
}
#sidebar > ul {
    padding: 5px 15px 15px 15px;
}
#sidebar > ul > li {
    padding: 10px;
    transition: background-color 0.3s;
    border-radius: 5px;
    display: inline-block;
    width: calc(100% - 20px);
}
#sidebar > ul > li:hover {
    background-color: rgb(72, 72, 72);
}
#sidebar > ul > li:active {
    background-color: rgb(47, 47, 47);
}
#toggleBtn {
    cursor: pointer;
    padding: 10px;
    background-color: transparent;
    color: white;
    border: none;
    position: fixed; /* Fixed position for visibility */
    top: 10px;
    left: 10px; /* Initially placed at the top-left */
    z-index: 1000; /* Ensures it is above other elements */
    transition: left 0.3s;
}
#content {
    width: 100%; /* Set margin when sidebar is expanded */
    height: calc(100% - 70px);
    transition: width 0.3s; /* Smooth transition */
    position: fixed;
    right: 0;
    top: 0;
    overflow-y: auto;
    overflow-x: hidden;
}
/* Scrollbar */
::-webkit-scrollbar {
    width: 15px;
}

/* Track */
::-webkit-scrollbar-track {
    background: #1a1a1a;
}

/* Handle */
::-webkit-scrollbar-thumb {
    -webkit-border-radius: 10px;
    border-radius: 10px;
    background: #262626;
    border: 2.5px solid transparent; /* Create a border */
    background-clip: padding-box; /* Only apply background to padding */
}
#content.expanded {
    width: calc(100% - 400px); /* Adjust margin when sidebar is collapsed */
}
/* body {
    background-color: #323232;
    color: lightgrey;
    margin-bottom: 70px;
    font-family: ui-sans-serif, -apple-system, system-ui, Segoe UI, Helvetica, Apple Color Emoji, Arial, sans-serif, Segoe UI Emoji, Segoe UI Symbol;
} */
footer {
    background-color: #525252;
    transition: width 0.3s; /* Smooth transition */
    position: fixed;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 70px;
}
footer.expanded {
    width: calc(100% - 400px);
}
.conversation {
    padding-bottom: 100px;
    max-width: 800px;
    margin: 0 auto; /* This centers the element horizontally */
}
.aimessage {
    margin-top: 10px;
    padding: 10px;
    border-radius: 5px;
    width: 100%;
    display: block; /* Ensure it's on its own line */
    clear: both; /* Avoid overlapping with user messages */
}
.usermessage {
    margin-top: 10px;
    background-color: #525252;
    padding: 10px 20px;
    border-radius: 20px;
    display: block;  /* Ensure it's on its own line */
    max-width: 80%;
    float: right; /* Aligns the message to the right */
    clear: both; /* Avoid overlapping with AI messages */
    margin-bottom: 10px;
}
p {
    margin-top: 0;
    margin-bottom: 0;
}
code {
    background-color: black;
    padding: 3px;
    border-radius: 3px;
    line-height: 18px;
}
pre {
    width: calc(100% - 30px);
    line-height: 20px;
    background-color: black;
    padding: 10px;
    border-radius: 5px;
    overflow-x: auto;
}
code[class] {
    background-color: transparent;
}
#question {
    background-color: #424242;
    position: absolute;
    bottom: 15px;
    right: calc(25% - 45px);
    width: 50%;
    height: 40px;
    border-radius: 30px;
    color: white;
    padding-left: 20px;
    border: none;
    outline: none;
    padding-right: 70px;
}
.submitbutton {
    background-color: #727272;
    position: absolute;
    bottom: 19px;
    right: calc(25% - 40px);
    width: 60px;
    height: 34px;
    border-radius: 30px;
    color: white;
    border: none;
    outline: none;
}
.submitbutton:active {
    background-color: #828282;
}
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active{
    -webkit-box-shadow: 0 0 0 30px #424242 inset !important;
    -webkit-text-fill-color: white !important;
}