.pmmai-container {
  height: calc(100vh - 40px);
  display: flex;
  justify-content: space-between;
  overflow-y: auto;
}

.dashboard-header {
  display: none;
}

.container {
  height: 100vh;
  box-sizing: border-box;
}

main:not(.site-main) {
  box-sizing: border-box;
}

.pmmai-container .content-wrapper {
  padding: 56px 53px;
  padding-bottom: 22px;
  width: 100%;
  /* overflow: hidden; */
  box-sizing: border-box;
  position: relative;
  overflow-y: auto;
}

.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: 114px;
  cursor: pointer;
}

.topic-question-card:hover {
  border: 1px solid var(--brand);
}

.topic-tags {
  margin-bottom: 16px;
}

.topic-tags-questions .swiper-wrapper {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(3, 1fr);
  margin-bottom: 24px;
  /* height: 490px; */
}

.swiper-slide {
  box-sizing: border-box;
}

.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;
  line-height: 0;
  scale: .8;
  position: absolute;
  right: 4px;
}

.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.1);
  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 {
  border-bottom: 1px solid var(--light-grey);
  background: #f5f5f5;
  width: 100%;
  padding: 8px 32px;
  display: flex;
  justify-content: space-between;
  box-sizing: border-box;
  align-items: center;
  position: relative;
  z-index: 99;
}

.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;
  height: calc(100vh - 40px);
}

.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;
  margin-top: -120px;
  padding-top: 120px;
  height: 100vh;
}

.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: calc(100vh - 103px - var(--hs-banner-height, 0px));
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
}

.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(58%) sepia(87%) saturate(3029%) hue-rotate(301deg) brightness(101%) contrast(101%);
}

.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.2);
}

.history:before {
  content: url("/assets/img/dashboard/history-sm.svg");
}

.history.active:before {
  filter: invert(58%) sepia(87%) saturate(3029%) hue-rotate(301deg) brightness(101%) contrast(101%);
}

.result-content-container {
  width: 63.56%;
  height: 100%;
  margin: auto;
  overflow-y: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  margin-bottom: 8px;
}

.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(58%) sepia(87%) saturate(3029%) hue-rotate(301deg) brightness(101%) contrast(101%);
}

.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(53%) sepia(85%) saturate(3015%) hue-rotate(297deg) brightness(101%) contrast(101%);
}

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(58%) sepia(87%) saturate(3029%) hue-rotate(301deg) brightness(101%) contrast(101%);
}

.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(53%) sepia(85%) saturate(3015%) hue-rotate(297deg) brightness(101%) contrast(101%);
}

.result-feedback span.active:before {
 filter: invert(53%) sepia(85%) saturate(3015%) hue-rotate(297deg) brightness(101%) contrast(101%);
}

.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) 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) 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");
}

.ai-mobile-cta {
  display: none;
}

.ai-mobile-cta:before {
  content: url("/assets/img/dashboard/plus.svg");
}

@media (max-width: 600px) {
  .ai-history-sidebar {
    display: none !important;
  }
  .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-tags-questions .swiper-slide {
    box-sizing: border-box;
  }
  .topic-question-card {
    height: 240px !important;
  }
  .result-content-container {
    width: 100%;
  }
  .content-header {
    justify-content: flex-end;
  }
  #queueTitle {
    /* display: none; */
    white-space: nowrap; /* Prevent wrapping */
    overflow: hidden; /* Hide overflow text */
    text-overflow: ellipsis; /* Add the "..." */
    display: block; /* Make sure ellipsis applies */
    max-width: 100%;
  }
  .result-content-wrapper .gtp-input-container {
    width: 100% !important;
  }
  .ai-cta .edit {
    display: none;
  }
  .pmmai-container {
    margin-top: -80px;
    padding-top: 80px;
  }
  .pmmai-container .content-wrapper {
    padding: 24px 32px;
  }
  .topic-tags-questions .swiper-wrapper {
    display: flex;
    gap: unset;
  }
  .ai-cta a:not(.ai-mobile-cta),
  .ai-cta .separator {
    display: none !important;
  }
  .ai-mobile-cta {
    display: block;
  }
}
.chatgpt-loading {
  display: inline-flex !important;
  align-items: center;
  gap: 12px;
  flex-wrap: nowrap;
  white-space: nowrap;
  padding: 12px 0;
  background-color: transparent
}

.chatgpt-loading-text {
  display: inline-block;
  color: #6b7280;
  font-style: italic;
  font-size: 14px;
  font-family: 'Poppins', sans-serif;
  white-space: nowrap;
  min-height: 1.2em; /* prevent collapse when text is empty between cycles */
}
/* Optional: blinking caret at the end of the typed text */
.chatgpt-loading-text::after {
  content: "▋";
  display: inline-block;
  margin-left: 2px;
  color: #9ca3af;
  animation: cursor-blink 1.1s ease-in-out infinite;
}

@keyframes cursor-blink {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0.2; }
}