:root {
  --color-primary: #19c37d;
  --color-secondary: #715fde;
  --color-error: #ef4146;
  --gradient-primary: linear-gradient(90deg,#a29bd4,#989fdd);
  --color-primary: #202123;
  --color-default: #353740;
  --color-secondary: rgba(68,70,84,1);
  --text-color: rgba(236,236,241,1);
  --hover-bg-color: hsla(240,9%,59%,.1);
  --chats-hover-color: rgba(42,43,50,1);
  --active-bg-color: rgba(52,53,65,1);
  --border-radius: 0.375rem;
  --chat-text-color: #d1d5db;
  --legal-footer-height: 120px;
}


body::-webkit-scrollbar {
  display: none;
}

body::-webkit-scrollbar-thumb {
  display: none;
}



* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  font-family: "Sohne", Arial, Helvetica, sans-serif;
}

.page {
  width: 100%;
  height: calc(100vh - var(--legal-footer-height));
  display: flex;
  position: relative;
}

.page-sidebar {
  padding: 66px 10px 10px 10px;
  width: 30%;
  max-width: 300px;
  height: 100%;
  display: flex;
  flex-direction: column;
  background-color: var(--color-primary);
  color: var(--text-color);
  font-size: .875rem;
  line-height: 1.25rem;
  position: relative;
  z-index: 2;
  transition: all linear .2s;
}


.page-sidebar__mobile-close-icon {
  width: 40px;
  height: 40px;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  border: 2px solid #fff;
  position: absolute;
  top: 10px;
  right: -45px;
  z-index: 3;
  cursor: pointer;
  display: none;
}

.page-sidebar__mobile-close-icon svg {
  width: 24px;
  height: 24px;
}

.page-sidebar__mobile-shadow {
  width: calc(100% - 300px);
  height: 100%;
  margin: 0;
  padding: 0;
  position: absolute;
  top: 0;
  right: 0;
  z-index: 2;
  background-color: rgba(52,53,65,.8);
  display: none;
}

.page-sidebar__mobile-shadow.sidebar-open {
  display: block;
}



.page-sidebar svg {
  color: var(--text-color);
  width: 100%;
  height: 100%;
}

.page-sidebar__header {
  width: 100%;
  padding: 10px;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 2;
  background-color: var(--color-primary);
}

.new-chat-button {
  width: 100%;
  height: 46px;
  padding: 0 10px;
  display: flex;
  align-items: center;
  border: 1px solid hsla(0,0%,100%,.2);
  border-radius: var(--border-radius);
  cursor: pointer;
}

.new-chat-button:hover {
  background-color: var(--hover-bg-color);
}

.new-chat-button__icon {
  width: 16px;
  height: 16px;
  margin-right: 10px;
}





.page-sidebar__chats-list {
  width: 100%;
  height: 100%;
}

.chat-item {
  width: 100%;
  height: 44px;
  padding: 0 10px;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  position: relative;
  cursor: pointer;
  border-radius: var(--border-radius);
}

.chat-item:hover {
  background-color: var(--chats-hover-color);
}

.chat-item.active {
  padding: 0 60px 0 10px;
  background-color: var(--active-bg-color);
}

.message-icon, 
.edit-icon,
.delete-icon {
  width: 16px;
  height: 16px;
}


.chat-item .message-icon {
  margin-right: 10px;
}

.active-icons {
  display: flex;
  position: absolute;
  top: calc(50% - 8px);
  right: 10px;
}

.chat-item .active-icons {
  display: none;
}

.chat-item.active .active-icons {
  display: flex;
}

.edit-icon {
  margin-right: 10px;
}

.chat-title {
  width: 100%;
  position: relative;
  white-space: nowrap;
  overflow: hidden;
}

