:root {
  --white: #fff;
  --main-primary: #3730a3;
  --main-tertiary: #1e1b4b;
  --main-secondary: #f4f4f4;
  --black: #000;
  --gray-50: #f9f9f9;
  --gray-100: #ececec;
  --gray-200: #e3e3e3;
  --gray-300: #cdcdcd;
  --gray-400: #b4b4b4;
  --gray-500: #9b9b9b;
  --gray-600: #676767;
  --gray-700: #424242;
  --gray-750: #2f2f2f;
  --gray-800: #212121;
  --gray-900: #171717;
  --gray-950: #0d0d0d;
  --red-500: #ef4444;
  --red-700: #b91c1c;
  --button-disabled: #D7D7D7;
  --button-enabled: #000;
  --text-primary: var(--text-gray-950);
  --text-secondary: #5d5d5d;
  --link: #a5b4fc;
}


body {
  margin: 0;
  font-family: "Inter", sans-serif;
  font-style: normal;
}

a {
  color: var(--text-secondary);
}

#main {
  display: flex;
  min-height: 100vh;
  justify-content: center;
}

#main.rtl {
  direction: rtl;
}

#content {
  display: flex;
  background-color: var(--white);
  flex: 1;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 90vh;
  width: 100%;
  margin-bottom: 86px;
  overflow-x: hidden;
  overflow-y: auto;
  max-height: 100%;
}

.content-header {
  display: flex;
  position: sticky;
  flex-direction: row;
  column-gap: 12px;
  width: 95%;
  justify-content: space-between;
  align-items: center;
  padding: 16px;
  z-index: 2;
  background-color: var(--white);
  top: 0;
}

.content-header.rtl {
  direction: rtl;
}

#header-buttons > svg {
  padding-left: 4px;
  padding-right: 4px;
  color: var(--text-secondary);
  cursor: pointer;
}

#logo {
  color: var(--text-secondary);
  font-size: 18px;
  font-weight: 600;
  margin-left: 12px;
}

#logo > a {
  text-decoration: none;
}

#hamburger-menu {
  display: none;
  width: 24px;
  height: 24px;
  cursor: pointer;
  margin-left: 16px;
}

#model-dropdown-toggle {
  margin-left: 8px;
  cursor: pointer;
}

#model-dropdown {
  position: absolute;
  top: 58px;
}

#model-dropdown-container {
  border: 1px solid rgba(0, 0, 0, 0.1);
  width: 340px;
  height: 44vh;
  background-color: var(--white);
  border-radius: 24px;
  box-shadow: 0 10px 15px -3px rgba(0,0,0,.1),0 4px 6px -4px rgba(0,0,0,.1);
  z-index: 1;
  padding: 8px;
  color: #000;
  overflow-y: scroll;
}

.model-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-left: 8px;
  margin-right: 8px;
  height: 32px;
  margin: 8px;
  padding: 12px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 300;
  cursor: pointer;
}

.model-item:hover {
  background-color: #f5f5f5;
}

.model-item.rtl {
  direction: rtl;
}

.language-select-container {
  margin-left: 8px;
  margin-right: 12px;
}

#language-select {
  border-radius: 16px;
  border-color: rgba(0, 0, 0, 0.1);
  padding: unset;
  text-align: center;
  font-size: 16px;
  text-transform: uppercase;
  height: 32px;
}

.avatar {
  border-radius: 100%;
  overflow: hidden;
}

.avatar.user {
  filter: saturate(0);
  cursor: pointer;
}

.avatar-chat {
  margin-left: 8px;
  margin-right: 8px;
  width: 32px;
}

.settings-menu {
  display: none;
  border: 1px solid rgba(0, 0, 0, 0.1);
  max-width: 320px;
  min-width: 280px;
  flex-direction: column;
  z-index: 3;
  background-color: var(--white);
  border-radius: 10px;
  padding: 8px;
  position: fixed;
  top: 52px;
  right: 12px;
  box-shadow: rgba(0, 0, 0, 0) 0px 0px 0px 0px, rgba(0, 0, 0, 0) 0px 0px 0px 0px, rgba(0, 0, 0, 0.1) 0px 10px 15px -3px, rgba(0, 0, 0, 0.1) 0px 4px 6px -4px;
}

