* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

@font-face {
  font-family: 'Open Sans';
  src: url('../fonts/OpenSans-Regular.woff2'),
    url('../fonts/OpenSans-Regular.woff');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Sansa Pro';
  src: url('../fonts/SansaPro-SemiBold.woff2') format('woff2'),
    url('../fonts/SansaPro-SemiBold.woff') format('woff');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Sansa Pro Bold';
  src: url('../fonts/SansaPro-Bold.woff2') format('woff2'),
    url('../fonts/SansaPro-Bold.woff') format('woff');
  font-weight: bold;
  font-style: normal;
  font-display: swap;
}

body {
  font-family: 'Open Sans';
  background-color: #fff;
  transition: all 0.3s ease-in-out;
}

a {
  text-decoration: none;
  transition: all 0.3s ease-in-out;
}

.main-content-wrapper {
  display: flex;
  width: 100%;
  min-height: 100vh;
}

.sidebar {
  padding: 24px 14px;
  background: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: 0 0 2px rgb(23 26 31 / 12%);
  position: sticky;
  top: 0;
  height: 100vh;
  z-index: 100;
}

.nav {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.nav-item {
  width: 68px;
  height: 68px;
  padding: 4px;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  background: transparent;
  text-decoration: none;
  color: #000;
  transition: all 0.3s ease-in-out;
}

.nav-item .icon {
  width: 32px;
  height: 32px;
  background: #000;
}

.nav-item .label {
  font-size: 11px;
  color: #18215A;
  text-align: center;
}

.nav-item.active,
.nav-item:hover {
  background: #D4D7EA;
  color: #18215A;
}

.sidebar-icon-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-item .icon {
  width: 24px;
  height: 24px;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  background-color: transparent;
}

.landing {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.hero {
  width: 100%;
  padding: 24px;
  background-image: url('../images/fe/header-bg1.gif');
  background-size: cover;
  background-position: center;
  display: flex;
  flex-direction: column;
  gap: 24px;
  justify-content: flex-start;
  align-items: flex-start;
  transition: all 0.3s ease-in-out;
}

@keyframes slideDown {
  from {
    top: -80px;
  }

  to {
    top: 0;
  }
}

.hero.scrolled {
  position: sticky;
  top: 0;
  z-index: 9999;
  animation: slideDown 0.4s ease;
}

.hero.scrolled .hero-content {
  display: none;
}

.hero-header {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
}

.toggle-sidebar-icon {
  cursor: pointer;
  border: 0px;
}

.toggle-sidebar-icon img {
  width: 20px;
}

.logo-group {
  display: flex;
  align-items: center;
  gap: 16px;
}

.logo-divider {
  width: 1px;
  height: 50px;
  background-color: white;
  opacity: 0.5;
}

.logo-text {
  color: white;
  font-size: 26.8px;
  font-family: 'Fauna One', serif;
  font-weight: 400;
}

.sp-logo {
  display: flex;
  align-items: center;
}

.sp-logo img,
.logo-art img {
  width: 100%;
}

.logo-art {
  display: flex;
  align-items: center;
}

.cmn-circle-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background-color: #2A295C;
  border-radius: 50px;
  padding: 3px;
  width: 40px;
  height: 40px;
}

.user-controls {
  cursor: pointer;
  color: #fff;
  margin: 0 5px;
}

.user-controls svg {
  width: 20px;
  height: 20px;
}

.dropdown-menu {
  position: absolute;
  top: 50px;
  right: 0;
  background: #fff;
  border: 1px solid #E7E9F7;
  border-radius: 4px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  display: none;
  /* hidden by default */
  z-index: 999;
  min-width: 140px;
}

.dropdown-menu ul {
  margin: 0;
  padding: 5px 0;
  list-style: none;
}

.dropdown-menu li a {
  display: flex;
  align-items: center;
  padding: 6px 10px;
  color: #18215A;
  text-decoration: none;
  gap: 8px;
  font-size: 14px;
  line-height: 22px;
}

.dropdown-menu li a.user-profile:hover {
  color: #7E8ACC;
}

.dropdown-menu li a.user-logout:hover {
  color: #f00;
}

.dropdown-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 14px;
  height: 14px;
}

/* Active class to show dropdown */
.dropdown-menu.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.icon-placeholder {
  width: 24px;
  height: 24px;
  position: relative;
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.hero-content h1 {
  font-size: 48px;
  color: white;
  font-family: 'Sansa Pro';
  font-weight: 600;
  line-height: 60px;
  max-width: 1030px;
}

.hero-content p {
  font-size: 18px;
  line-height: 26px;
  font-weight: 400;
  word-wrap: break-word;
  color: #FFF;
}

.content-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
  flex-grow: 1;
  /* Allow content to fill remaining height */
}

.conversations-list-page {
  justify-content: flex-start !important;
}

.chat-screen {
  padding: 0px;
  /* height: calc(100vh - 98px); */
  height: 100%;
  /* Fill content-wrapper */
  width: 100%;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.chat-screen .inner-page-wrapper {
  height: 100%;
  display: flex;
  /* Ensure inner wrapper propagates flex */
  flex-direction: column;
  width: 100%;
}

.chat-main-screen {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
}

.prompt-section {
  max-width: 840px;
  width: 100%;
  margin: 60px auto 30px;
}

.prompt-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
}

.prompt {
  display: flex;
  flex-direction: column;
}

.prompt-text {
  border: 1px solid #E7E9F7;
  min-height: 152px;
  resize: none;
  padding: 24px;
  color: #000000;
  font-size: 20px;
  line-height: 28px;
  font-family: 'Open Sans';
  border-radius: 0px;
}

.chat-main-screen .prompt-text {
  min-height: 110px !important;
  transition: min-height 0.3s ease-in-out !important;
}

.chat-main-screen .prompt-text:focus,
.prompt-text:focus {
  outline: none;
  min-height: 152px !important;
}

.inner-container {
  width: calc(100% - 96px);
  display: flex;
  flex-direction: column;
  background-color: #F6F6F6;
}

.container {
  width: 100%;
  display: flex;
  flex-direction: column;
  background-color: #F6F6F6;
}

.prompt-section .option-section {
  display: none;
}

.option-section {
  background-color: #fff;
  border-top: 1px dashed #7E8ACC;
}

.options-header {
  padding: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-direction: column;
  row-gap: 25px;
}

.option-header-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.option-body-wrap {
  width: 100%;
}

.tone-option-wrap {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  column-gap: 16px;
}

.tone-options {
  display: flex;
  align-items: center;
  flex-direction: column;
  row-gap: 8px;
}

.option-group {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  align-items: center;
  width: 100%;
  border: 1px solid #E5E5E5;
  border-radius: 6px;
  overflow: hidden;
}

.tone-btn {
  position: relative;
  cursor: pointer;
}

.tone-btn:first-child {
  border-right: 1px solid #E5E5E5;
}

.tone-btn input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
}

.tone-btn span {
  color: #737373;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 5px;
}

.tone-btn input:checked~span {
  background-color: #0055FF;
  color: #fff;
}

.option-input-control {
  font-size: 16px;
  line-height: 28px;
  color: #737373;
  border: 0;
  width: 100%;
}

.option-input-control:focus {
  outline: none;
}

.option-name {
  display: flex;
  align-items: center;
  column-gap: 8px;
}

.option-name svg {
  width: 20px;
  height: 20px;
}

.option-name h6 {
  color: #000;
  font-size: 18px;
  line-height: 28px;
}

.prompt-options-wrapper {
  display: flex;
  align-items: stretch;
  background-color: #283897;
  border-bottom-right-radius: 20px;
  overflow: hidden;
  min-height: 60px;
}

.prompt-option {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  padding: 14px 0 14px 24px;
  column-gap: 8px;
  row-gap: 4px;
}