.chat-title .text-shadow {
  width: 2rem;
  height: 100%;
  z-index: 2;
  position: absolute;
  top: 0;
  right: 0;
  background-image: linear-gradient(to left, #202123, rgba(32,33,35,0));
}

.chat-item.active .text-shadow {
  background-image: linear-gradient(to left, #343541, rgba(52,53,65,0));
}

.chat-item:hover .text-shadow {
  background-image: linear-gradient(to left,#2a2b32,rgba(42,43,50,0));
}

.chat-item.active:hover .text-shadow {
  background-image: linear-gradient(to left, #343541, rgba(52,53,65,0));
}



.page-sidebar__footer {
  width: calc(100% - 20px);
  border-top: 1px solid hsla(0,0%,100%,.2);
  padding: 10px 0 0 0;
  position: absolute;
  left: 10px;
  bottom: 0;
}

.settings-items {
  width: 100%;
  display: flex;
  flex-direction: column;
}

.settings-item {
  width: 100%;
  height: 44px;
  padding: 0 10px;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  cursor: pointer;
  border-radius: var(--border-radius);
}

.settings-item:hover {
  background-color: hsla(240,9%,59%,.1);
}

.settings-item-icon {
  width: 16px;
  height: 16px;
  margin-right: 10px;
}

.settings-item-name {
  width: 100%;
}

.settings-item-relise {
  text-align: right;
  color: rgba(52,53,65,1);
  background-color: #fae59e;
  padding: 1px 4px;
  border-radius: var(--border-radius);
}



















.page-chat {
  width: 100%;
  height: 100%;
  padding: 20px 0 0 0;
  color: var(--chat-text-color);
  background-color: var(--color-default);
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}


.page-chat__mobile-header {
  margin: 0;
  padding: 0 15px;
  width: 100%;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid hsla(0,0%,100%,.2);
  background-color: var(--color-default);
  position: absolute;
  top: 0;
  left: 0;
  display: none;
}


.open-mobile-icon {
  margin: 0;
  padding: 0;
  width: 24px;
  height: 24px;
  cursor: pointer;
}

.open-mobile-icon svg {
  width: 100%;
  height: 100%;
}

.page-chat__mobile-header__icon {
  width: 24px;
  height: 24px;
  cursor: pointer;
}

.page-chat__mobile-header__icon svg {
  width: 100%;
  height: 100%;
}


.page-chat__content {
  height: 100%;
  overflow-y: scroll;

}

.page-chat__block {
  padding-top: 30px;
  height: fit-content;
  padding-bottom: 340px;
}


.page-chat__content::-webkit-scrollbar {
  display: none;
}

.page-chat__content::-webkit-scrollbar-thumb {
  display: none;
}


.chat-message {
  padding: 0 15px;
  background-color: var(--color-secondary);
  margin-bottom: 30px;
}

.chat-message__content {
  padding: 20px 0;
  margin: 0 auto;
  width: 100%;
  max-width: 768px;
  height: auto;
  display: flex;
  justify-content: space-between;
}

.chat-message__icon {
  width: 30px;
  min-width: 30px;
  height: 30px;
  color: rgba(255,255,255,1);
  background-color: #19c37d;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-right: 20px;
}

.gpt-icon {
  width: 24px;
  height: 24px;
}

.gpt-icon svg {
  width: 100%;
  height: 100%;
}

.chat-message__text-block {
  width: 100%;
  height: auto;
  display: flex;
  flex-direction: column;
}

.chat-message__text {
  width: 100%;
  font-size: 1rem;
  line-height: 1.75;
  tab-size: 4;
  margin-bottom: 22px;
}

.chat-message__text:nth-last-child(1) {
  margin-bottom: 0;
}


.chat-message__reaction {
  display: flex;
  margin-left: 20px;
  color: rgba(172,172,190,1);
  
}

.reaction__like {
  margin-right: 10px;
  cursor: pointer;
}

.reaction__like svg:hover {
  fill: #fff;
}

.reaction__dislike {
  cursor: pointer;
}

.reaction__dislike svg:hover {
  fill: #fff;
}





.chat-answer {
  padding: 0 15px;
  width: 100%;
  height: auto;
  margin-bottom: 30px;
  background-color: var(--color-secondary);
}

.chat-answer__content {
  padding: 20px 0 0 0;
  margin: 0 auto;
  width: 100%;
  max-width: 768px;
  height: auto;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
}

.chat-answer__button {
  margin: 0 0 20px 20px;
  padding: 5px 15px;
  width: fit-content;
  height: 40px;
  box-shadow: 0 0 transparent, 0 0 transparent, 0 0 15px rgb(0 0 0 / 10%);
  color: rgba(255,255,255,1);
  background-color: var(--color-default);
  border-radius: var(--border-radius);
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
}
.chat-answer__button:nth-child(1) {
  margin: 0 0 20px 0;
}

.chat-answer__button:hover {
  background-color: var(--hover-bg-color);
}

.chat-answer__button.active {
  background-color: var(--hover-bg-color);
}



.page-chat__footer {
  padding: 20px 10px 0 10px;
  width: 100%;
  height: 170px;
  position: absolute;
  bottom: 0;
  left: 0;
  z-index: 2;
  background-color: var(--color-default);
}

.page-chat__footer__content {
  width: 100%;
  max-width: 992px;
  margin: 0 auto;
}

.page-chat__footer-response-generate {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 10px;
}

.regenerate-response {
  width: fit-content;
  padding: 10px;
  display: flex;
  align-items: center;
  border: 1px solid hsla(0,0%,100%,.2);
  border-radius: var(--border-radius);
  cursor: pointer;
  font-size: .875rem;
  line-height: 1.25rem;
}

.regenerate-response:hover {
  background-color: rgba(64,65,79,1)
}

.regenerate-response__icon {
  width: 12px;
  height: 12px;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-right: 10px;
}

.regenerate-response__icon svg {
  width: 100%;
  height: 100%;
}

.page-chat__footer-user-input {
  width: 100%;
  height: 50px;
  position: relative;
  box-shadow: 0 0 transparent, 0 0 transparent, 0 0 15px rgba(0,0,0,.1);
  color: rgba(255,255,255,1);
  background-color: rgba(64,65,79,1);
  border-radius: var(--border-radius);
  margin-bottom: 10px;
  position: relative;
}

.page-chat__footer-user-input input {
  padding: 0 20px;
  width: 100%;
  height: 100%;
  background-color: transparent;
  border: none;
  outline: none;
  color: rgba(255,255,255,1);
  font-size: 1rem;
  line-height: 1.75;
}

.send-icon {
  color: rgba(142,142,160,1);
  position: absolute;
  top: 17px;
  right: 15px;
}

.send-icon svg:hover {
  fill: #fff;
  cursor: pointer;
}

.page-chat__footer-disc {
  color: hsla(0,0%,100%,.5);
  font-size: .75rem;
  line-height: 1rem;
  text-align: center;
  margin-bottom: 20px;
}












form {
  width: 100%;
  max-width: 350px;
  height: auto;
  padding: 40px 20px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: 0 0 transparent, 0 0 transparent, 0 0 15px rgb(0 0 0 / 50%);
  color: rgba(255,255,255,1);
  border-radius: var(--border-radius);
}

form input {
  width: 100%;
  height: 44px;
  padding: 0 10px;
  border: none;
  outline: none;
  background-color: var(--color-default);
  border-radius: var(--border-radius);
  margin-bottom: 20px;
  color: rgba(255,255,255,1);
  font-size: 16px;
}

form input::placeholder {
  color: rgba(255,255,255,1);
}

form button {
  width: 100%;
  max-width: 150px;
  padding: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #19c37d;
  border: 1px solid hsla(0,0%,100%,.2);
  border-radius: var(--border-radius);
  cursor: pointer;
  font-size: .875rem;
  line-height: 1.25rem;
  color: rgba(255,255,255,1);
  font-size: 18px;
}

form button:hover {
  background-color: #0ea768;
}







.page-popup {
  width: fit-content;
  height: auto;
  padding: 20px 40px;
  display: flex;
  align-items: center;
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 9;
  background-color: var(--color-primary);
  color: var(--text-color);
  font-size: .875rem;
  line-height: 1.25rem;
  border-radius: var(--border-radius);
}

.legal-footer {
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100%;
  min-height: var(--legal-footer-height);
  padding: 18px 16px;
  background-color: #1f2129;
  color: rgba(236,236,241,0.75);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  z-index: 6;
}

.legal-footer__content {
  max-width: 980px;
  width: 100%;
}

.legal-footer__disclaimer {
  margin: 0 0 10px 0;
  font-size: 12px;
  line-height: 1.5;
  font-style: italic;
}

.legal-footer__copyright {
  margin: 0 0 6px 0;
  font-size: 13px;
  line-height: 1.4;
  color: rgba(236,236,241,0.9);
}

.legal-footer__links {
  margin: 0;
  font-size: 14px;
  line-height: 1.4;
}

.legal-footer__links a {
  color: #6bb7ff;
  text-decoration: none;
}

.legal-footer__links a:hover {
  text-decoration: underline;
}

.legal-footer__divider {
  margin: 0 8px;
  color: rgba(236,236,241,0.4);
}

.legal-modal {
  position: fixed;
  inset: 0;
  background-color: rgba(14,15,20,0.75);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 20;
  animation: legal-modal-fade 0.2s ease-out;
}

.legal-modal__dialog {
  width: 100%;
  max-width: 860px;
  background-color: #1f2129;
  color: rgba(236,236,241,0.95);
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 24px 70px rgba(0,0,0,0.45);
  position: relative;
  display: flex;
  flex-direction: column;
  animation: legal-modal-rise 0.25s ease-out;
}

.legal-modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 50%;
  background-color: rgba(255,255,255,0.08);
  color: rgba(236,236,241,0.95);
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
}

.legal-modal__close:hover {
  background-color: rgba(255,255,255,0.16);
}

.legal-modal__body {
  padding: 28px 28px 24px 28px;
  max-height: 70vh;
  overflow-y: auto;
}

.legal-modal__body::-webkit-scrollbar {
  width: 6px;
}

.legal-modal__body::-webkit-scrollbar-thumb {
  background-color: rgba(255,255,255,0.2);
  border-radius: 999px;
}

.pop-up-content-wrap h2 {
  margin: 0 0 18px 0;
  font-size: 24px;
  line-height: 1.3;
  color: rgba(255,255,255,0.95);
}

.pop-up-content-wrap p {
  margin: 0 0 16px 0;
  font-size: 14px;
  line-height: 1.6;
  color: rgba(236,236,241,0.85);
}

.pop-up-content-wrap strong {
  color: rgba(255,255,255,0.95);
}

.pop-up-content-wrap ul {
  margin: 0 0 18px 0;
  padding-left: 20px;
}

.pop-up-content-wrap li {
  margin-bottom: 8px;
}

@keyframes legal-modal-fade {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes legal-modal-rise {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}


























@media screen and (max-width: 768px) {
  :root {
    --legal-footer-height: 170px;
  }

  .page-chat {
    padding: 44px 0 0 0;
  }

  .page-chat__mobile-header {
    display: flex;
  }

  .page-chat__footer {
    height: 125px;
    padding: 10px 15px 0 15px;
    border-top: 1px solid hsla(0,0%,100%,.2);
  }
  .page-chat__footer-response-generate {
    display: none;
  }
  .page-sidebar {
    width: 300px;
    max-width: inherit;
    position: absolute;
    top: 0;
    left: 0;
    transform: translateX(-350px);
  }
  .page-sidebar.sidebar-open {
    transform: translateX(0);
  }
  .page-sidebar__mobile-close-icon {
    display: flex;
  }

  .chat-message__reaction.form {
    display: none;
  }

  .legal-footer {
    padding: 16px 12px;
  }

  .legal-footer__disclaimer {
    font-size: 11px;
  }

  .legal-footer__copyright {
    font-size: 12px;
  }

  .legal-footer__links {
    font-size: 13px;
  }

  .legal-modal {
    padding: 16px;
  }

  .legal-modal__body {
    padding: 22px 20px 20px 20px;
    max-height: 66vh;
  }

  .pop-up-content-wrap h2 {
    font-size: 20px;
  }

  .pop-up-content-wrap p {
    font-size: 13px;
  }
  
}