.settings-option {
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
  align-items: center;
  border-radius: 6px;
  gap: 8px;
  row-gap: 10px;
  column-gap: 10px;
  padding: 12px;
  cursor: pointer;
  height: 32px;
}

.settings-option:hover {
  background-color: var(--gray-50);
}

.settings-option-icon {
  color: var(--text-secondary);
}

.settings-separator {
  border-bottom-color: var(--gray-200);
  border-bottom-width: 1px;
  border-bottom-style: solid;
  width: 100%;
  height: 10px;
}

.modal {
  width: 100%;
  height: 100%;
  position: fixed;
  display: none;
  background-color: #00000075;
  top: 0;
  left: 0;
  justify-content: center;
  align-items: center;
  z-index: 3;
}

.modal-container {
  position: absolute;
  width: 50%;
  height: 50%;
  padding: 32px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background-color: var(--white);
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 10px;
  z-index: 1;
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  cursor: pointer;
}

.settings-modal-content {
  padding: 8px;
  overflow: auto;
  flex: 1;
}

.settings-modal-content > li {
  list-style-image: none;
  margin-bottom: 8px;
}

.settings-modal-option {
  display: flex;
  flex-direction: row;
  gap: 12px;
  justify-content: flex-start;
  align-items: center;
  margin-bottom: 12px;
}

.settings-modal-option-label {
  font-weight: bold;
}

.settings-modal-option-value {
  display: flex;
  flex-direction: row;
  gap: 12px;
  align-items: center;
  justify-content: center;
  margin-left: 12px;
}

.settings-modal-settings-value {
  width: 5ch;
  text-align: right;
}

.theme-circle {
  width: 32px;
  height: 32px;
  border-radius: 100px;
  cursor: pointer;
  box-sizing: border-box;
  border: 2px solid var(--gray-200);
}

.theme-circle:hover {
  border-color: var(--gray-400);
}

.theme-circle.dark-blue {
  background: linear-gradient(to top right, #1e1b4b 50%, #3730a3 50%);
}

.theme-circle.light-blue {
  background: linear-gradient(to top right, #0161ef 50%, #fff 50%);
}

.theme-circle.miami {
  background: linear-gradient(to top right, #01efd0 50%, #ef04ca 50%);
}

.modal-buttons-container {
  display: flex;
  flex-direction: row;
  justify-content: flex-end;
  gap: 12px;
}

.modal-buttons-container > button {
  border-radius: 8px;
  padding: 8px;
  width: 64px;
  margin-top: 8px;
}

.button-primary {
  background-color: var(--main-tertiary);
  color: var(--white);
  border: none;
  cursor: pointer;
}

.button-secondary {
  background-color: var(--gray-200);
  color: var(--text-secondary);
  border: 1px solid var(--gray-500);
  cursor: pointer;
}

.modal-option-value > select {
  font-size: 16px;
  height: 32px;
  padding: 5px;
}

.chatbar-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 98vh;
  z-index: 1;
}

h1 {
  font-weight: 500;
  font-size: 30px;
  margin-bottom: 28px;
  text-align: center;
}

#chatbar {
  display: flex;
  background-color: var(--main-secondary);
  height: 52px;
  width: 60%;
  border-radius: 26px;
  align-items: center;
  justify-content: space-between;
  padding-left: 16px;
  padding-right: 16px;
  column-gap: .5rem;
}

#chatbar.rtl {
  direction: rtl;
}

#chatbar.send-to-bottom {
  position: fixed;
  bottom: 30px;
}

#chatbar-input {
  background-color: unset;
  border: none;
  margin-top: 8px;
  margin-bottom: 8px;
  font-size: 16px;
  width: 100%;
  outline: none;
}

#chatbar-input.rtl {
  direction: rtl;
}

.chatbar-send {
  background-color: var(--button-disabled);
  border-radius: 100px;
}

.chatbar-send.enabled {
  background-color: var(--button-enabled);
  cursor: pointer;
}

#chat-suggestions-container {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 28px;
  column-gap: .5em;
  width: 70%;
  max-width: 768px;
  min-width: 70%;
}

