.pmmai-container {
  height: 100vh;
  display: flex;
  justify-content: space-between;
}

.pmmai-container .content-wrapper {
  padding: 80px 35px;
  width: 100%;
  overflow: hidden;
  box-sizing: border-box;
  position: relative;
}

.ai-history-sidebar {
  width: 399px;
  border-left: 1px solid var(--light-grey);
  background-color: #F5F5F5;
  /* box-sizing: border-box; */
  padding: 54px 16px;
}

.pmmai-container .header-info {
  margin-bottom: 16px;
}

.topic-question-card {
  padding: 16px;
  border-radius: 12px;
  border: 1px solid var(--light-grey);
  background-color: var(--white);
  height: 200px;
  cursor: pointer;
}

.topic-question-card:hover {
  border: 1px solid var(--brand);
}

.topic-tags {
  margin-bottom: 16px;
}

.topic-tags-questions {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(3, 1fr);
  margin-bottom: 24px;
  height: 490px;
}

.topic-tags-questions .swiper-slide {
  text-align: left;
  display: inline-block;
  height: 200px !important;
}

.sidebar-ai-footer {
  /* position: fixed; */
  width: 100%;
  box-sizing: border-box;
  bottom: 35px;
}

.gtp-input-container {
  margin-bottom: 10px;
}

.sidebar-ai-footer {
  text-align: center;
}

.ai-history-item {
  padding: 8px;
  border-radius: 5px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-decoration: none;
  color: var(--black);
  position: relative;
}

.ai-history-item:hover {
  background-color: var(--light-grey);
}

.query-history-menu {
  display: none;
}

.ai-history-item:hover .query-history-menu {
  display: block;
}

.ai-history-item.disabled-menu:hover {
  background-color: var(--white);
}

.ai-history-item.disabled-menu:hover .query-history-menu {
  display: none;
}

.history-menu {
  width: 254px;
  position: absolute;
  top: 28px;
  right: 11px;
  background-color: var(--white);
  border-radius: 5px;
  border: 1px solid var(--light-grey);
  box-shadow: 0px 4px 10px 0px rgba(0, 0, 0, 0.10);
  display: flex;
  flex-direction: column;
  z-index: 99;
  overflow: hidden;
}

.history-menu span {
  color: var(--black);
  font-family: Poppins, sans-serif;
  font-size: 14px;
  font-style: normal;
  font-weight: 400;
  line-height: 17px;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  gap: 8px;
  height: 44px;
  box-sizing: border-box;
}

.history-menu span:hover {
  background-color: var(--brand);
  color: var(--white);
}

.history-menu span:hover:before {
  filter: invert(98%) sepia(42%) saturate(345%) hue-rotate(294deg) brightness(105%) contrast(95%);
}

.mt-24 {
  margin-top: 24px;
}

.content-header {
  height: 89px;
  border-bottom: 1px solid var(--light-grey);
  background: #F5F5F5;
  width: 100%;
  padding: 24px 32px;
  display: flex;
  justify-content: space-between;
  box-sizing: border-box;
}

.ai-cta .btn {
  display: block;
}

.ai-cta a {
  cursor: pointer;
  padding: 4px;
}

.ai-cta {
  display: flex;
  gap: 16px;
  align-items: center;
}

.separator {
  width: 1px;
  height: 24px;
  background: #6C6C6C;
}

.pmmai-result-container {
  display: none;
}

.question-content-card {
  border-radius: 12px 0px 12px 12px;
  border: 1px solid var(--light-grey);
  background-color: var(--white);
  padding: 16px;
  margin-left: 24px;
  margin-bottom: 24px;
}

.ai-result-container {
  display: flex;
  /* height: 91vh; */
}

.ai-result-container .ask-ai-sidebar-wrapper {
  width: 343px;
  max-width: 0;
  transition: max-width 0.3s ease-in-out;
}

.ai-result-container .ask-ai-sidebar-wrapper.opened {
  max-width: 343px;
}

.ai-result-container .result-content-wrapper {
  flex: 1;
  padding: 40px 35px;
  height: 82vh;
  overflow: hidden;
}

.ask-ai-sidebar-wrapper {
  border-left: 1px solid var(--light-grey);
}

.answer-ai-card {
  margin-bottom: 24px;
}

.answer-ai-card .answer-ai-content {
  display: flex;
  gap: 20px;
}

.ai-profile img {
  width: 24px;
}

.ask-ai:before {
  content: url("/assets/img/auto_awesome.svg");
}

.ask-history:before {
  content: url("/assets/img/dashboard/history.svg");
}

.tab-menu {
  padding: 16px 16px 0 16px;
  border-bottom: 1px solid var(--light-grey);
  display: flex;
  gap: 8px;
}

.tab-menu a {
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 4px 8px;
  cursor: pointer;
}

.tab-menu a:hover {
  color: var(--brand);
}

