:root {
  --white: #fff;
  --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;
  --brand-purple: #ab68ff;
  --button-disabled: #D7D7D7;
  --button-enabled: #000;
  --text-primary: var(--text-gray-950);
  --text-secondary: #5d5d5d;
}


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.ltr {
  flex-direction: row-reverse;
}

.hidden {
  display: none;
}

#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;
  flex-direction: row;
  width: 95%;
  justify-content: space-between;
  align-items: center;
  padding: 16px;
  z-index: 2;
  background-color: var(--white);
  position: sticky;
  top: 0;
}

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

#logo {
  height: 36px;
  background-image: url(resources/img/logo.png);
  width: 150px;
  background-size: cover;
  background-repeat: no-repeat;
  margin-left: 12px;
}

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

#header-buttons.ltr {
  order: 1;
  margin-left: 12px;
}

#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;
  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;
}

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

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

.model-item.ltr {
  flex-direction: row-reverse;
}

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

.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;
}

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

#chatbar.ltr {
  flex-direction: row-reverse;
}

#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: 666px;
  outline: none;
}

#chatbar-input.ltr {
  text-align: right;
}

.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: 86%;
  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;
  font-size: larger;
  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-left: 8%;
  margin-right: 8%;
  width: 90%;
  font-size: large;
}

#messages-container.ltr {
  text-align: right;
}


.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%;
}

.message-text {
  width: 100%;
}

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

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

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

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

.sidebar-container.ltr {
  text-align: right;
}

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

#sidebar-header.ltr {
  flex-direction: row-reverse;
}

#sidebar-hide {
  cursor: pointer;
}

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

.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;
}

.sidebar-link.ltr {
  flex-direction: row-reverse;
}

.sidebar-link:hover {
background-color: var(--gray-100)
}

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

.sidebar-link-text {
color: var(--gray-700);
font-size: large;
font-weight: 350;
flex: 1;
}

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

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

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

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

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

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

.prompt-link {
height: 36px;
}

.sidebar-subheading {
color: var(--text-primary);
font-weight: 600;
font-size: larger;
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;
}


@media (max-width: 768px) {
  #hamburger-menu {
    display: block;
  }

  #sidebar {
    display: none;
    position: fixed;
    z-index: 3;
    left: 0;
    width: 66%;
    box-shadow: 0 10px 15px -3px rgba(0,0,0,.1),0 4px 6px -4px rgba(0,0,0,.1);
  }

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

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

  #sidebar-hide {
    display: none;
  }

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

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

  #chatbar {
    position: fixed;
    min-width: 80%;
    bottom: 30px;
  }

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

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

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

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

  .disclaimer {
    font-size: 12px;
  }
}

/* Style for the loading dots container */
.loading-dots {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 0;
}

/* Style for each dot */
.loading-dot {
    width: 10px;
    height: 10px;
    margin: 0 4px;
    background-color: #005430;
    border-radius: 50%;
    animation: bounce 1.4s infinite ease-in-out both;
}

/* Delay the animation for each dot */
.loading-dot:nth-child(1) {
    animation-delay: -0.32s;
}

.loading-dot:nth-child(2) {
    animation-delay: -0.16s;
}

/* Keyframes for the bouncing animation */
@keyframes bounce {
    0%, 80%, 100% {
        transform: scale(0);
    }
    40% {
        transform: scale(1.0);
    }
}