.chat-suggestion {
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  column-gap: .5em;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 28px;
  color: var(--gray-500);
  padding: 8px 12px;
  max-width: 100%;
  height: 100%;
  width: 100%;

  --tw-shadow: 0 0 2px 0 rgba(0,0,0,.05),0 4px 6px 0 rgba(0,0,0,.02);
  --tw-shadow-colored: 0 0 2px 0 var(--tw-shadow-color),0 4px 6px 0 var(--tw-shadow-color);
  --tw-ring-offset-shadow: 0 0 #0000;
  box-shadow: var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)
}

.chat-suggestion:hover {
  background-color: var(--gray-50);
}

.chat-suggestion-text {
  display: inline-block;
  text-align: center;
}

#messages-container {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 70px;
  margin-left: 8%;
  margin-right: 8%;
  width: 90%;
  font-size: large;
  z-index: 0;
}

#messages-container.rtl {
  direction: rtl;
}

.message {
  position: relative;
  display: flex;
  flex-direction: row;
  max-width: 70%;
  min-width: 70%;
  margin-top: 12px;
  overflow-wrap: break-word;
  border-radius: 1.5rem;
  padding-top: .625rem;
  padding-bottom: .625rem;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.message.user {
  background-color: var(--main-secondary);
  margin-left: 25%;
  right: 5%;
}

.message.info {
  color: var(--text-secondary);
  font-style: italic;
  font-size: small;
  text-align: center;
  width: 100%;
  min-width: 100%;
  max-width: 100%;
  margin-left: 0;
  margin-right: 0;
}

.message-text {
  width: 100%;
}

.message-text > h1 {
  font-size: x-large;
  font-weight: 600;
  text-align: unset;
}

.message-text > h2 {
  font-size: larger;
  font-weight: 600;
}
g
.message-text > h3 {
  font-size: large;
  font-weight: 600;
}

.fade-in {
  animation: dissolveIn 1.5s ease-out forwards;
}

@keyframes dissolveIn {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

.avatar {
  width: 32px;
  height: 32px;
}

#spinner {
  width: 100px;
  height: 50px;
  margin: auto;
}

.disclaimer {
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 300;
  padding: 8px;
  position: fixed;
  bottom: 0px;
  text-align: center;
}

#sidebar {
  background-color: var(--main-tertiary);
  width: 260px;
  transition: width 0.3s ease-in-out;
}

.sidebar-container {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 16px;
}

.sidebar-container.rtl {
  direction: rtl;
}

#sidebar-header {
display: flex;
justify-content: space-between;
padding-inline-start: .25em;
padding-inline-end: .25em;
padding-top: .3em;
height: 48px;
color: var(--link);
}

#sidebar-header.rtl {
  direction: rtl;
}

#sidebar-hide {
  cursor: pointer;
}

#sidebar-close-mobile {
  display: none;
  cursor: pointer;
}

.sidebar-logo {
  width: 16px;
  height: 16px;
  filter: grayscale(1);
}

.sidebar-links-container {
display: flex;
align-items: center;
justify-content: center;
flex-direction: column;
}

.sidebar-link {
display: flex;
flex-direction: row;
align-items: center;
justify-content: space-between;
width: 95%;
gap: 10px;
height: 40px;
border-radius: 8px;
padding-left: 8px;
padding-right: 8px;
cursor: pointer;
}

a.sidebar-link {
  text-decoration: none;
}

.sidebar-link.avatar {
  display: none;
  width: 85%;
  margin: auto;
  color: white;
}

.sidebar-link.rtl {
  direction: rtl;
}

.sidebar-link:hover {
  background-color: var(--main-primary);
}

.sidebar-new-chat-icon {
  color: var(--link);
}

.sidebar-link-image {
  max-width: 16px;
  max-height: 16px;
  color: var(--white);
}

.sidebar-link-text {
  color: var(--white);
  font-size: 14px;
  font-weight: 350;
  flex: 1;
}

.sidebar-link-text a {
  text-decoration: none;
}

.sidebar a:visited {
  color: var(--gray-700);
}

.sidebar-link-option {
color: var(--white);
visibility: hidden;
padding-right: 8px;
}