.prompt-option.project-prompt-option-wrapper {
  padding: 0px;
  width: 100%;
}

.start-btn-wrap {
  margin-left: auto;
}

.start-btn {
  min-width: 100px;
  padding: 16px;
  border: 0px;
  background-color: #2A295C;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  font-size: 16px;
  line-height: 24px;
  cursor: pointer;
  height: 100%;
  color: #fff;
}

.prompt-item {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: #fff;
}

.prompt-choice {
  display: flex;
  align-items: center;
  position: relative;
  gap: 8px;
  border: 1px solid rgb(255 255 255 / 25%);
  border-radius: 8px;
  padding: 6px 8px;
  cursor: pointer;
}

.prompt-choice.active {
  background-color: #0055FF;
  font-weight: bold;
}

.prompt-choice input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
}

.prompt-choice svg {
  width: 22px;
  height: 22px;
}

.suggestions-tag-wrapper {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  row-gap: 8px;
  margin-top: 10px;
}

.suggestion-tag {
  display: flex;
  align-items: center;
  column-gap: 8px;
  border: 1px solid #808080;
  border-radius: 8px;
  min-height: 32px;
  padding: 2px 8px;
  font-size: 13px;
  line-height: 1.2;
  color: #808080;
}

.suggestion-tag:hover {
  background-color: #808080;
  color: #fff;
}

.option-selection-wrap {
  display: flex;
  align-items: center;
  column-gap: 24px;
}

.cmn-radio-style {
  position: relative;
  padding-left: 24px;
  cursor: pointer;
  font-size: 14px;
  line-height: 20px;
  color: #070B1E;
}

.cmn-radio-style input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
}

.cmn-select-option {
  width: 16px;
  height: 16px;
  border: 1px solid #999999;
  position: absolute;
  left: 0;
  top: 2px;
  border-radius: 50%;
}

.cmn-radio-style input:checked~.cmn-select-option {
  border-color: #283897;
}

.cmn-select-option:after {
  content: "";
  position: absolute;
  display: none;
}

.cmn-radio-style .cmn-select-option:after {
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #283897;
}

.cmn-radio-style input:checked~.cmn-select-option:after {
  display: block;
}

.cmn-checkbox-style {
  position: relative;
  font-size: 14px;
  line-height: 20px;
  padding-left: 24px;
  cursor: pointer;
  color: #000000;
}

.cmn-checkbox-style input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
}

.cmn-check-option {
  width: 16px;
  height: 16px;
  border: 1px solid #535FAB;
  border-radius: 4px;
  position: absolute;
  left: 0;
  top: 3px;
}

.cmn-checkbox-style input:checked~.cmn-check-option {
  background-color: #283897;
}

.cmn-check-option:after {
  content: "";
  position: absolute;
  display: none;
}

.cmn-checkbox-style .cmn-check-option:after {
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 10px;
  height: 8px;
  background-image: url(../images/fe/checkmark-icon.svg);
}

.cmn-checkbox-style input:checked~.cmn-check-option:after {
  display: block;
}

.option-body {
  padding: 0 30px 24px;
  color: #000;
}

.cmn-info {
  font-size: 14px;
}

.cmn-file-upload-wrap {
  margin-top: 15px;
}

.cmn-file-upload-container {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  column-gap: 24px;
  align-items: flex-start;
}

.cmn-file-upload-container form {
  display: flex;
  flex-direction: column;
  row-gap: 12px;
}

.cmn-file-upload {
  border: 1px dashed #283897;
  border-radius: 8px;
  padding: 24px;
  text-align: center;
  cursor: pointer;
}

.upload-box {
  display: flex;
  flex-direction: column;
  row-gap: 8px;
  font-size: 14px;
  line-height: 20px;
  color: #070B1E;
}

.file-info {
  width: 100%;
  color: #7E87C0;
}

.file-list {
  max-height: 150px;
  overflow-y: auto;
}

.uploaded-list-wrap {
  display: flex;
  align-items: center;
  flex-direction: column;
}

.cmn-uploaded-item {
  display: flex;
  align-items: center;
  width: 100%;
  background-color: #fff;
  padding: 6px;
}

.cmn-uploaded-item+.cmn-uploaded-item {
  border-top: 1px solid #E7E9F7;
}

.file-name {
  margin-left: 8px;
  font-size: 13px;
  line-height: 18px;
  width: calc(100% - 40px);
  word-wrap: break-word;
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
}

/* 1. Ensure the outer container (cmn-uploaded-item) acts as a flexible, single-line container */
.cmn-uploaded-item {
  display: flex;
  /* Make sure this is a flex container */
  align-items: center;
  overflow: hidden;
  /* Important: Hides any content that the browser can't shrink */
}

/* 2. Target the immediate parent of the file-name span (the unnamed inner div) */
/* This is the KEY FIX for flexbox layouts with nowrap content */
.cmn-uploaded-item>div:first-child {
  /* This element contains the checkbox, icon, and file name */
  display: flex;
  align-items: center;
  flex-grow: 1;
  flex-shrink: 1;
  /* CRITICAL: Allows this flex item to shrink below its default content size */
  min-width: 0;
}

/* 3. Your existing styles for the file name (make sure they are still applied) */
.cmn-uploaded-item .file-name {
  /* The max-width: 200px; flex-grow: 1; flex-shrink: 1; are good, 
       but make sure the basic truncation properties are present.
    */
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex-grow: 1;
  /* Give it some room to grow but allow it to shrink */
  max-width: 100%;
}

.delet-file {
  border: 0px;
  background-color: transparent;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: auto;
  cursor: pointer;
}

.tips-wrapper {
  margin-top: 96px;
  padding: 48px 24px;
  background: white;
  border: 1px solid #E7E9F7;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.tips-content {
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 100%;
}