.tab-menu a:hover:before {
  filter: invert(50%) sepia(78%) saturate(3175%) hue-rotate(331deg) brightness(101%) contrast(100%);
}

.tab-menu a.active {
  border-bottom: 1px solid var(--brand);
}

.tab-content {
  padding: 16px;
}

.tab-panel > p {
  margin-bottom: 16px;
}

.follow-up-card {
  display: flex;
  padding: 16px;
  align-items: flex-start;
  gap: 8px;
  align-self: stretch;
  border-radius: 12px;
  border: 1px solid var(--light-grey);
  background-color: var(--white);
  cursor: pointer;
}

.follow-up-card:not(:last-of-type) {
  margin-bottom: 16px;
}

.follow-up-card:hover {
  border: 1px solid var(--brand);
}

.tab-panel {
  display: none;
}

.tab-panel.opened {
  display: block;
}

.tab-panel .btn {
  margin-top: 16px;
  display: flex;
  align-items: center;
  gap: 6px;
  justify-content: center;
}

.new-chat {
  display: flex !important;
  padding: 8.5px 18px !important;
  gap: 6px;
  align-items: center;
}

.new-chat:before {
  content: url("/assets/img/dashboard/add-white.svg");
}

.action-items {
  border-top: 1px solid var(--light-grey);
  margin-left: 42px;
  margin-bottom: 26px;
}

.answer > p {
  margin-bottom: 16px;
}

.action-items > p {
  margin: 16px 0;
}

.action-items > ul {
  margin: 0;
}

.action-items ul {
  list-style: none;
  padding-left: 0;
}

.action-items ul li {
  position: relative;
  padding-left: 32px;
  color: var(--black);
  font-family: Poppins, sans-serif;
  font-size: 16px;
  font-style: normal;
  font-weight: 300;
  line-height: 24px;
}

.action-items ul li:not(:last-of-type) {
  margin-bottom: 16px;
}

.action-items ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: -2px;
  width: 24px;
  height: 24px;
  background: url('/assets/img/dashboard/mode_standby.svg') no-repeat center center;
  background-size: contain;
}

#askAIDisplay {
  height: 75.5vh;
  overflow-x: hidden;
  overflow-y: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  /* display: flex;
  gap: 24px; */
  flex-direction: column;
}

a.history.active {
  border-radius: 5px;
  background: rgba(255, 92, 77, 0.20);
}

.history:before {
  content: url("/assets/img/dashboard/history-sm.svg");
}

.history.active:before {
  filter: invert(50%) sepia(78%) saturate(3175%) hue-rotate(331deg) brightness(101%) contrast(100%);
}

.result-content-container {
  width: 63.56%;
  margin: auto;
}

.result-content-container.opened {
  width: 100%;
  margin: 0;
}

#deleteHistoryModal.modal .modal-dialog {
  width: 375px;
}

#deleteHistoryModal .btn {
  display: block;
}

#deleteHistoryTitle {
  padding: 8px 16px;
  border-radius: 5px;
  border: 1px solid #AEAEAE;
}

.modal .modal-content {
  padding: 24px 32px;
}

.history-edit-container {
  margin: 0 -8px;
  width: 100%;
  position: relative;
}

.history-edit-input {
  height: 36px;
  border-radius: 5px;
  padding: 8px 80px 8px 8px;
  box-sizing: border-box;
  border: 1px solid var(--black);
  background-color: var(--white);
}

.check, .cancel, .delete, .history, .edit {
  cursor: pointer;
}

.check:hover:before, .cancel:hover:before, .delete:hover:before, .history:hover:before, .edit:hover:before {
  filter: invert(50%) sepia(78%) saturate(3175%) hue-rotate(331deg) brightness(101%) contrast(100%);
}

.check:before {
  content: url("/assets/img/dashboard/check.svg");
}

.cancel:before {
  content: url("/assets/img/dashboard/close-sm.svg");
}

.line:before {
  content: url("/assets/img/dashboard/line.svg");
}

.action-container {
  display: flex;
  gap: 8px;
  position: absolute;
  top: 6px;
  right: 8px;
  align-items: center;
}

.auto_awesome:after {
  content: url("/assets/img/auto_awesome.svg");
}

.action-cta {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-top: 16px;
  margin-bottom: 26px;
}

.action-cta .btn {
  display: flex;
  align-items: center;
  gap: 6px;
}

.action-cta .btn:hover:after {
  filter: invert(50%) sepia(78%) saturate(3175%) hue-rotate(331deg) brightness(101%) contrast(100%);
}

ol li {
  font-family: var(--primary-font);
  font-weight: 300;
  font-size: 16px;
  line-height: 24px;
  letter-spacing: 0%;
}

ol li:not(:last-of-type) {
  margin-bottom: 24px;
}