.sidebar-link:hover .sidebar-link-option {
visibility: visible;
}

#sidebar-shadow {
  position: fixed;
  width: 100%;
  height: 100%;
  background-color: #00000025;
  overflow: hidden;
  z-index: 3;
  touch-action: pan-x;
}

.nothing-here {
  color: var(--white);
  font-style: italic;
  text-align: center;
  cursor: unset;
}

#nothing-here:hover {
  background-color: unset;
  cursor: unset;
}

.prompt-history-list {
margin-top: 20px;
}

.prompt-link {
height: 36px;
}

.sidebar-subheading {
  color: var(--link);
  font-weight: 600;
  font-size: 12px;
  margin-top: 20px;
  padding: 8px;
}

#sidebar-prompt-history {
display: flex;
justify-content: center;
flex-direction: column;
}

#back-to-search {
  color: var(--link);
  cursor: pointer;
  margin-top: 8px;
}

.typing-animation {
  width: 27ch;
  white-space: nowrap;
  overflow: hidden;
  border-right: 4px solid #000;
  animation: typing 2s steps(27) forwards, blink 0.5s step-end 4, hide-cursor 0s 2s forwards;
}

@keyframes typing {
  from { width: 0; }
  to { width: 27ch; }
}

@keyframes blink {
  50% { border-color: transparent; }
  100% { border-color: transparent; }
}

@keyframes hide-cursor {
  100% { border-color: transparent; }
}

pre {
  background-color: var(--gray-100);
  white-space: break-spaces;
  padding: 16px;
  border-radius: 10px;
}

.close-this {
  display: flex;
}

.hidden {
  display: none;
}

@media (max-width: 768px) {
  #avatar {
    display: none;
  }

  #hamburger-menu {
    display: block;
  }

  #sidebar {
    display: none;
    position: sticky;
    z-index: 10;
    left: 0;
    width: 66%;
    overflow-y: auto;
    box-shadow: 0 10px 50px -3px rgba(0,0,0,.2),0 4px 6px -4px rgba(0,0,0,.1);
  }

  #sidebar.rtl {
    left: unset;
    right: 0;
  }

  #sidebar.show {
    position: absolute;
    display: block;
    width: 55%;
    height: 100vh;
  }

  #sidebar-hide {
    display: none;
  }

  #sidebar-close-mobile {
    display: block;
  }

  .sidebar-link.avatar {
    display: flex
  }

  #avatar-footer {
    position: absolute;
    bottom: 32px;
    margin-left: 8px;
  }

  #content {
    position: absolute;
    justify-content: flex-start;
  }

  .content-header {
    position: fixed;
    width: 100%;
    background-color: var(--main-tertiary);
    column-gap: 0;
  }

  #model-dropdown-toggle, #hamburger-menu {
    color: var(--white);
  }

  .message {
    max-width: 85%;
    min-width: 85%;
  }

  .message.user {
    margin-left: 12%;
  }

  #chatbar {
    position: fixed;
    min-width: 80%;
    bottom: 30px;
    z-index: 10;
    touch-action: pan-x;
  }

  #chat-suggestions-container {
    flex-direction: column;
    row-gap: 8px;
    width: 80%;
    min-width: 80%;
  }

  .chat-suggestion {
    font-size: larger;
    min-height: 42px;
    width: 100%;
    min-width: 100%;
  }

  .chatbar-container {
    height: auto;
    margin-top: 100px;
  }

  .chatbar-container.send-to-bottom {
    position: fixed;
    bottom: 0;
  }

  #chatbar-input {
    font-size: 14px;
  }

  .disclaimer {
    font-size: 12px;
    color: var(--text-secondary);
    font-size: 12px;
    font-weight: 300;
    padding: 8px;
    position: fixed;
    bottom: 0px;
    text-align: center;
    background-color: var(--white);
    width: 100%;
    height: 70px;
    display: flex;
    align-items: end;
    justify-content: center;
  }

  #logo > a {
    color: var(--white);
  }

  .modal-container {
    width: 80%;
    height: 75%;
  }

  .settings-modal-option {
    margin-bottom: 15%;
    overflow-x: hidden;
    gap: 0;
  }
}