.tips-header {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.tips-title {
  font-family: 'Sansa Pro Bold';
  font-size: 30px;
  line-height: 40px;
  color: #2A295C;
  margin: 0;
}

.tips-intro {
  font-size: 18px;
  font-weight: 600;
  line-height: 30px;
  color: #2A295C;
  margin: 0;
  font-family: 'Sansa Pro';
}

.tip-block {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.tip-heading {
  display: flex;
  align-items: center;
  gap: 8px;
}

.tip-heading img {
  width: 32px;
  height: 32px;
}

.tip-heading h2 {
  font-size: 20px;
  font-weight: 700;
  line-height: 30px;
  color: #2A295C;
  margin: 0;
}

.tip-text {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.tip-text p {
  font-size: 16px;
  font-weight: 400;
  line-height: 28px;
  color: #2A295C;
  margin: 0;
}

.tips-listing {
  color: #2A295C;
  padding: 0 0 0 20px;
  list-style: none;
}

.tips-listing li {
  position: relative;
}

.tips-listing li:before {
  content: '';
  position: absolute;
  left: -12px;
  top: 10px;
  width: 5px;
  height: 5px;
  background-color: #2A295C;
  border-radius: 50%;
}

.cmn-option-dropdown {
  max-width: 380px;
  height: 42px;
  width: 100%;
}

.cmn-multiple-dropdown {
  max-width: 380px;
  width: 100%;
  padding: 0px 24px;
}

.cmn-multiple-dropdown.w-100 {
  max-width: 100%;
}

.cmn-multiple-dropdown .select2-container {
  width: 100% !important;
}

.cmn-multiple-dropdown .select2-container ul li.select2-selection__choice {
  padding: 0px 5px !important;
  flex-direction: row-reverse;
  font-weight: 700;
}

.cmn-multiple-dropdown .select2-container ul li.select2-selection__choice>button {
  border: none;
}

.cmn-option-dropdown .select2-container {
  width: 100% !important;
  height: 100%;
}

.cmn-option-dropdown .selection {
  height: 100%;
  display: flex;
  width: 100%;
}

.cmn-option-dropdown .select2-container .select2-selection--single {
  height: 100%;
  width: 100%;
  display: flex;
  align-items: center;
  border-color: #283897;
  border-radius: 8px
}

.cmn-multiple-dropdown .select2-container .select2-selection--multiple {
  border-radius: 8px;
  border-color: #173DA6 !important;
  min-height: 42px;
  padding-right: 20px;
  padding-top: 2px;
  /* background-image: url(../images/dropdown-icon.svg);
  background-size: 10px;
  background-repeat: no-repeat;
  background-position: right 5px center; */
}

.cmn-multiple-dropdown .select2-selection--multiple .select2-selection__rendered .select2-selection__choice {
  border-color: #173DA6;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 2px 4px !important;
  background-color: #173DA6;
  color: #FFFFFF;
  font-weight: 400;
}

.cmn-multiple-dropdown .select2-selection--multiple .select2-selection__rendered .select2-selection__choice__remove {
  display: flex;
  padding: 2px 4px;
  position: relative;
  color: #FFFFFF;
  inset: auto;
  font-weight: 400;
}

.cmn-multiple-dropdown .select2-selection--multiple .select2-selection__rendered .select2-selection__choice__remove:hover {
  background-color: transparent;
  color: #fff;
  opacity: 0.7;
}

.cmn-multiple-dropdown .select2-selection--multiple .select2-selection__rendered .select2-selection__choice__display {
  font-size: 12px;
  line-height: 18px;
  padding: 0 4px;
}

.cmn-multiple-dropdown .select2-container .select2-search--inline .select2-search__field {
  line-height: normal;
  color: #000;
  font-size: 14px;
  font-family: 'Open Sans';
}

.cmn-multiple-dropdown .select2-container .select2-search--inline .select2-search__field:placeholder {
  color: #000;
}

.cmn-multiple-dropdown .select2-container button.select2-selection__clear span {
  font-size: 22px;
}

.hide-item {
  display: none !important;
}

.cmn-multiple-dropdown .select2-container--default .select2-selection--multiple .select2-selection__clear {
  top: 7px;
  margin: 0;
  right: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  height: auto;
  padding: 0;
}

.cmn-option-dropdown .select2-container--default .select2-selection--single .select2-selection__rendered {
  line-height: normal;
  color: #000;
  font-size: 14px;
  width: 100%;
}

.cmn-option-dropdown .select2-container--default .select2-selection--single .select2-selection__arrow {
  height: 100%;
  top: 0;
}

/** CUSTOM CSS for POPUP : START**/

/* Modal styles */
.modal {
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-content {
  background-color: #fff;
  padding: 25px;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  width: 90%;
  max-width: 500px;
  position: relative;
}

.modal-content h2 {
  margin-top: 0;
  border-bottom: 1px solid #eee;
  padding-bottom: 10px;
  color: #333;
  font-size: 20px;
}

.modal .close-button {
  position: absolute;
  top: 10px;
  right: 15px;
  color: #aaa;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
}

.modal .close-button:hover,
.modal .close-button:focus {
  color: #555;
  text-decoration: none;
}

#fileListPreview {
  list-style: none;
  padding: 0;
  max-height: 200px;
  overflow-y: auto;
  margin-bottom: 20px;
}

#fileListPreview li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px dashed #eee;
}

#fileListPreview li:last-child {
  border-bottom: none;
}

#fileListPreview li span {
  color: #444;
  word-break: break-all;
  flex-grow: 1;
}

#fileListPreview .remove-file-btn {
  background: transparent;
  border: none;
  color: #ff4d4d;
  font-size: 20px;
  cursor: pointer;
  margin-left: 10px;
}

.modal-buttons {
  text-align: right;
  padding-top: 15px;
  border-top: 1px solid #eee;
}

.modal-buttons .btn {
  padding: 10px 20px;
  border-radius: 5px;
  cursor: pointer;
  font-size: 14px;
  transition: background-color 0.2s ease;
}

.modal-buttons .btn-primary {
  background-color: #007bff !important;
  color: #fff;
  border: 1px solid #007bff !important;
  margin-left: 10px;
}

.modal-buttons .btn-primary:hover {
  background-color: #0056b3 !important;
}

.modal-buttons .btn-secondary {
  background-color: #6c757d;
  color: #fff;
  border: 1px solid #6c757d;
}

.modal-buttons .btn-secondary:hover {
  background-color: #5a6268;
}

button .status {
  line-height: 1.1;
}