.answer-ai-footer .cited-resources {
  font-family: Poppins, sans-serif;
  font-weight: 400;
  font-size: 14px;
  line-height: 17px;
  letter-spacing: 0%;
  text-align: center;
  color: var(--black);
  text-decoration: none;
  cursor: pointer;
  display: flex;
  align-items: center;
}

.answer-ai-footer .cited-resources:before {
  content: url("/assets/img/dropdown-down.svg");
  height: 24px;
  width: 24px;
}

.answer-ai-footer .cited-resources.opened:before {
  content: url("/assets/img/dropdown-up.svg");
}

.answer-ai-footer .cited-resources:hover { 
  color: var(--brand);
}

.answer-ai-footer .cited-resources:hover:before { 
  filter: invert(50%) sepia(78%) saturate(3175%) hue-rotate(331deg) brightness(101%) contrast(100%);
}

.copy:before {
  content: url("/assets/img/content_copy_black.svg");
}

.answer-ai-footer .cited-resources:before {
  content: url("/assets/img/dropdown.svg");
  margin-right: 11px;
}

.ai-ctas {
  display: flex;
  justify-content: space-between;
  gap: 17px;
  margin-bottom: 16px;
}

.cited-card {
  padding: 16px;
  border-radius: 12px;
  border: 1px solid #D4D4D4;
  background-color: var(--white);
  display: flex;
  flex-direction: column;
  gap: 8px;
  cursor: pointer;
  color: var(--black);
  text-decoration: none;
}

.slide-controller {
  justify-content: flex-end;
  margin-top: 16px;
}

.ai-cited .swiper-slide {
  height: auto !important;
}

.chatgpt-loading {
  margin-bottom: 24px;
}

.ai-cited .swiper-slide {
  text-align: left;
  justify-content: unset;
  align-items: unset;
}

.ai-cited {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-in-out;
}

.ai-cited.opened {
  max-height: 500px;
}

.history-edit-individual-container {
  margin: 0 -8px;
  width: 80%;
  position: relative;
}

.result-feedback {
  display: flex;
  gap: 16px;
}

.result-feedback span {
  cursor: pointer;
}

.result-feedback span:hover:before {
  filter: invert(50%) sepia(78%) saturate(3175%) hue-rotate(331deg) brightness(101%) contrast(100%);
}

.result-feedback span.active:before {
  filter: invert(50%) sepia(78%) saturate(3175%) hue-rotate(331deg) brightness(101%) contrast(100%);
}

.cited-count {
  margin-left: 6px;
  padding: 2px 4px;
  background-color: var(--black);
  font-family: Poppins, sans-serif;
  font-size: 10px;
  font-style: normal;
  font-weight: 500;
  line-height: 16px;
  border-radius: 5px;
  color: var(--white);
}

.blur-overlay-left {
  position: absolute;
  left: 106px;
  top: -113px;
  z-index: 9;
  width: 47px;
  height: 260px;
  pointer-events: none;
  transform: rotate(90.246deg);
  background: linear-gradient(180deg, rgba(245, 245, 245, 0.00) 0%, #F5F5F5 75%);
}

.blur-overlay-left.swiper-button-disabled {
  display: none;
}

.blur-overlay-right {
  position: absolute;
  right: 107px;
  top: -113px;
  z-index: 9;
  width: 47px;
  height: 260px;
  pointer-events: none;
  transform: rotate(-90.246deg);
  background: linear-gradient(180deg, rgba(245, 245, 245, 0.00) 0%, #F5F5F5 75%);
}

.blur-overlay-right.swiper-button-disabled {
  display: none;
}

.topic-prev {
  position: absolute;
  z-index: 999;
  top: 3px;
  left: 0;
}

.topic-prev.swiper-button-disabled {
  display: none;
}

.topic-next {
  position: absolute;
  z-index: 999;
  top: 3px;
  right: 0;
}

.topic-next.swiper-button-disabled {
  display: none;
}

.topic-prev, .topic-next {
  cursor: pointer;
}

.topic-prev:before {
  content: url("/assets/img/dashboard/keyboard_arrow_right.svg");
  display: inline-block;
  transform: scaleX(-1);
}

.topic-next:before {
  content: url("/assets/img/dashboard/keyboard_arrow_right.svg");
}

@media (max-width: 600px) {
  .ai-history-sidebar {
    display: none;
  }
  .blur-overlay-right {
    height: 136px;
    top: unset;
    bottom: -50px;
    right: 30px;
  }
  .blur-overlay-left {
    height: 136px;
    top: unset;
    bottom: -50px;
    left: 30px;
  }
  .topic-tags-questions {
    height: 300px;
  }
  .topic-question-card {
    height: 240px !important;
  }
  .result-content-container {
    width: 100%;
  }
  .content-header {
    justify-content: flex-end;
  }
  #queueTitle {
    display: none
  }
  .ai-cta .edit {
    display: none;
  }
}