.status-uploading,
.status-deleting {
  display: inline-block;
  color: #fff;
  padding: 2px 10px;
  border-radius: 25px;
  font-family: sans-serif;
  font-size: 14px;
  font-weight: bold;
  text-transform: lowercase;

  /* The Animation Logic */
  background: linear-gradient(90deg, #ffc107 0%, #f8c632 50%, #ffc107 100%);
  background-size: 200% 100%;
  animation: moveGradient 2s linear infinite;
}

/* Yellow */
.status-uploaded {
  display: inline-block;
  color: #fff;
  padding: 2px 10px;
  border-radius: 25px;
  font-family: sans-serif;
  font-size: 14px;
  font-weight: bold;
  text-transform: lowercase;

  /* The Animation Logic */
  background: linear-gradient(90deg, #17a2b8 0%, #31d2f2 50%, #17a2b8 100%);
  background-size: 200% 100%;
  animation: moveGradient 2s linear infinite;
}

/* Cyan/Info */
.status-processing {
  display: inline-block;
  color: #fff;
  padding: 2px 10px;
  border-radius: 25px;
  font-family: sans-serif;
  font-size: 14px;
  font-weight: bold;
  text-transform: lowercase;

  /* The Animation Logic */
  background: linear-gradient(90deg, #007bff 0%, #1b599b 50%, #007bff 100%);
  background-size: 200% 100%;
  animation: moveGradient 2s linear infinite;
}

/* Blue */
.status-processed {
  display: inline-block;
  color: #fff;
  padding: 2px 10px;
  border-radius: 25px;
  font-family: sans-serif;
  font-size: 14px;
  font-weight: bold;
  text-transform: lowercase;

  /* The Animation Logic */
  background: linear-gradient(90deg, #28a745 0%, #25ff58 50%, #28a745 100%);
  background-size: 200% 100%;
  animation: moveGradient 2s linear infinite;
}

/* Green */
.status-failed {
  display: inline-block;
  color: #fff;
  padding: 2px 10px;
  border-radius: 25px;
  font-family: sans-serif;
  font-size: 14px;
  font-weight: bold;
  text-transform: lowercase;

  /* The Animation Logic */
  background: linear-gradient(90deg, #dc3545 0%, #af515b 50%, #dc3545 100%);
  background-size: 200% 100%;
  animation: moveGradient 2s linear infinite;
}

/* Red */
.status-pending {
  display: inline-block;
  color: #fff;
  padding: 2px 10px;
  border-radius: 25px;
  font-family: sans-serif;
  font-size: 14px;
  font-weight: bold;
  text-transform: lowercase;

  /* The Animation Logic */
  background: linear-gradient(90deg, #6c757d 0%, #59a7ec 50%, #6c757d 100%);
  background-size: 200% 100%;
  animation: moveGradient 2s linear infinite;
}

/* Gray */

@keyframes moveGradient {
  0% {
    background-position: 200% 0;
  }

  100% {
    background-position: -200% 0;
  }
}

.file-list.overlay {
  position: relative;
  min-height: 80px;
}

.file-list.overlay::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.7);
  /* Light overlay, adjust opacity */
  z-index: 1;
}

.upload-disabled {
  opacity: 0.5;
  pointer-events: none;
}

.file-list.overlay .fa-spin {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  font-size: 24px;
  color: #333;
}

/** CUSTOM CSS for POPUP : END**/
.cmn-option-dropdown .select2-container--default .select2-selection--single .select2-selection__arrow b {
  border: 0px;
  width: 10px;
  height: 6px;
  background-image: url(../images/fe/dropdown-icon.svg);
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}

.select2-container.select2-container--open .select2-dropdown--below {
  border-color: #283897;
  border-bottom-right-radius: 8px;
  border-bottom-left-radius: 8px;
  overflow: hidden;
}

.select2-container .select2-results__option {
  font-size: 14px;
}

.select2-container.select2-container--default .select2-results__option--highlighted.select2-results__option--selectable {
  background-color: #283897;
  color: #fff;
}

.section-content {
  display: none;
  width: 100%;
}

.section-content .cmn-option-dropdown {
  max-width: 100%;
  width: 100%;
}

.cmn-form-wrap {
  display: flex;
  align-items: center;
  border-radius: 8px;
  border: 1px solid #7E87C0;
  overflow: hidden;
}

.pre-text {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  border-right: 1px solid #7E87C0;
  color: #202C78;
  font-size: 14px;
  line-height: 20px;
}

.cmn-form-wrap .form-control {
  border: 0px;
  height: 100%;
  width: 100%;
  padding: 8px 12px;
  color: #000;
}

.cmn-form-wrap .form-control:focus {
  outline: none;
}

.cmn-form-wrap .form-control::placeholder {
  color: #535FAB;
}

.add-web-link {
  color: #283897;
  font-size: 14px;
  line-height: 20px;
  font-weight: 600;
  border: 0;
  background-color: transparent;
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
  cursor: pointer;
}

.inner-chat-btn {
  background-color: #fff;
  border-radius: 32px;
  min-height: 44px;
  min-width: 135px;
  padding: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  line-height: 20px;
  font-weight: 600;
  color: #283897;
  column-gap: 8px;
  border: 1px solid #fff;
  transition: all 0.3s ease-in-out;
}

.inner-chat-btn svg {
  width: 20px;
  height: 20px;
}

.inner-chat-btn:hover {
  background-color: transparent;
  color: #fff;
}

.inner-header-width {
  min-width: 190px;
}

.user-profile-dropdown {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.inner-page-wrapper {
  width: 100%;
}

.search-wrapper {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  position: relative;
}

.clear-search-btn {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #7E8ACC;
  border-radius: 50%;
  transition: background-color 0.2s ease, color 0.2s ease;
  line-height: 0;
}

.clear-search-btn:hover {
  background-color: #E7E9F7;
  color: #283897;
}

.clear-search-btn:focus {
  outline: none;
  background-color: #E7E9F7;
  color: #283897;
}

.cmn-input-type {
  font-size: 18px !important;
  line-height: 30px !important;
  width: 100% !important;
  max-width: 100% !important;
  min-height: 60px !important;
  border: 1px solid #7E8ACC !important;
  border-radius: 4px !important;
  padding: 8px 12px 8px 56px !important;
  display: flex;
  align-items: center;
  gap: 8px;
  background-image: url(../images/fe/search-icon.svg);
  background-repeat: no-repeat;
  background-position: 20px center;
  background-size: 16px 16px;
}

.cmn-input-type:focus {
  outline: none;
}

.history-listing-wrapper {
  margin-top: 25px;
  display: flex;
  flex-direction: column;
}

.history-list {
  border: 1px solid #E7E9F7;
  padding: 24px;
  background-color: #fff;
  display: flex;
  flex-direction: column;
}

.history-list+.history-list {
  margin-top: -1px;
}

.history-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 4px;
}

.cmn-text-color {
  color: #7E8ACC;
}

.cmn-text-color:hover,
.history-header-right:hover {
  color: #000;
}

.history-header-left {
  display: flex;
  align-items: center;
  column-gap: 24px;
  font-size: 13px;
  line-height: 18px;
  font-weight: 600;
}

.history-header-right {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #283897;
  font-size: 13px;
  line-height: 18px;
  font-weight: 600;
}

.history-header-right {
  display: flex;
  flex-direction: row;
  gap: 30px;
}

.history-header-right a.project-name-link {
  color: #737373;
  font-size: 13px;
  line-height: 18px;
  font-weight: 600;
}

.history-header-right a.project-name-link:hover {
  color: #000;
}

.history-header-right a.total-counts {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #283897;
  font-size: 13px;
  line-height: 18px;
  font-weight: 600;
}

.history-content-wrapper {
  display: flex;
  flex-direction: row;
  align-items: flex-end;
  gap: 16px;
  justify-content: space-between;
}

.history-prompt-text {
  font-size: 18px;
  line-height: 30px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.history-prompt-doc {
  border: 1px solid #7E8ACC;
  min-height: 32px;
  max-width: 300px;
  padding: 6px 10px;
  border-radius: 4px;
  color: #000000;
  font-size: 12px;
  line-height: 18px;
  /* display: flex; */
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  display: none;
}

.prompt-doc-name {
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
}

.history-prompt-doc:hover {
  background-color: #7e8acc57;
}

.download-icon {
  margin-left: auto;
}

.project-main-screen {
  display: flex;
  height: 100%;
  overflow: auto;
}

.chat-main-screen {
  display: flex;
  height: 100%;
  flex-direction: column;
  overflow: auto;
  flex-wrap: nowrap;
}

.chat-left-side {
  border: 1px solid #E7E9F7;
}

.cmn-left-side-wrap {
  margin: 16px;
  width: 370px;
  display: flex;
  flex-direction: column;
}

.chat-prompt-listing-wrap {
  display: flex;
  flex-direction: column;
}

.chat-prompt-list {
  background-color: #fff;
  padding: 8px;
  font-size: 13px;
  line-height: 18px;
  color: #000;
}

.chat-prompt-list span {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.chat-prompt-list:not(:last-child) {
  border-bottom: 1px solid #E7E9F7;
}

.selected-prompt {
  background-color: #0055FF;
  color: #fff;
}

.cmn-right-side-wrap {
  /* max-width: calc(100% - 402px); */
  width: 100%;
  background-color: #fff;
  display: flex;
  flex-direction: column;
  padding: 16px 24px 16px 16px;
  /* height: 100%; */
  flex-grow: 1;
  overflow-y: auto;
}

.chat-prompt {
  margin-top: 0px;
  padding-left: 24px;
  padding-right: 24px;
  padding-bottom: 24px;
  background-color: #FFFFFF;
  flex-shrink: 0;
}

.highlighted-message-wrapper {
  background-color: #0055FF;
  padding: 16px 24px;
  display: flex;
  flex-direction: column;
  row-gap: 20px;
  border-bottom-left-radius: 16px;
  border-bottom-right-radius: 16px;
}

.top-border-radius {
  border-top-left-radius: 16px;
  border-top-right-radius: 16px;
}

.highlighted-message-head {
  display: flex;
  flex-wrap: wrap;
  flex-direction: row;
  justify-content: space-between;
}

.show-settings {
  font-size: 14px;
  line-height: 20px;
}

.show-settings,
.refresh-icon,
.proofread-icon {
  color: #fff;
  display: flex;
  align-items: center;
  column-gap: 4px;
  cursor: pointer;
  transition: color 0.2s ease;
}

.show-settings:hover {
  color: #e0e0e0;
}

/* Settings Accordion Styles */
.settings-accordion {
  background: #283897;
  border-top-left-radius: 16px;
  border-top-right-radius: 16px;
  overflow: hidden;
  transition: all 0.3s ease;
  width: 100%;
}

.setting-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.setting-item:last-child {
  border-bottom: none;
}

.setting-label {
  color: #fff;
  font-size: 14px;
  cursor: pointer;
}

/* Toggle Switch */
.switch {
  position: relative;
  display: inline-block;
  width: 40px;
  height: 20px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  transition: .4s;
  border-radius: 20px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 16px;
  width: 16px;
  left: 2px;
  bottom: 2px;
  background-color: white;
  transition: .4s;
  border-radius: 50%;
}

input:checked+.slider {
  background-color: #263796;
}

input:focus+.slider {
  box-shadow: 0 0 1px #263796;
}

input:checked+.slider:before {
  transform: translateX(20px);
}

/* Rounded sliders */
.slider.round {
  border-radius: 20px;
}

.slider.round:before {
  border-radius: 50%;
}

.refresh-icon,
.proofread-icon {
  padding: 0 5px;
}

.highlight-prompt-text {
  color: #fff;
  font-size: 13px;
  line-height: 18px;
}

.chat-prompt-content-wrapper {
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  row-gap: 24px;
  flex: 1;
  /* overflow-y: auto; */
}

.chat-multiple-action-wrap {
  /* display: flex; */
  align-items: center;
  justify-content: space-between;
}

.fullscreen-overlay .chat-multiple-action-wrap {
  padding: 0 16px;
}

.chat-multiple-option {
  display: flex;
  align-items: center;
  gap: 8px;
}

.chat-prompt-multiple-item {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  color: #2A295C;
}

.chat-prompt-multiple-item:hover,
.selected-prompt-option,
.active-source-icon {
  background-color: #0055FF;
  color: #fff !important;
}

.prompt-response-text,
.prompt-response-head {
  color: #000000;
  font-size: 14px;
  line-height: 20px;
}

.prompt-response-text strong,
.prompt-response-text b,
.prompt-response-head {
  font-weight: 700;
}

.prompt-response-head {
  margin-bottom: 20px;
}

.chat-prompt-suggestions {
  padding: 24px 24px 0;
  margin: 0;
}

.show-setting-icon {
  column-gap: 4px;
}

.fullscreen-overlay {
  width: 100%;
  height: 100%;
  background: #fff;
  padding: 16px 24px 16px 16px;
}

.overlay-content {
  position: relative;
  height: 100%;
}

.overlay-inner {
  display: flex;
  flex-direction: column;
  height: 100%;
  row-gap: 8px;
}

.close-overlay {
  cursor: pointer;
  font-size: 20px;
}

.close-right-panel {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
}

.close-right-panel img {
  width: 12px;
  height: 12px;
  opacity: 0.7;
  transition: opacity 0.2s ease;
}

.close-right-panel:hover img {
  opacity: 1;
}

.right-pane {
  position: relative;
  padding-top: 40px;
  /* Add space for the close button */
}

.prompt-like-dislike-wrap {
  display: flex;
  align-items: center;
  column-gap: 8px;
}

.prompt-response {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  color: #2A295C;
  border-radius: 8px;
}

.prompt-response:hover {
  background-color: #D4D7EA;
}

.prompt-edit-screen-wrapper {
  display: flex;
  flex-direction: column;
  height: 100%;
  position: relative;
}

.prompt-edit-screen-wrapper .chat-prompt {
  margin-top: auto;
}

.prompt-edit-screen-wrapper .prompt-response-text {
  padding: 24px 16px;
}

.text-selection-popover {
  background: #E7E9F7;
  padding: 16px 20px;
  border-radius: 8px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
  display: none;
  z-index: 1000;
  font-size: 14px;
  white-space: nowrap;
}

.text-selection-popover:before {
  content: "";
  position: absolute;
  top: -16px;
  /* arrow below tooltip */
  left: 50%;
  transform: translateX(-50%);
  border-width: 8px;
  border-style: solid;
  border-color: transparent transparent #E7E9F7 transparent;
}

.reformulate-btn {
  background: #fff;
  color: #283897;
  border: none;
  padding: 4px 12px;
  border-radius: 32px;
  cursor: pointer;
  font-size: 14px;
  line-height: 20px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  column-gap: 8px;
}

.prompt-response-text::selection,
.text-selection-highlight::selection {
  background-color: rgb(252, 189, 76, 0.3);
}

.prompt-sources-wrapper {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
}

.prompt-source-wrapper {
  background-color: #F6F6F6;
  padding: 24px 16px;
}

.actual-prompt-wrapper {
  padding: 24px;
}

.prompt-source-number {
  font-size: 18px;
  line-height: 30px;
  color: #000;
  font-weight: 700;
  margin-bottom: 20px;
}

.prompt-source-content {
  overflow: hidden;
}

.prompt-source-item {
  border-bottom: 1px solid #E7E9F7;
}

.source-header {
  display: flex;
  align-items: center;
  padding: 8px;
  cursor: pointer;
  font-weight: bold;
  column-gap: 8px;
}

.prompt-source-item.active .source-header {
  background: #fff;
  color: #333;
}

.source-details {
  overflow: hidden;
  padding: 0 8px;
  background: #fff;
  font-size: 14px;
}

.prompt-source-item.active .source-details {
  display: block;
}

.cmn-prompt-text-wrap h2,
.cmn-prompt-text-wrap h3,
.cmn-prompt-text-wrap h4,
.cmn-prompt-text-wrap h5,
.cmn-prompt-text-wrap h6 {
  margin-bottom: 15px;
}

.cmn-prompt-text-wrap p {
  margin-bottom: 25px;
}

.cmn-prompt-text-wrap ul {
  padding-left: 25px;
  margin-bottom: 25px;
}

.cmn-prompt-text-wrap ul li {
  list-style: disc;
}

.cmn-prompt-text-wrap ul li:not(:last-child) {
  margin-bottom: 4px;
}

.prompt-export-wrapper {
  display: flex;
  flex-direction: column;
}

.prompt-export-content-wrapper {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 24px 16px;
  row-gap: 10px;
}

.prompt-export-header {
  background-color: #F6F6F6;
  padding: 24px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.prompt-export-header h2 {
  font-size: 18px;
  line-height: 30px;
  font-weight: 700;
  color: #000;
}

.prompt-export-download {
  display: flex;
  align-items: center;
  column-gap: 24px;
  width: calc(100% - 88px);
  justify-content: flex-end;
}

.prompt-export-download .cmn-option-dropdown .select2-container .select2-selection--single {
  box-shadow: 0 0 8px rgb(163, 163, 163, 0.72);
  border: 0px;
}

.generate-btn {
  font-size: 14px;
  line-height: 20px;
  font-weight: 600;
  color: #283897;
  border: 1px solid #283897;
  padding: 8px 24px;
  border-radius: 32px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  column-gap: 8px;
  background-color: #fff;
  transition: all 0.3s ease-in-out;
}

.generate-btn:hover {
  background-color: #283897;
  color: #fff;
}



.project-header-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.project-header {
  font-size: 18px;
  line-height: 30px;
  font-weight: 700;
  color: #000;
}

.project-btn {
  border: 0px;
  background-color: transparent;
  padding: 0px;
  cursor: pointer;
}

.project-listing-wrap {
  display: flex;
  flex-direction: column;
  row-gap: 8px;
}

.project-list-item {
  min-height: 44px;
  padding: 7px 8px;
  border: 1px solid #E7E9F7;
  border-radius: 8px;
  background-color: #fff;
  color: #000;
  font-size: 16px;
  line-height: 28px;
  display: block;
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;
}

.project-list-item img {
  padding-right: 5px;
}

.project-list-item:hover {
  border-color: #0055FF;
}

.project-list-item.project-open {
  background-color: #0055FF;
  color: #fff;
}

.project-right-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 0;
  flex-wrap: wrap;
}

.project-name {
  width: calc(100% - 230px);
}

.opportunity-id input,
.project-name input {
  border: 1px solid #7E87C0;
  border-radius: 8px;
  padding: 12px 16px;
  color: #070B1E;
  font-size: 14px;
  line-height: 20px;
  font-weight: 600;
  width: 100%;
}

.opportunity-id {
  width: calc(100% - 330px);
}

.project-action-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.project-use-prompt-btn {
  font-size: 14px;
  line-height: 20px;
  font-weight: 600;
  color: #fff;
  border: 1px solid #18215A;
  padding: 8px 18px;
  border-radius: 32px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  column-gap: 8px;
  background-color: #18215A;
  transition: all 0.3s ease-in-out;
  min-height: 44px;
}

.project-use-prompt-btn:hover {
  background-color: #fff;
  color: #18215A;
}

.project-delete-btn {
  border-radius: 50%;
  border: 1px solid #283897;
  color: #283897;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: transparent;
  cursor: pointer;
  transition: all 0.3s ease-in-out;
}

.project-use-prompt-btn.disabled,
.project-delete-btn.disabled {
  opacity: 0.6;
  cursor: not-allowed;
  pointer-events: none;
  /* Prevents click events entirely */
}

.project-delete-btn:hover {
  background-color: #283897;
  color: #fff;
}

.project-prompt-options-wrapper {
  display: flex;
  flex-direction: column;
}

.project-prompt-options {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  column-gap: 48px;
  padding: 24px 0;
  border-bottom: 1px dashed #7E8ACC;
}

.project-prompt-options.project-multiple-prompt {
  display: flex;
  padding: 0px 0 24px 0;
  margin: 0px;
}

.project-prompt-options .option-section {
  border: 0px;
  width: 100%;
}

.project-prompt-options .options-header {
  padding: 0px;
  row-gap: 24px;
}

.project-prompt-options .option-body {
  padding: 0px 30px;
  width: 100%;
}

.project-prompt-options .cmn-file-upload-full-grid {
  row-gap: 24px;
}

.project-selected {
  width: calc(100% - 210px);
  background-color: #0055FF;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 24px;
  height: 100%;
}

.project-title-wrap {
  display: flex;
  align-items: center;
  column-gap: 8px;
  font-size: 14px;
  line-height: 20px;
  color: #fff;
}

.project-title-wrap svg {
  width: 20px;
  height: 20px;
}

.project-show-setting {
  background-color: transparent;
  border: 0px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  min-width: 200px;
  column-gap: 4px;
  cursor: pointer;
  color: #fff;
  font-size: 14px;
  line-height: 20px;
  font-weight: 600;
  padding: 4px 12px;
}

#projectData {
  position: relative;
}

.project-overlay-loader {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.8);
  z-index: 99;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 8px;
}

.project-overlay-loader .loader-text {
  font-size: 18px;
  font-weight: 600;
  color: #333;
  background: white;
  padding: 10px 20px;
  border-radius: 4px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.close-selected-project {
  background-color: transparent;
  padding: 0px;
  border: 0px;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

/* Chat Prompt Multiple Action Alignment */
.chat-multiple-action-wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.chat-multiple-option {
  display: flex;
}

.prompt-like-dislike-wrap {
  display: flex;
  gap: 10px;
}

.prompt-response.active svg path {
  fill: #1062cd !important;
  stroke: #1062cd !important;
}

.prompt-response.active svg rect {
  stroke: #1062cd !important;
}

.tooltip {
  position: relative;
  cursor: pointer;
}

/* Tooltip text */
.tooltip .tooltip-text {
  white-space: nowrap;
  visibility: hidden;
  width: auto;
  background-color: #000;
  color: #fff;
  text-align: center;
  border-radius: 6px;
  padding: 4px 8px;
  font-size: 12px;
  position: absolute;
  z-index: 10;
  top: 120%;
  /* Position above element */
  left: 50%;
  transform: translateX(-50%);
  opacity: 0;
  transition: opacity 0.3s;
}

/* Tooltip arrow */
/* .tooltip .tooltip-text::after {
  content: "";
  position: absolute;
  bottom: 100%;
  left: 50%;
  margin-left: -5px;
  border-width: 5px;
  border-style: solid;
  border-color: transparent transparent #000 transparent;
} */

/* Show on hover */
.tooltip:hover .tooltip-text {
  visibility: visible;
  opacity: 1;
}

.tooltip-text::before {
  background-color: transparent !important;
}

a:hover,
.jump-to-home:hover {
  cursor: pointer;
}

#toast,
#error,
#toast_message {
  visibility: hidden;
  min-width: 400px;
  min-height: 68px;
  background: #fff;
  border: 1px solid #E7E9F7;
  color: #000000;
  font-size: 14px;
  line-height: 20px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  border-radius: 8px;
  padding: 4px 18px;
  position: fixed;
  left: 50%;
  bottom: 30px;
  transform: translateX(-50%);
  font-size: 14px;
  z-index: 9999;
  opacity: 0;
  transition: opacity 0.5s, bottom 0.5s;
  font-weight: 500;
  column-gap: 10px;
  box-shadow: 0px 10px 15px #0000004a;
}

#toast_message.error {
  background-color: rgb(245, 74, 31);
  color: #FFFFFF;
}

#toast img,
#error img,
#toast_message img {
  width: 18px;
}

#toast.show,
#error.show,
#toast_message.show {
  visibility: visible;
  opacity: 1;
  bottom: 50px;
}

.start-btn.disabled {
  cursor: not-allowed;
  background-color: #ccc;
  border: 1px solid #999;
  opacity: 0.6;
}

.prompt-source-item pre {
  white-space: pre-wrap;
  word-wrap: break-word;
  overflow-wrap: break-word;
  word-break: break-all;
}

.output-text * {
  margin: revert;
  padding: revert;
}

.output-text h1,
.output-text h2,
.output-text h3,
.output-text h4,
.output-text h5,
.output-text h6 {
  line-height: 1.1;
}

.fix-tools {
  display: flex;
}

/* Icon button styles */
.icon-button {
  position: relative;
  cursor: pointer;
  padding: 5px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.2s, color 0.2s;
  color: #666;
}

.icon-button:hover {
  color: #263796;
  opacity: 0.9;
}

/* Position specific icons */
.chat-prompt-multiple-item {
  margin: 0 5px;
}

/* --- NEW PROOFREADING PROGRESS BAR OVERLAY STYLES --- */
#overlay {
  position: fixed;
  /* Ensures it overlays the whole page */
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  /* Dark, semi-transparent background */
  z-index: 9999;
  /* Ensure it's on top of everything */
  display: none;
  /* Controlled by show/hideProofreadOverlay */
  justify-content: center;
  align-items: center;
  flex-direction: column;
  color: white;
}

#progress-container {
  width: 90%;
  max-width: 450px;
  text-align: center;
  padding: 20px;
  background-color: #333;
  border-radius: 8px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
}

#proofread-status-message {
  margin-bottom: 15px;
  font-size: 1.2em;
  font-weight: bold;
  color: #fff;
}

#progress-bar-wrapper {
  width: 100%;
  background-color: #555;
  border-radius: 4px;
  overflow: hidden;
}

#progress-bar {
  height: 18px;
  background-color: #4CAF50;
  /* Green color for progress */
  width: 0%;
  border-radius: 4px;
  transition: width 0.5s ease-in-out;
  /* Smooth transition */
}

#progress-text {
  margin-top: 10px;
  font-size: 0.9em;
  font-weight: bold;
  color: #fff;
}

.split-view-container {
  display: flex;
  width: 100%;
  transition: all 0.3s ease-in-out;
}

.left-pane {
  width: 50%;
  transition: width 0.3s ease;
  overflow-y: auto;
  padding-right: 10px;
}

.right-pane {
  width: 50%;
  background: #fafbff;
  border-left: 1px solid #ddd;
  padding: 15px;
  overflow-y: auto;
  max-height: 100vh;
}

.highlighted-message-wrapper {
  transition: opacity 0.3s ease;
}



.assistant-name {
  font-size: 16px;
  font-weight: 600;
  color: #FFF;
  letter-spacing: 2px;
}


/*
 * Assuming the main container is .settings-content
 * and the wrapper is .settings-content-wrapper
 */

/* Main Container Styling to match screenshot's blue background */
.settings-content-wrapper {
  color: #ffffff;
}

/* Source of Truth Header */
.source-of-truth-header {
  display: flex;
  align-items: center;
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 20px;
}

.source-of-truth-header .header-icon {
  margin-right: 10px;
  font-size: 1.5rem;
}

/* Documents Section Title */
.document-section-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 15px;
}

/* Container for the filter and document list items */
.source-items-container {
  /* Use CSS Grid for the clean two-column layout */
  display: grid;
  /* Create two columns of equal width */
  grid-template-columns: 1fr 1fr;
  gap: 10px 0;
  /* Vertical gap 10px, no horizontal gap (items are wide) */
  padding: 0;
  list-style: none;
  /* Remove any default list styling */
}

/* Styling for each individual item (the <span> tags) */
.source-item {
  display: flex;
  align-items: center;
  font-size: 0.95rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Adjust SVG icon spacing if needed */
.source-item svg {
  margin-right: 8px;
  /* Ensure icons are white */
  fill: #ffffff;
}

/* --- New CSS for the Assistant Section --- */

.assistant-section,
.guided-view-extra-details {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.guided-view-extra-details {
  padding: 0px 24px 10px 24px;
}

.source-of-truth-section,
.assistant-section,
.sodexo-library-section {
  padding: 16px 24px;
}

.assistant-header-group {
  display: flex;
  align-items: center;
  font-size: 1.2rem;
  font-weight: 600;
}

/* --- Separator Line --- */
.separator-line {
  border-top: 1px dashed #FFFFFF;
}

/* --- Adjustments for Header Alignment --- */
/* The general header styles for both sections */
.assistant-header-group .header-icon,
.source-of-truth-header .header-icon {
  margin-right: 10px;
  font-size: 1.3rem;
}

/* Ensure the Source of Truth header is still styled correctly */
.source-of-truth-header {
  display: flex;
  align-items: center;
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 20px;
}

.cmn-multiple-dropdown>span {
  font-size: 13px;
}

.font-md {
  font-size: 14px;
  font-weight: 600;
}

.sodexo-library {
  justify-content: space-between;
  margin-top: 5px;
  margin-bottom: 5px;
}

#sodexo-library .cmn-checkbox-style {
  background: #DBEAFE;
  width: 30%;
  padding: 6px 0px 6px 34px;
  display: flex;
  align-content: center;
  flex-direction: row;
  justify-content: flex-start;
  border-radius: 8px;
}

#sodexo-library .cmn-check-option {
  top: 8px;
  left: 10px;
}

/* 1. Style the Search Trigger */
.search-trigger {
  display: inline-block;
  padding: 10px 15px;
  background-color: #007bff;
  color: white;
  text-decoration: none;
  border-radius: 5px;
  margin-bottom: 20px;
  cursor: pointer;
}

/* 2. Initial State of the Search Container */
.search-container {
  /* To keep the search box on the same line as the trigger (optional) */
  display: inline-block;
  /* Hide the box initially by setting its width to 0 and hiding overflow */
  width: 0;
  overflow: hidden;
  /* Transition for smooth slide effect */
  transition: width 0.3s ease-out;
  /* Optional: To align it vertically with the trigger */
  vertical-align: middle;
}

/* 3. Style the Search Input */
.search-input {
  /* Ensure the input is fully visible when container is open */
  width: 250px;
  /* Desired final width */
  padding: 10px;
  box-sizing: border-box;
  /* Include padding/border in the element's total width/height */
  border-radius: 5px;
  /* Hide input visibility when container is closed */
  opacity: 0;
  transition: opacity 0.3s ease-out;
}

/* 4. 'Open' State (The Slide-In Effect) */
.search-container.open {
  /* Expand the container width to reveal the input */
  width: 250px;
  /* Match the input's width */
}

.search-container.open .search-input {
  /* Make the input visible */
  opacity: 1;
}

.search-container.open .search-input:focus-visible {
  border: 0;
}

#proofreadBtn {
  display: none;
}

.guided-assistant-fields input[type="text"] {
  width: 100%;
  margin: 3px 0;
  padding: 12px 16px;
  border: 1px solid #2A295C;
  border-radius: 8px;
  line-height: 20px;
  font-size: 14px;
}

.assistant-detail-section {
  display: flex;
  flex-direction: column;
  margin-top: 20px;
}

.guided-assistant-fields {
  margin-top: 24px;
}

.guided-assistant-fields .option-selection-wrap {
  display: flex;
  flex-direction: column;
  row-gap: 20px;
}

.guided-assistant-fields .option-selection-wrap label,
.web-search-assistant-fields .cmn-multiple-dropdown {
  padding: 0;
}

.web-search-assistant-fields .cmn-multiple-dropdown {
  margin-top: 20px;
}

.sample-text {
  color: #454545;
}

.assistant-detail-section {
  width: 95%;
}

.websearch-page .prompt-response-text p,
.websearch-page .prompt-response-text h1,
.websearch-page .prompt-response-text h2,
.websearch-page .prompt-response-text h3,
.websearch-page .prompt-response-text h4,
.websearch-page .prompt-response-text h5,
.websearch-page .prompt-response-text h6,
.websearch-page .prompt-response-text ul,
.websearch-page .prompt-response-text ol,
.websearch-page .prompt-response-text li {
  margin: 0;
}


.login-page .login-form-section {
  background-color: #FFFFFF;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 60px 0;
  justify-content: center;
  height: calc(100vh - 50vh);
  min-height: 535px;
}

.login-page .login-form-section .form-group {
  display: flex;
  flex-direction: column;
  width: 500px;
  margin: 10px 0;
  align-items: flex-start;
}

.login-page .login-form-section .send_message3 {
  width: 500px;
  margin: 50px 0 50px 0;
}

.login-page .login-form-section .form-group label {
  font-size: 13px;
  color: #18215A;
}

input[type="email"],
input[type="text"],
input[type="password"] {
  width: 100%;
  margin: 3px 0;
  padding: 12px 16px;
  border: 1px solid #2A295C;
  border-radius: 8px;
  line-height: 20px;
  font-size: 14px;
}

input[type="button"] {
  width: 100%;
  padding: 12px 16px;
  border-radius: 32px;
  border: 0;
  background: #18215A;
  color: #FFFFFF;
  cursor: pointer;
  font-size: 14px;
}

input[type="button"].disabled {
  background: #5f6dc0;
}

input:focus-active {
  border-color: #2A295C;
}

.login-page .login-form-section .form-group span {
  font-size: 13px;
  color: #686767;
}

.login-page .email-addresses-section {
  display: flex;
  flex-direction: column;
  background-color: #F6F6F6;
  padding: 25px 0;
}

.login-page .email-addresses-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 25px 0;
}

.login-page .email-addresses-content h5 {
  font-weight: 700;
  font-size: 20px;
  margin-bottom: 12px;
}

.login-page .email-addresses-content p {
  font-size: 16px;
  font-weight: 400;
}

.login-page .email-addresses-section ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  list-style: none;
  margin: 0 30px;
}

.login-page .email-addresses-section ul ul {
  margin: 20px 0 20px 0;
  width: 300px;
  display: flex;
  justify-content: flex-start;
  flex-direction: column;
}

.login-page .email-addresses-section ul li:first-child {
  font-size: 16px;
  letter-spacing: 0.4px;
  font-weight: 600;
}

.login-page .email-addresses-section ul li:nth-child(2) {
  font-size: 12px;
  letter-spacing: 0.4px;
  font-weight: 400;
}

.login-page .email-addresses-section ul li:nth-child(2):hover {
  text-decoration: underline;
}

/* Basic styling to position the icon */
.login-page .password-container {
  position: relative;
  display: inline-block;
  /* Adjust as needed */
}

.login-page #passwordInput {
  padding-right: 30px;
  /* Make space for the icon */
}

.login-page .toggle-password {
  position: absolute;
  top: 44px;
  /* Center vertically */
  right: 10px;
  /* Position from the right */
  transform: translateY(-50%);
  /* Fine-tune vertical centering */
  cursor: pointer;
  color: #999;
  /* Grey color for the icon */
}

/* Loader Styles */
.project-overlay-loader {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.8);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10;
}

.loader-text {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  color: #2A295C;
  font-weight: 500;
}

.loader-text svg {
  width: 32px;
  height: 32px;
}

.hide-item {
  display: none !important;
}

.project-select,
.project-select .select2-container {
  width: 100% !important;
  padding: 5px 0;
}

.project-select .select2-selection {
  border: none !important;
  background: #0055ff !important;
  color: #FFFFFF !important;
}

.project-select .select2-container .select2-selection__placeholder,
.project-select #select2-projects-options-container {
  color: #FFFFFF !important;
}

.project-select .select2-container .select2-selection__arrow {
  height: 45px !important;
}

/* Hide the default arrow completely */
.project-select .select2-container .select2-selection__arrow b {
  display: none;
}

/* Add the cross sign in its place */
.project-select .select2-container .select2-selection__arrow::before {
  content: '×';
  color: #FFFFFF;
  font-size: 36px;
  font-weight: 100;
  position: absolute;
  right: 8px;
  top: 37%;
  transform: translateY(-50%);
  cursor: pointer;
}

/* Optional: Change color on hover */
.project-select .select2-container .select2-selection__arrow:hover::before {
  color: #FFFFFF;
}

/* Drag and Drop Active State */
.drag-active {
  border: 2px dashed #007bff;
  background: rgba(0, 123, 255, 0.05);
}

/* Simple Modal Styling */
#filePreviewModal {
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-content {
  background: white;
  padding: 20px;
  border-radius: 8px;
  width: 400px;
}

#fileListPreview {
  list-style: none;
  padding: 0;
  margin: 20px 0;
}

#fileListPreview li {
  display: flex;
  justify-content: space-between;
  padding: 8px;
  border-bottom: 1px solid #eee;
}

.history-list {
  padding: 16px;
  border-bottom: 1px solid #E5E5E5;
  cursor: pointer;
  transition: background-color 0.2s;
}

.history-list:hover {
  background-color: #f5f5f5;
}

.remove-file-btn {
  background: #ff4d4d;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  padding: 0 5px;
}

.inner-page-wrapper .btn-primary,
.inner-page-wrapper .btn-primary:hover {
  background-color: transparent;
  border: none;
}

.inner-page-wrapper .btn-primary:focus {
  background-color: transparent;
  border: none;
}

.inner-page-wrapper .btn-primary:focus-visible {
  background-color: transparent;
  border: none;
}

.inner-page-wrapper .btn-primary:focus-within {
  background-color: transparent;
  border: none;
}

/* Split View Resizer */
.resizer {
  width: 5px;
  cursor: col-resize;
  background-color: #ddd;
  transition: background-color 0.3s;
  z-index: 10;
  flex-shrink: 0;
  /* Prevent resizer from shrinking */
  display: flex;
  align-items: center;
  justify-content: center;
}

.resizer:hover,
.resizer.resizing {
  background-color: #007bff;
  /* Highlight on hover/active */
}

/* Disable selection and transitions during resize for smooth performance */
.split-view-container.resizing {
  cursor: col-resize;
  user-select: none;
}

.split-view-container.resizing .left-pane,
.split-view-container.resizing .right-pane {
  pointer-events: none;
  /* Prevent iframe/text selection interference */
  transition: none;
  /* Disable transition during drag */
}

.dashboard-loader {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #F6F6F6;
  display: flex;
  flex-direction: column;
}

.dashboard-loader .spinner {
  border: 4px solid #f3f3f3;
  border-top: 4px solid #283897;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  animation: spin 1s linear infinite;
}

.dashboard-loading-text {
  margin-top: 15px;
  font-size: 18px;
  color: #18215A;
  font-weight: 600;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

/* Custom Delete Modal Styles */
.custom-modal-overlay {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  align-items: center;
  justify-content: center;
}

.custom-modal-content {
  background: white;
  padding: 25px;
  border-radius: 8px;
  width: 400px;
  max-width: 90%;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.custom-modal-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 20px;
  color: #333;
}

.custom-modal-body {
  margin-bottom: 30px;
  color: #666;
  font-size: 15px;
}

.custom-modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

.custom-modal-footer .cancel-btn {
  padding: 8px 18px;
  border-radius: 6px;
  background: white;
  border: 1px solid #ccc;
  color: #333;
  cursor: pointer;
  font-weight: 500;
}

.custom-modal-footer .delete-btn {
  padding: 8px 18px;
  border-radius: 6px;
  background: #ff4d4f;
  color: white;
  border: none;
  cursor: pointer;
  font-weight: 500;
}

/* Conversation List Delete Icon Layout */
.history-header-right-col {
  display: flex;
  flex-direction: row;
  gap: 30px;
}

.history-counts-col {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
}

.delete-icon-wrapper {
  color: #ff4d4f;
  display: flex;
  align-items: center;
}

/* Skeleton Loader */
.skeleton-loader-container {
  display: flex;
  flex-direction: column;
  gap: 15px;
  width: 100%;
}

.skeleton-list-item {
  background: white;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.skeleton-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.skeleton-header-left {
  display: flex;
  gap: 15px;
}

.skeleton-box {
  background: #e2e5e7;
  border-radius: 4px;
  overflow: hidden;
  position: relative;
}

.skeleton-box::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  transform: translateX(-100%);
  background-image: linear-gradient(90deg,
      rgba(255, 255, 255, 0) 0,
      rgba(255, 255, 255, 0.4) 20%,
      rgba(255, 255, 255, 0.6) 60%,
      rgba(255, 255, 255, 0));
  animation: shimmer 2s infinite;
}

@keyframes shimmer {
  100% {
    transform: translateX(100%);
  }
}

/* Localized Chat Item Loader */
.history-list {
  position: relative;
}

.chat-item-loader-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.7);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 5;
  border-radius: inherit;
}

.chat-item-loader-spinner {
  width: 24px;
  height: 24px;
  border: 3px solid #e2e5e7;
  border-top: 3px solid #283897;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

.good-response.active svg,
.bad-response.active svg {
  fill: #007bff;
  /* Or your preferred "active" color */
  opacity: 1;
}

/* Spinner for the Select2 container while filtersChanged API is in progress */
.select2-container--loading .select2-selection {
  background-color: #f8f9fa !important;
  opacity: 0.7;
  cursor: wait !important;
  pointer-events: none !important;
}

/* Block all clicks on the container while loading */
.select2-container--loading {
  pointer-events: none !important;
  cursor: wait !important;
  position: relative !important;
}

/* Show "Loading..." label at the right edge of the dropdown, using ::before so we
   never touch Select2's internal .select2-selection__rendered DOM (avoids stuck text). */
.select2-container--loading::before {
  content: 'Loading...';
  position: absolute;
  right: 30px;       /* leave room for the Select2 arrow/clear icon */
  top: 50%;
  transform: translateY(-50%);
  font-size: 11px;
  font-style: italic;
  color: #263796;
  white-space: nowrap;
  pointer-events: none;
  z-index: 1;
}

/* Optional: Pulse animation for the labels */
.loading-label {
  color: #263796;
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0% {
    opacity: 1;
  }

  50% {
    opacity: 0.5;
  }

  100% {
    opacity: 1;
  }
}