@import url("/assets/css/colors.css");
@import url("/assets/css/common.css");

select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
}

.paraphrase-container {
  position: relative;
  border: 1px solid var(--border-color);
  border-radius: 0.25rem;
  padding: 10px;
  min-height: 192px;
  background-color: var(--color-white);
  overflow: visible;
}

.row>* {
  padding-right: 0 !important;
  padding-left: 0 !important;
}

.word-counter {
  position: absolute;
  bottom: 10px;
  right: 10px;
  font-size: 0.8rem;
  color: #6c757d;
  padding: 3px 6px;
}

.textarea-wrapper {
  position: relative;
}

.copy-btn {
  position: absolute;
  bottom: 10px;
  right: 10px;
  z-index: 100;
  background: none;
  border: none;
  color: #6c757d;
  font-size: 1.1rem;
  cursor: pointer;
}

.copy-btn:hover {
  color: #0d6efd;
}

/* Highlighting for hoverable text */
.sentence-span {
  position: relative;
  display: inline;
  z-index: 2000;
}

.highlight {
  background-color: rgba(13, 110, 253, 0.1);
}

/* Floating toolbar styling */
.floating-toolbar {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: var(--color-white);
  border: 1px solid var(--border-color);
  border-radius: 4px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  padding: 0;
  z-index: 1000;
  white-space: nowrap;
  margin-top: 5px;
  padding: 8px;
}

.sentence-span.active .floating-toolbar {
  display: flex;
  align-items: center;
}

.toolbar-item {
  background: none;
  border: none;
  padding: 4px 8px;
  cursor: pointer;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  color: #212529;
}

.toolbar-item:not(:last-child) {
  border-right: 1px solid var(--border-color);
}

.toolbar-item.rephrase {
  color: rgba(13, 110, 253, 0.8);
  /* Faded version of Bootstrap primary blue color #0d6efd */
  font-weight: 500;
}

.toolbar-item:hover {
  background-color: rgba(0, 0, 0, 0.05);
}

/* Dropdown menu styling */
.dropdown-menu {
  max-height: 300px;
  /* Increased max height */
  overflow-y: auto;
  min-width: 350px;
  /* Increased width */
  width: max-content;
  /* Allow it to grow based on content */
  max-width: 500px;
  /* Maximum width */
  padding: 8px 0;
}

.dropdown-item {
  white-space: normal;
  padding: 10px 15px !important;
  line-height: 1.5;
  font-size: 0.95rem;
  border-bottom: 1px solid var(--border-color);
  font-weight: 400;
}

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

.dropdown-item:hover {
  background-color: #f8f9fa;
}

.dropdown-item.active {
  background-color: #e9ecef;
  color: #212529;
}

body {
  font-family: "Satoshi";
  margin: 0;
}

.tool-header {
  background: var(--color-white);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.language-selector {
  display: flex;
  gap: 15px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.language-btn {
  padding: 8px 16px;
  border: 2px solid var(--border-color);
  border-radius: 25px;
  background: var(--color-white);
  color: #6c757d;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
}

/* .language-btn:hover {
  border-color: #28a745;
  color: #28a745;
  text-decoration: none;
}

.language-btn.active {
  background: #28a745;
  border-color: #28a745;
  color: white;
} */
.humanize-btn {
  background-color: var(--color-white);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 8px 12px;
  color: #717171;
  font-size: 14px;
  align-items: center;
  font-weight: 500;
}

.humanize-btn:hover {
  background-color: #f5f5f5;
}

.mode-selector {
  display: flex;
  gap: 10px;
  flex-wrap: nowrap;
  padding: 0px 15px;
  /* border-bottom: 1px solid var(--border-color); */
}

.mode-selector-skeleton {
  display: flex;
  gap: 15px;
  flex-wrap: nowrap;
  padding: 0px;
}

.freeze-mode {
  display: flex;
  gap: 10px;
  align-items: center;
  text-align: center;
  padding: 0px 25px;
  color: #676767;
}

/* Delete button styles */
.delete-button {
  position: absolute;
  top: 15px;
  right: 15px;
  /* background: #f8f9fa; */
  border: 1px solid var(--border-color);
  border-radius: 8px;
  width: 28px;
  height: 28px;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #6c757d;
  cursor: pointer;
  transition: all 0.3s ease;
  opacity: 0;
  visibility: hidden;
  z-index: 15;
}

.delete-button-mobile {
  border: 1px solid var(--border-color);
  border-radius: 8px;
  width: 28px;
  height: 28px;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #6c757d;
  cursor: pointer;
}

.delete-button:hover {
  transform: scale(1.1);
  background: #f8f9fa;
}

.delete-button i {
  font-size: 14px;
}

/* Show delete button when textarea has content */
.textarea-container.has-content .delete-button {
  opacity: 1;
  visibility: visible;
}

.mode-title {
  /* padding: 8px 0px; */
  padding: 10px 0px;
  background-color: var(--color-white);
  color: #757682;
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
  transition: all 0.3s ease;
}

.freeze-text {
  color: #676767;
  cursor: pointer;
  padding: 10px 0px;
  font-size: 14px;
  font-weight: 700;
}

.mode-btn {
  /* padding: 8px 2px; */
  /* margin: 0px 8px; */
  padding: 10px 0px;
  background: var(--color-white);
  color: var(--color-gray-500);
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
}

.mode-btn:hover {
  /* border-bottom: 2px solid var(--color-primary-dark); */
  color: var(--color-primary-dark);
}

.mode-btn.active {
  border-bottom: 1px solid var(--color-primary-dark);
  color: var(--color-primary-dark);
  font-weight: 700;
}

.language-item.active {
  box-shadow: 0 -5px 10px -5px rgba(0, 0, 0, 0.1),
    -5px 0 10px -5px rgba(0, 0, 0, 0.1),
    5px 0 10px -5px rgba(0, 0, 0, 0.1);
}

.content-area {
  background: var(--color-white);
  border-radius: 0 12px 12px 12px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  width: 100%;
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 10px;
  border-bottom: 1px solid var(--border-color);
}

.section-title {
  font-weight: 600;
  color: #333;
  padding: 2px;
  margin: 0;
}

.word-count {
  font-size: 12px;
  color: #6c757d;
  background: #f8f9fa;
  padding: 4px 10px;
  border-radius: 12px;
}

.custom-textarea {
  width: 100%;
  border-bottom: none;
  resize: none;
  border-left: none;
  border-right: none;
  padding: 20px 45px 20px 15px;
  font-size: 14px;
  line-height: 1.6;
}

.custom-textarea:focus {
  outline: none;
}

.output-area {
  /* height: 498px; */
  /* border: 1px solid #e9ecef; */
  border-right: none;
  padding: 15px 45px 15px 15px;
  /* overflow-y: auto; */
  background: var(--color-white);
  font-size: 14px;
  width: 100%;
  line-height: 1.6;
  position: relative;
}

.rephrase-btn {
  background: var(--color-primary-light);
  border: none;
  color: var(--color-white);
  padding: 8px 12px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
  /* Add shadow for better visibility */
  position: relative;
}

.rephrase-btn:hover {
  background: var(--color-primary-dark);
  transform: translateY(-2px);
}

.rephrase-btn:disabled {
  background: #6c757d;
  cursor: not-allowed;
  transform: none;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

/* Optional: Add a subtle background when button is sticky */
.section-bottom::before {
  /* content: ""; */
  position: absolute;
  top: -20px;
  left: -20px;
  right: -20px;
  bottom: -10px;
  border-radius: 12px;
  z-index: -1;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.custom-textarea::placeholder {
  color: #888888;
  /* any color you prefer */
}

/* Show background when scrolling */
.section-bottom.scrolled::before {
  opacity: 1;
}

/* Responsive adjustments */
@media (max-width: 990px) {
  .section-bottom {
    justify-content: center;
    padding: 0 15px;
    bottom: 10px;
  }

  .rephrase-btn {
    padding: 8px 12px;
    font-size: 13px;
  }
}

.copy-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  background: #f8f9fa;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  padding: 6px 10px;
  font-size: 12px;
  color: #6c757d;
  cursor: pointer;
  transition: all 0.3s ease;
}

.copy-btn:hover {
  background: #e9ecef;
  color: #495057;
}

.sentence-span {
  cursor: pointer;
  position: relative;
  padding: 2px 4px;
  border-radius: 4px;
  transition: all 0.3s ease;
}

.sentence-span.active {
  background: rgba(40, 167, 69, 0.15);
}

.floating-toolbar {
  position: absolute;
  top: -45px;
  left: 50%;
  transform: translateX(-50%);
  background: #333;
  border-radius: 8px;
  padding: 8px;
  display: none;
  z-index: 1000;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.sentence-span.active .floating-toolbar {
  display: flex;
  gap: 5px;
}

.toolbar-item {
  background: transparent;
  border: none;
  color: var(--color-white);
  padding: 6px 12px;
  border-radius: 4px;
  font-size: 12px;
  cursor: pointer;
  transition: background 0.2s ease;
}

.toolbar-item:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* Add these styles to your CSS file */

/* Output section styling */
.output-section {
  /* padding: 15px; */
  /* min-height: 200px; */
  background-color: #fff;
  /* border: 1px solid #f1f1f1; */
  border-bottom: none;
}

/* Output text styling */
#paraphraseContainer {
  font-size: 16px;
  line-height: 1.6;
  /* color: var(--color-gray-200); */
  outline: none;
  border-bottom-left-radius: 12px;
  border: none;
  /* Preserve line breaks and spacing */

  /* css for long word overflow in output panel */
  /* flex-basis: auto; */
  /* box-sizing: border-box; */
  white-space: pre-wrap;
  /* overflow-y: auto; */
  word-wrap: break-word;
  word-break: break-word;
}

/* Hide the loading indicator by default */
.loading-indicator {
  display: none;
  padding: 10px;
  color: #6c757d;
  font-size: 14px;
}

/* Show loading indicator when active */
.loading-indicator.active {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Remove any span styling that might show classes */
#paraphraseContainer span {
  all: initial;
  color: inherit;
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
}

/* Add smooth transitions for text changes */
#paraphraseContainer span {
  transition: opacity 0.3s ease;
  overflow-wrap: break-word;
}

/* Style for error messages */
.alert-danger {
  background-color: #f8d7da;
  color: #721c24;
  padding: 10px;
  border-radius: 4px;
  border: 1px solid #f5c6cb;
  margin-top: 10px;
}

/* Remove any tooltips or other elements */
#paraphraseContainer .synonym-tooltip,
#paraphraseContainer .floating-toolbar {
  display: none !important;
}

.spinner-border-sm {
  width: 1rem;
  height: 1rem;
}

.divider {
  width: 2px;
  background: #e9ecef;
  margin: 0 15px;
}

.row {
  background: var(--color-blue-500);
  min-height: 93vh;
}

.content-row {
  display: flex;
  flex-direction: row;
}

.textarea-container {
  position: relative;
  width: 100%;
}

.paste-button {
  position: absolute;
  top: 30%;
  left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 12px;
  color: #6c757d;
  cursor: pointer;
  /* transition: all 0.3s ease; */
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 500;
  z-index: 10;
  pointer-events: all;
}

@media (max-width: 990px) {
  .paste-button {
    top: 60%;
  }
}

.paste-button:hover {
  transform: translate(-50%, -50%) scale(1.02);
}

.paste-button i {
  font-size: 24px;
}

.outline-btn {
  background: transparent;
  border: 1px solid var(--color-primary-light);
  color: var(--color-primary-light);
  padding: 8px 12px;
  border-radius: 8px;
  font-weight: 500;
  transition: all 0.3s ease;
}

/* Show paste button only when textarea is empty */
.textarea-container.empty .paste-button {
  opacity: 1;
  visibility: visible;
}

.textarea-container.has-content .paste-button {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* Placeholder styling when paste button is visible */
.textarea-container.empty .custom-textarea::placeholder {
  opacity: 0.3;
}

.section-bottom {
  display: flex;
  align-items: center;
  justify-content: end;
  position: sticky;
  bottom: 0px;
  z-index: 100;
  height: 70px;
  background: var(--color-white);
  padding: 10px 15px;
  border-top: 1px solid var(--border-color);
  border-bottom-left-radius: 12px;
}

.tool-title {
  text-align: center;
}

.tool-title span {
  padding: 10px;
  font-weight: 700;
  color: #485c6e;
  font-size: 36px;
}

.tool-title p {
  color: #485c6e;
  font-size: 14px;
}

.title-container {
  display: flex;
  justify-content: center;
}

.wrapper {
  display: flex;
  padding: 15px 0px 0px 0px;
}

.additional-features {
  /* position: absolute; */
  /* padding: 10px; */
  display: flex;
  justify-content: space-between;
  flex-direction: column;
  right: -120px;
  /* height: 78%; */
}

.feature-items-1 {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.item {
  cursor: pointer;
}

.item-stroke {
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--color-gray-900);
  text-align: center;
  white-space: normal;
  width: 100px;
}

.item:hover svg path {
  /* fill: var(--color-gray-700); */
}

.item-stroke:hover svg path {
  /* fill: var(--color-gray-700); */
  /* Change to your desired hover color */
  /* stroke: var(--color-gray-700); */
  cursor: pointer;
}

.item-text:hover {
  color: var(--color-gray-700);
  cursor: pointer;
}

.feature-items-2 {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.item {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  font-size: 14px;
  gap: 8px;
}

.item span {
  white-space: normal;
  text-align: center;
  width: 100px;
  color: #717171;
}

.content-wrapper {
  width: 100%;
  height: 100%;
  padding-bottom: 20px;
}

/* For even smaller devices (phones in portrait) */
@media (max-width: 576px) {
  .additional-features {
    display: none;
  }
}

/* Or for tablet devices in portrait */
@media (max-width: 992px) {
  .additional-features {
    display: none !important;
  }
}

@media (max-width: 990px) {
  .content-row {
    flex-direction: column;
    gap: 10px;
    /* Adds space between stacked items */
  }
}

.sentence-span:hover .rephrase-btn,
.sentence-span.selected .rephrase-btn {
  opacity: 1;
}

/* Synonym tooltips */
.synonym-word {
  position: relative;
  color: #cc3300;
  cursor: pointer;
}

.synonym-word.active {
  background-color: #fff8e6;
}

.synonym-tooltip {
  display: none;
  position: absolute;
  /* ... rest of your tooltip styles ... */
}

.synonym-word.active .synonym-tooltip {
  display: block;
}

/* Enhanced sentence span styles */
.sentence-span {
  position: relative;
  display: inline;
  transition: background-color 0.2s ease;
  border-radius: 3px;
  padding: 2px 4px;
  margin: 1px;
}

.sentence-span.active-tooltip {
  background-color: #e3f2fd !important;
}

/* Word span styles for synonym functionality */
.word-span {
  position: relative;
  display: inline;
  cursor: text;
}

/* Rephrase Tooltip Styles */
.rephrase-tooltip {
  background: #ffffff;
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  padding: 6px 12px;
  user-select: none;
  /* Optional: disable text selection */
  pointer-events: auto;
  /* Allow hovering/clicking if needed */
}

.rephrase-tooltip-btn {
  background: var(--color-primary);
  color: var(--color-primary-light);
  border: none;
  border-radius: 16px;
  padding: 6px 12px;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 100px;
  position: relative;
  transition: all 0.2s ease;
}

.rephrase-tooltip-btn:hover {
  background: var(--color-primary-dark);
  color: var(--color-white);
}

.rephrase-tooltip-btn:disabled {
  background: var(--color-primary-light);
  cursor: not-allowed;
}

.loading-rephrases {
  padding: 10px 15px;
}

/* Spinner Styles */
.btn-text {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 20px;
}

.loading-spinner {
  display: flex;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: white;
  animation: spin 1s linear infinite;
  color: #000;
  margin-left: 8px;
}

/* default (1em) */
.loading-spinner-btn {
  display: flex;
  width: 22px;
  height: 22px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: white;
  animation: spin 1s linear infinite;
  color: #000;
  margin-left: 8px;
}


@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Ensure the spinner container is properly aligned */
.btn-spinner {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 100%;
}

/* Positioning adjustments
.sentence-span.active-tooltip {
    z-index: 1000;
} */

/* Synonym dropdown styles */
.synonym-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 1001;
  background: white;
  border: 1px solid #dee2e6;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  min-width: 200px;
  max-width: 300px;
  margin-top: 5px;
  animation: dropdownFadeIn 0.2s ease;
}

.synonym-header {
  background: #f8f9fa;
  padding: 8px 12px;
  border-bottom: 1px solid #dee2e6;
  font-weight: 600;
  font-size: 12px;
  color: #495057;
  border-radius: 7px 7px 0 0;
}

.synonym-list {
  max-height: 200px;
  overflow-y: auto;
  min-width: 120px;
}

.synonym-option {
  padding: 8px 12px;
  cursor: pointer;
  font-size: 14px;
  color: #495057;
  transition: background-color 0.2s ease;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.synonym-option-item:hover {
  background-color: var(--color-primary-ultra-light);
  color: var(--color-primary-dark);
}

.synonym-option:last-child {
  border-bottom: none;
}

.synonym-loading {
  padding: 12px;
  text-align: center;
  color: #6c757d;
  font-size: 12px;
}

.close-synonym-btn {
  width: 100%;
  background: #f8f9fa;
  color: #6c757d;
  border: none;
  border-top: 1px solid #dee2e6;
  padding: 8px 12px;
  font-size: 12px;
  cursor: pointer;
  border-radius: 0 0 7px 7px;
  transition: background-color 0.2s ease;
}

.close-synonym-btn:hover {
  background: #e9ecef;
  color: #495057;
}

/* SVG Spinner Styles */
.btn-spinner {
  display: none;
  width: 20px;
  height: 20px;
  margin-left: 8px;
}

.spinner-svg {
  animation: rotate 1.5s linear infinite;
  width: 20px;
  height: 20px;
  margin-left: 4px;
}

.synonym-spinner-svg {
  animation: rotate 1.5s linear infinite;
  width: 20px;
  height: 20px;
  color: var(--color-primary-light);
  align-items: center;
}

.spinner-circle {
  stroke: currentColor;
  stroke-linecap: round;
  animation: dash 1.5s ease-in-out infinite;
}

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

@keyframes dash {
  0% {
    stroke-dasharray: 1, 150;
    stroke-dashoffset: 0;
  }

  50% {
    stroke-dasharray: 90, 150;
    stroke-dashoffset: -35;
  }

  100% {
    stroke-dasharray: 90, 150;
    stroke-dashoffset: -124;
  }
}

/* Enhanced hover effects for better UX */
.sentence-span {
  transition: all 0.2s ease;
}

/* .sentence-span:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  } */

.word-span {
  transition: background-color 0.2s ease;
  padding: 0 2px;
  border-radius: 2px;
}

.synonym-dropdown {
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: white;
  border: 1px solid #ddd;
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  min-width: 150px;
  margin-bottom: 5px;
}

.synonym-header {
  padding: 8px 12px;
  font-weight: bold;
  border-bottom: 1px solid #eee;
}

.synonym-option {
  padding: 6px 12px;
  cursor: pointer;
}

.synonym-option:hover {
  background-color: #f8f9fa;
}

.synonym-loading {
  padding: 12px;
  text-align: center;
  color: #666;
  display: flex;
  justify-content: center;
  width: 100%;
}

/* Remove scrollbar visibility but keep scrolling functionality */
.custom-textarea,
.output-area {
  scrollbar-width: none;
  /* For Firefox */
  -ms-overflow-style: none;
  /* For IE and Edge */
}

/* Hide scrollbar for Chrome, Safari and Opera */
.custom-textarea::-webkit-scrollbar,
.output-area::-webkit-scrollbar {
  display: none;
}

/* Make sure both containers have the same height */
.custom-textarea {
  /* height: 500px; */
  /* Match output-area height */
  resize: none;
  /* Prevent manual resizing */
}

/* Remove borders to make them look more seamless */

.output-area {
  border: none !important;
}

@media (max-width: 990px) {
  .content-row {
    flex-direction: column;
  }

  .section-dot {
    display: none;
  }

  .custom-textarea {
    height: 0px !important;
    /* Smaller height for mobile */
    width: 100%;
    padding: 15px 45px 15px 15px;
  }

  .output-area {
    border-left: none !important;
    border-top: 1px solid var(--border-color);
  }

  .output-area {
    /* height: 0px; */
    width: 100%;
  }
}


.synonym-dropdown-forced,
.synonym-tooltip,
.synonym-dropdown-debug {
  background: var(--color-white);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  padding: 0;
  min-width: 250px;
  max-width: 350px;
}

/* .synonym-dropdown-portal {
    background: var(--color-white);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  padding: 0;
  position: absolute;
  z-index: 999;
} */

.synonym-dropdown-portal {
  position: absolute;
  left: -12px;
  min-width: 100px;
  background: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  border-radius: 4px;
  z-index: 100;
  margin-top: 2px;
  max-height: 300px;
  overflow-y: auto;
}


.synonym-wrapper {
  position: relative;
  display: inline-block;
}

.synonym-dropdown {
  background: var(--color-white);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  padding: 10px;
  min-width: 250px;
  z-index: 1000;
}

.synonym-header {
  font-weight: bold;
  /* margin-bottom: 8px; */
  padding-bottom: 4px;
  border-bottom: 1px solid var(--border-color);
  color: #333;
}

.synonym-context {
  font-size: 12px;
  color: #666;
  font-style: italic;
  margin-bottom: 8px;
  padding: 4px 8px;
  background-color: var(--color-gray-800);
  border-radius: 4px;
}

.synonym-option {
  padding: 8px 12px;
  cursor: pointer;
  border-radius: 4px;
  transition: background-color 0.2s;
}

.synonym-option:hover {
  background-color: var(--color-gray-800);
}

.synonym-loading {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px;
}

.synonym-loading .spinner {
  width: 16px;
  height: 16px;
  border: 2px solid var(--border-color);
  border-top-color: var(--color-blue-100);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.synonym-error {
  color: #dc3545;
  padding: 10px;
}

.synonym-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  padding: 12px 15px 8px 15px;
  border-bottom: 1px solid var(--border-color);
  background-color: var(--color-gray-800);
  border-radius: 8px 8px 0 0;
  font-size: 14px;
}

.synonym-close-btn {
  background: none;
  border: none;
  font-size: 18px;
  cursor: pointer;
  color: var(--color-gray-600);
  padding: 0;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background-color 0.2s;
}

.synonym-close-btn:hover {
  background-color: var(--color-gray-800);
  color: var(--color-gray-600);
}

.synonym-option-item {
  padding: 10px 15px;
  cursor: pointer;
  transition: background-color 0.2s ease;
  font-size: 14px;
  color: #333;
  white-space: nowrap;
}

/* .synonym-option-item:hover {
         background-color: #e3f2fd;
         color: #1976d2;
     } */

.synonym-loading {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 15px;
}

.synonym-loading>div {
  display: flex;
  align-items: center;
  gap: 10px;
}

.spinner {
  width: 16px;
  height: 16px;
  border: 2px solid var(--border-color);
  border-top-color: var(--color-blue-100);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* rephrase dropdown */

/* Rephrase Dropdown Styles */
.rephrase-dropdown-portal {
  background: var(--color-white);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
  overflow: hidden;
  font-size: 14px;
  line-height: 1.5;
  display: flex !important;
  flex-direction: column !important;

  /* Animation properties */
  /* animation: dropdownOpen 0.3s ease-out forwards; */
  transform-origin: left center;
  opacity: 0;
}

/* @keyframes dropdownOpen {
  0% {
    transform: scaleX(0);
    opacity: 0;
    min-width: 0;
    max-width: 0;
  }

  80% {
    transform: scaleX(1.02);
    opacity: 0.8;
  }

  100% {
    transform: scaleX(1);
    opacity: 1;
    min-width: 400px;
    max-width: 600px;
  }
} */

.rephrase-header {
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.rephrase-header span {
  font-weight: 600;
  color: var(--color-gray-700);
  font-size: 15px;
}

.rephrase-close-btn {
  background: none;
  border: none;
  font-size: 20px;
  color: var(--color-gray-500);
  cursor: pointer;
  padding: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  margin: 4px;
  transition: background-color 0.2s ease;
}

.rephrase-close-btn:hover {
  background-color: var(--color-primary-light);
  color: var(--color-white);
}

.rephrase-options {
  max-height: 120px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.rephrase-option-item {
  padding: 8px 16px;
  border-bottom: 1px solid var(--border-color);
  cursor: pointer;
  transition: background-color 0.2s ease;
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

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

.rephrase-option-item:hover {
  background-color: var(--color-primary-ultra-light) !important;
}

.rephrase-option-item:active {
  background-color: var(--color-gray-800);
}

.rephrase-option-text {
  flex: 1;
  line-height: 1.6;
  color: #2c3e50;
}

.rephrase-cancel-btn {
  background: var(--color-gray-500);
  color: var(--color-white);
  border: none;
  padding: 8px 16px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
  transition: background-color 0.2s ease;
}

.rephrase-cancel-btn:hover {
  background: #5a6268;
}

.rephrase-cancel-btn:active {
  background: #495057;
}

/* Scrollbar styling for the dropdown */
.rephrase-options::-webkit-scrollbar {
  width: 6px;
}

.rephrase-options::-webkit-scrollbar-track {
  background: #f1f1f1;
}

.rephrase-options::-webkit-scrollbar-thumb {
  background: #c1c1c1;
  border-radius: 3px;
}

.rephrase-options::-webkit-scrollbar-thumb:hover {
  background: #a8a8a8;
}

/* Responsive adjustments */
@media (max-width: 990px) {
  .rephrase-dropdown-portal {
    min-width: 320px;
    max-width: calc(100vw - 40px);
  }

  .rephrase-option-item {
    padding: 12px 16px;
  }

  .rephrase-header {
    padding: 12px 16px 8px;
  }
}

/* Enhanced highlighting styles for paraphrased text */

.highlighted-text {
  display: inline;
  padding: 2px 4px;
  border-radius: 3px;
  transition: all 0.3s ease;
  position: relative;
}

.longest-unchanged {
  color: var(--color-blue-200) !important;
  padding: 0px !important;
}

.changed-word {
  color: #E34935 !important;
  padding: 0px !important;
}

.structural-change {
  border-bottom: 1px solid var(--color-yellow-100) !important;
  padding: 0px !important;
  border-radius: 0px !important;
}

.word-span:hover {
  color: var(--color-primary-dark) !important;
}

/* Hover effects for highlighted text */
.highlighted-text:hover {
  transform: scale(1.02);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  z-index: 10;
}

/* Word spans within highlighted text */
.highlighted-text .word-span {
  padding: 1px 2px;
  border-radius: 2px;
  transition: all 0.2s ease;
}

.highlighted-text .word-span:hover {
  cursor: pointer;
}

/* Tooltip for highlighted sections */
.highlighted-text::before {
  /* content: attr(data-highlight-reason); */
  position: absolute;
  /* content: attr(data-highlight-reason); */
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  /* background-color: #333; */
  color: white;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 12px;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 1000;
  pointer-events: none;
  background-color: var(--color-white);
}

.highlighted-text::after {
  /* content: ""; */
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 4px solid transparent;
  border-top-color: #333;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  background-color: var(--color-white);
}

.highlighted-text:hover::before,
.highlighted-text:hover::after {
  opacity: 1;
  visibility: visible;
}

/* Responsive highlighting */
@media (max-width: 990px) {
  .highlighted-text {
    padding: 1px 2px;
    margin: 0 0.5px;
    border-left-width: 2px;
  }

  .highlighted-text:hover {
    transform: scale(1.01);
  }
}

/* Freeze Words */
.freeze-mode {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  padding: 8px 12px;
  border-radius: 6px;
}

.freeze-mode:hover {
  background-color: #f5f5f5;
}

.freeze-dropdown {
  display: none;
  position: relative;
  left: 0;
  background: white;
  border: 1px solid #ddd;
  padding: 12px;
  /* z-index: 1000; */
  width: 300px;
}

.freeze-dropdown.show {
  display: block;
}

#freezeWordsInput {
  width: 100%;
  padding: 2px;
  font-size: 12px;
  border: none;
  margin: 2px;
}

.freeze-word-wrapper {
  border: 1px solid var(--color-blue-400);
  display: flex;
  border-radius: 8px;
  align-items: center;
  flex-wrap: wrap;
}

#freezeWordsInput::placeholder {
  color: #c2c3d8;
}

.freeze-words-list {
  max-height: 200px;
  overflow-y: auto;
  margin-bottom: 8px;
}

@media (min-width: 990px) {
  #freezeWordsTagsHeader {
    display: flex;
    gap: 8px;
    align-items: center;
    height: 30px;
  }
}

@media (max-width: 990px) {
  #freezeWordsTagsHeader {
    display: none !important;
  }
}



.freeze-tag-counter {
  background: #f0f0f0;
  border-radius: 4px;
  padding: 2px 6px;
  font-size: 12px;
  color: #666;
  margin-left: 4px;
}

/* Hide scrollbar for Chrome, Safari and Opera */
#freezeWordsTagsHeader::-webkit-scrollbar {
  display: none;
}

.freeze-word-tag {
  display: flex;
  align-items: center;
  justify-content: space-between;
  /* min-width: 150px; */
  background: var(--color-blue-500);
  padding: 4px 8px;
  color: var(--color-gray-400);
  border-radius: 4px;
  margin: 4px;
  font-size: 12px;
  white-space: nowrap;
}

.freeze-word-tag .remove-tag {
  margin-left: 4px;
  cursor: pointer;
  color: var(--color-gray-400);
}

.freeze-word-tag .remove-tag:hover {
  color: #666;
}

/* Additional CSS for smooth animations */
.freeze-mode-container {
  position: relative;
  border-top-right-radius: 12px;
}

.freeze-mode-header {
  padding: 4px 15px;
  background-color: var(--color-white);
  border-bottom: 1px solid var(--border-color);
}

.freeze-mode-header:hover {
  background-color: #f8f9fa;
}

.dropdown-container {
  border: 1px solid var(--color-blue-300);
  padding: 3px 8px;
  border-radius: 4px;
  align-items: center;
}

.dropdown-arrow {
  transition: transform 0.3s ease;
}

.freeze-dropdown {
  animation: slideDown 0.5s ease-out;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.freeze-word-tag:hover {
  background: var(--color-primary-ultra-light) !important;
  color: var(--color-primary-dark) !important;
  cursor: pointer;
}

.remove-tag:hover {
  color: #dc2626 !important;
  display: flex;
  align-items: center;
  justify-content: center;
}

@keyframes fadeInTooltip {
  from {
    opacity: 0;
    transform: translateY(-5px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(20px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideOutRight {
  from {
    opacity: 1;
    transform: translateX(0);
  }

  to {
    opacity: 0;
    transform: translateX(20px);
  }
}

.freeze-btn-tooltip {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--color-white);
  color: var(--color-primary-dark);
  border: none;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.2s ease;
  white-space: nowrap;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
}

.freeze-btn-tooltip:hover {
  background: var(--color-primary-dark);
  color: var(--color-white);
}

.freeze-btn-tooltip:active {
  background: #1d4ed8;
  transform: translateY(1px);
}

/* Legend tooltip styles */
.legend-tooltip {
  position: absolute;
  background: white;
  border: 1px solid #e9ecef;
  border-radius: 8px;
  padding: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  max-width: 300px;
  z-index: 10000;
  font-size: 13px;
  line-height: 1.4;
}

.legend-tooltip ul {
  padding-left: 18px;
  margin: 8px 0;
}

.legend-tooltip li {
  margin-bottom: 6px;
}

#custom-mode-btn {
  position: relative;
}

.custom-dropdown {
  position: absolute;
  z-index: 1000;
  border-radius: 8px;
}

.dropdown-custom-content {
  background-color: #fff;
  border: 1px solid #ddd;
  border-radius: 4px;
  padding: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  position: absolute;
  gap: 8px;

  /* Animation properties */
  animation: slideDownFadeIn 0.3s ease-out forwards;
  opacity: 0;
  transform: translateY(-8px);
}

@keyframes slideDownFadeIn {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}



.custom-dropdown-heading {
  font-size: 14px;
  font-weight: 700;
  color: var(--color-text-505050);
}

#custom-instructions-input::placeholder {
  color: #717171;
  font-size: 14px;
  font-weight: 400;
}

.dropdown-input-wrapper {
  display: flex;
  gap: 4px;
  margin-top: 4px;
}

#custom-instructions-input {
  flex: 1;
  padding: 8px;
  border: 1px solid #ddd;
  border-radius: 4px;
}

#generate-custom-mode {
  padding: 8px 12px;
  background-color: var(--color-primary-light);
  color: var(--color-white);
  border: none;
  border-radius: 8px;
  cursor: pointer;
}

#generate-custom-mode:hover {
  background-color: var(--color-primary-dark);
}

.mode-synonym-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-color);
  background-color: var(--color-white);
  border-top-left-radius: 12px;
  border-top-right-radius: 12px;
}

.synonym-range {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-right: 20px;
}

.range-title {
  font-size: 14px;
  color: #757682;
  font-weight: 500;
}

.range-slider-container {
  flex-grow: 1;
  max-width: 130px;
  position: relative;
}

.range-slider {
  position: relative;
}

.range-slider input[type="range"] {
  width: 100%;
  -webkit-appearance: none;
  height: 4px;
  background: #e9ecef;
  border-radius: 2px;
  margin: 15px 0;
  position: relative;
}

/* Custom thumb */
.range-slider input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 16px;
  height: 16px;
  background: var(--color-primary-light);
  border-radius: 50%;
  cursor: pointer;
  position: relative;
  z-index: 100;
}

/* Custom thumb */
.range-slider input[type="range"]::-moz-range-thumb {
  width: 16px;
  height: 16px;
  background: var(--color-primary-light);
  border-radius: 50%;
  border: none;
  cursor: pointer;
  position: relative;
  z-index: 2;
}

.range-points {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  transform: translateY(-50%);
  display: flex;
  justify-content: space-between;
  pointer-events: none;
  z-index: 0;
}

.range-points .point {
  width: 8px;
  height: 8px;
  background: #adb5bd;
  border-radius: 50%;
  position: relative;
}

@media (min-width: 990px) {

  /* Active point */
  .range-points .point.active {
    background: var(--color-primary-light);
  }

  /* Tooltip styling */
  .range-points .point::after {
    /* content: attr(data-tooltip); */
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--color-primary-light);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s;
    white-space: nowrap;
    margin-bottom: 5px;
    z-index: 1000;
  }

  .range-points .point:hover::after {
    opacity: 1;
    visibility: visible;
    z-index: 10;
  }
}

/* Make the points container non-interactive but allow point interaction */
.range-points {
  pointer-events: none;
  z-index: 10;
}

.range-points .point {
  pointer-events: auto;
}

/* More Dropdown Styles */
.dropdown-mode {
  position: relative;
  cursor: pointer;
  display: flex;
  align-items: center;
}

.more-text {
  display: flex;
  gap: 4px;
}

.dropdown-caret {
  font-size: 10px;
  margin-left: 4px;
  transition: transform 0.2s;
}

.dropdown-mode.active .dropdown-caret {
  transform: rotate(180deg);
}

.dropdown-more-content {
  top: 2px;
  position: absolute;
  left: -1px;
  width: 100px;
  animation: slideDownFadeIn 0.3s ease-out forwards;
  box-shadow: 0px 4px 16px 0px rgba(0, 0, 0, 0.1);
}

@keyframes slideDownFadeIn {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

#more-mode-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--color-white);
  /* border: 1px solid var(--border-color); */
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  min-width: 120px;
}

.dropdown-mode.has-selection .more-label {
  display: none;
}

.more-label {
  margin-right: 4px;
}

.dropdown-mode.has-selection .selected-mode {
  display: inline !important;
}

#mainLanguageList {
  display: flex;
}

.language-item {
  background-color: var(--color-white);
  /* border: 1px solid var(--border-color); */
  border-bottom: none;
  color: var(--color-gray-500);
  font-weight: 500;
  font-size: 14px;
  padding: 8px 16px;
  border-top-left-radius: 8px;
  border-top-right-radius: 8px;
  align-items: center;
  gap: 2px;
}

.language-item.active {
  background-color: var(--color-white);
  /* border: 1px solid var(--border-color); */
  border-bottom: none;
  cursor: pointer;
}

.language-item:not(.active) {
  background-color: transparent;
  border: none;
  cursor: pointer;
  color: var(--color-gray-300);
}

.all-language-dropdown {
  margin-top: 8px;
  display: flex;
  flex-wrap: wrap;
  max-width: 500px;
  gap: 4px;
  animation: slideDownFadeIn 0.3s ease-out forwards;
}

@keyframes slideDownFadeIn {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.all-language-item:hover {
  background-color: #f0f0f0;
}

.all-language-item.active {
  border-left: 2px solid var(--color-primary-dark);
  font-weight: 700;
}

.language-section {
  position: relative;
  display: flex;
}

.language-container {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.all-wrapper {
  position: relative;
  display: inline-block;
}

#allLanguageDropdown {
  position: absolute;
  top: 100%;
  left: 0;
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  padding: 8px;
  display: none;
  z-index: 1002;
  width: 500px;
  overflow-y: auto;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.all-language-item {
  padding: 6px 10px;
  cursor: pointer;
  font-size: 14px;
  display: flex;
  width: 140px;
}

.all-language-item:hover {
  background-color: #f0f0f0;
}

.rotate-180 {
  transform: rotate(-180deg);
  transition: transform 0.3s ease;
}

#languageDropdown {
  display: inline-block;
  transition: transform 0.3s ease;
}

.download-output {
  border: 1px solid var(--border-color);
}

.expand-collape {
  border: 1px solid var(--border-color);
  display: flex;
  justify-content: center;
  /* Horizontally center */
  align-items: center;
  /* Vertically center */
  width: 32px !important;
  /* Ensure full width if needed */
  height: 32px;
  /* Ensure full height if needed */
  border-radius: 5px;
  cursor: pointer;
}

.expand-collape-input {
  border: 1px solid var(--border-color);
  display: flex;
  justify-content: center;
  /* Horizontally center */
  align-items: center;
  /* Vertically center */
  width: 32px !important;
  /* Ensure full width if needed */
  height: 32px;
  /* Ensure full height if needed */
  border-radius: 5px;
  cursor: pointer;
}

.fluent-feature {
  border: 1px solid var(--border-color);
  display: flex;
  justify-content: center;
  /* Horizontally center */
  align-items: center;
  /* Vertically center */
  width: 32px !important;
  /* Ensure full width if needed */
  height: 32px;
  /* Ensure full height if needed */
  border-radius: 5px;
  cursor: pointer;
}

.expand-collape svg,
.fluent-feature svg {
  width: 16px;
  /* Adjust as needed */
  height: 16px;
  /* Adjust as needed */
}

.copy-output {
  border: 1px solid var(--border-color);
}

.up-down-output {
  display: flex;
  gap: 16px;
  border-right: 1px solid var(--border-color);
  padding: 10px 20px 10px 10px;
}

.download-output,
.copy-output {
  display: flex;
  justify-content: center;
  /* Horizontally center */
  align-items: center;
  /* Vertically center */
  width: 32px;
  /* Ensure full width if needed */
  height: 32px;
  /* Ensure full height if needed */
  border-radius: 5px;
  cursor: pointer;
}

.download-output:hover {
  background-color: #f5f5f5;
}

.copy-output:hover {
  background-color: #f5f5f5;
}

/* Optional: Ensure the SVG icons themselves are properly sized */
.download-output svg,
.copy-output svg {
  width: 16px;
  /* Adjust as needed */
  height: 16px;
  /* Adjust as needed */
}

/* Add to your CSS file */
.upload-file {
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 5px 10px;
  border-radius: 4px;
  transition: background-color 0.2s;
}

.upload-file:hover {
  background-color: #f5f5f5;
}

.upload-file input[type="file"] {
  display: none;
}

.custom-textarea {
  /* min-height: 200px; */
  /* height: 0px; */
  /* padding: 0px; */
  outline: none;
  white-space: pre-wrap;
  word-wrap: break-word;
  /* overflow-y: auto; */
}

.custom-textarea[contenteditable="true"]:empty::before {
  content: attr(placeholder);
  color: #757682;
  pointer-events: none;
  display: block;
}

.frozen-word {
  color: #0d47a1;
}

/* Prevent empty space from being clickable */
.custom-textarea:empty::before {
  content: attr(placeholder);
  color: #757575;
  pointer-events: none;
}

.custom-textarea div:empty {
  display: none;
}

.total-output-sentences {
  color: #757682;
  font-weight: 500;
  font-size: 12px;
}

.total-output-words {
  color: #757682;
  font-weight: 500;
  font-size: 12px;
}

#selectedLanguageText {
  color: #676767;
}

.mobile-language-arrow {
  color: #676767;
}

.freeze-bottom-model-btn {
  display: none;
}

.legend-row {
  display: flex;
  gap: 10px;
  justify-content: center;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.legend-dot {
  height: 8px;
  width: 8px;
  border-radius: 100%;
}

.legend-bar {
  height: 4px;
  width: 8px;
}

.info-btn {
  cursor: pointer;
}

.expand-collape svg {
  overflow: visible !important;
}



.paste-upload-container.expanded {
  display: block;
}

/* Hide mobile word counter on desktop */
.wordCounter-mobile {
  display: none;
}

/* Hide desktop word counter on small screens */
@media (max-width: 990px) {
  .wordCounter-desktop {
    display: none;
  }

  .wordCounter-mobile {
    display: inline;
  }
}

.download-dropdown {
  position: relative;
  display: inline-block;
}

.download-dropdown-content {
  display: none;
  position: absolute;
  bottom: 100%;
  right: 0;
  background-color: white;
  min-width: 170px;
  box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
  border-radius: 8px;
  z-index: 1000;
  border: 1px solid #e9ecef;
  margin-bottom: 8px;
}

.download-dropdown-content.show {
  display: block;
}

.download-option {
  color: #333;
  padding: 12px 16px;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  border-bottom: 1px solid #f0f0f0;
  transition: background-color 0.2s ease;
}

.download-option span {
  font-size: 12px;
}

.download-option:last-child {
  border-bottom: none;
}

.download-option:hover {
  background-color: #f8f9fa;
}

.download-option:first-child {
  border-radius: 8px 8px 0 0;
}

.download-option:last-child {
  border-radius: 0 0 8px 8px;
}

.download-option-icon {
  width: 16px;
  height: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Arrow indicator for dropdown */
.download-output {
  position: relative;
  cursor: pointer;
}

.download-output::after {
  /* content: ''; */
  position: absolute;
  top: -2px;
  right: -2px;
  width: 0;
  height: 0;
  border-left: 3px solid transparent;
  border-right: 3px solid transparent;
  border-bottom: 3px solid #757682;
  transition: transform 0.3s ease;
}

.download-output.active::after {
  transform: rotate(180deg);
}

.response-info-sentence {
  border-right: 1px solid #D5D6ED;
  width: 33.33%;
  display: flex;
  justify-content: center;
}

.bottom-panel {
  position: fixed;
  bottom: -100%;
  left: 0;
  right: 0;
  height: 30vh;
  background: white;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
  border-radius: 20px 20px 0 0;
  transition: bottom 0.3s ease;
  z-index: 1000000;
  /* padding: 20px; */
  box-sizing: border-box;
  overflow-y: auto;
}

.bottom-panel.open {
  bottom: 0;
}

.panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #eee;
}

.close-panel {
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
}

.response-info-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--color-gray-500);
  width: 100%;
}

.response-info-panel-content {
  height: 70%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 10px 16px;
}


.scroll-content-feature {
  display: flex;
  gap: 14px;
  justify-content: center;
  width: 33.33%;
}

/* Overlay for when panel is open */
.overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 10000;
  display: none;
}

@media (min-width: 990px) {

  /* Desktop styles if needed */
  .bottom-panel {
    width: 400px;
    height: auto;
    max-height: 80vh;
    left: 50%;
    bottom: -100%;
    transform: translateX(-50%);
    border-radius: 20px;
  }

  .bottom-panel.open {
    bottom: 50px;
  }
}

.mobile-rephrase-original-content {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.mobile-rephrase-header {
  font-size: 16px;
  font-weight: 700;
  color: var(--color-gray-500);
}

.mobile-rephrase-title,
.mobile-rephrase-title-rephrase {
  font-weight: 700;
  font-size: 12px;
  color: var(--color-gray-500);
}

.mobile-rephrase-original-text {
  border: 1px solid var(--border-color);
  padding: 10px;
  background-color: #FBFBFD;
  font-size: 12px;
  color: var(--color-text-505050);
  border-radius: 10px;
}

.mobile-rephrase-original-content {
  font-size: 12px;
  color: var(--color-text-505050);
  border-radius: 10px;
}

.rephrase-header-container {
  padding: 16px;
  border-bottom: 1px solid var(--border-color);
}

.tone-selector-container {
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  /* For Firefox */
}

.tone-selector-container::-webkit-scrollbar {
  display: none;
  /* For Chrome/Safari */
}

.rephrase-tone-btn {
  padding: 8px 16px;
  margin-right: 8px;
  border: none;
  background: var(--color-white);
  color: var(--color-gray-500);
  font-size: 12px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s;
}

.rephrase-tone-btn.active-tone {
  border-bottom: 1px solid var(--color-primary-dark);
  color: var(--color-primary-dark);
  font-weight: 700;
  font-size: 12px;
}

/* Mobile Synonym Panel Styles */
.mobile-synonym-panel {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: white;
  border-top-left-radius: 12px;
  border-top-right-radius: 12px;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  max-height: 60vh;
  overflow-y: auto;
  transform: translateY(0);
  transition: transform 0.3s ease;
}

.mobile-synonym-panel.closed {
  transform: translateY(100%);
}

.mobile-synonym-header {
  padding: 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #eee;
  position: sticky;
  top: 0;
  background: white;
}

.mobile-synonym-header h3 {
  margin: 0;
  font-size: 18px;
  color: #333;
}

.mobile-synonym-close {
  background: none;
  border: none;
  font-size: 24px;
  color: #666;
  cursor: pointer;
}

.mobile-synonym-content {
  padding: 15px;
}

.synonym-mobile-title {
  color: var(--color-gray-500);
  font-weight: 700;
  font-size: 14px;
}

.mobile-synonym-list {
  display: flex;
  flex-direction: column;
}

.synonym-mobile-header {
  font-weight: 700;
  font-size: 16px;
  color: var(--color-gray-500);
}

.mobile-synonym-item {
  padding: 8px 8px;
  border-radius: 8px;
  cursor: pointer;
  color: var(--color-gray-500);
  font-size: 16px;
}

.mobile-synonym-item:hover {
  background: #e9e9e9;
}

.no-synonyms,
.synonym-error {
  padding: 20px;
  text-align: center;
  color: #666;
}

.mobile-synonym-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 999;
}

.loading-spinner {
  text-align: center;
  padding: 20px;
  color: #666;
}

.all-language-items-container {
  display: flex;
  flex-wrap: wrap;
  padding: 0px 16px;
}

.language-search {
  position: relative;
}

#languageSearch {
  width: 100%;
  padding: 12px 16px 12px 42px;
  border-radius: 8px;
  gap: 2px;
  border: 1px solid #D5D6ED;
  background-color: #FBFBFD;
}

.search-icon-container {
  position: absolute;
  top: 24%;
  left: 20px;

}

.rephrase-tooltip-copy-btn {
  background-color: white;

  border: none;
}

.rephrase-tooltip-reload {
  background-color: white;
  border-top: none;
  border-right: none;
  border-bottom: none;
  border-left: 1px solid var(--border-color);
}

.btn-text-rephrase {
  font-weight: 700;
  font-size: 12px;
  color: #265BAA;
  border-right: 1px solid var(--border-color);
}

.rephrase-tooltip-copy-btn:hover {
  background-color: var(--color-gray-150);
}

.rephrase-tooltip-reload:hover {
  background-color: var(--color-gray-150);
}

#custom-mode-dropdown {
  display: none;
}

#custom-mode-dropdown.show {
  display: block;
}

.legend-text {
  font-size: 12px;
  color: var(--color-text-505050);
  font-weight: 500;
}

[data-tooltip] {
  position: relative;
  cursor: pointer;
  display: inline-block;
}

/* Tooltip box (only visible if body has show-tooltips class) */
body.show-tooltips [data-tooltip]:hover::after {
  content: attr(data-tooltip);
  position: absolute;
  /* white-space: wrap; */
  background: #FFFFFF;
  border: 1px solid #E5E5E5;
  padding: 4px 8px;
  color: #2F2F2F;
  font-size: 12px;
  font-weight: 400;
  z-index: 10000000;
  display: flex;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  border-radius: 4px;
  /* min-width: 150px; */
  /* max-width: 300px;  */
  align-items: center;
  justify-content: center;
}

body.show-tooltips [data-tooltip]:hover {
  outline: none;
}

#wordTooltip {
  white-space: nowrap;
}


.mode-tooltip-wrapper {
  position: relative;
  display: inline-block;
}

.mode-btn {
  cursor: pointer;
}

.mode-tooltip-text {
  display: none;
  position: absolute;
  top: 130%;
  left: 50%;
  transform: translateX(-50%);
  background-color: #fff;
  color: #2F2F2F;
  padding: 8px;
  border-radius: 10px;
  font-family: Satoshi;
  font-size: 12px;
  font-weight: 400 !important;
  text-align: center;
  max-width: 260px;
  min-width: 200px;
  white-space: normal;
  z-index: 10000;
  box-shadow: 0px 4px 16px 0px rgba(0, 0, 0, 0.1),
              0px 8px 24px -2px rgba(0, 0, 0, 0.1);
  /* Remove duplicate box-shadow property */
}

/* Tooltip arrow with proper shadow */
.mode-tooltip-text::before {
  content: "";
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-bottom: 8px solid #fff;
  filter: drop-shadow(0 -2px 2px rgba(0, 0, 0, 0.1));
}

/* Show tooltip on hover */
.mode-tooltip-wrapper:hover .mode-tooltip-text {
  display: block;
}

#tooltip-nowrap {
  white-space: nowrap;
}

body.show-tooltips [data-tooltip]:hover #tooltip-wrap {
  white-space: wrap;
  width: 200px;

}

/* Tooltip arrow */
body.show-tooltips [data-tooltip]:hover::before {
  content: "";
  position: absolute;
  width: 0;
  height: 0;
  z-index: 100000000;
  border: 8px solid transparent;
  filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.1));
}

/* ===== TOP ===== */
body.show-tooltips [data-position="top"]:hover::after {
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  margin-bottom: 10px;
}

body.show-tooltips [data-position="top"]:hover::before {
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  border-top-color: #FFFFFF;
  margin-bottom: -4px;
}

/* ===== BOTTOM ===== */
body.show-tooltips [data-position="bottom"]:hover::after {
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  margin-top: 10px;
}

body.show-tooltips [data-position="bottom"]:hover::before {
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border-bottom-color: #FFFFFF;
  margin-top: -4px;
}

/* ===== LEFT ===== */
body.show-tooltips [data-position="left"]:hover::after {
  right: 100%;
  top: 50%;
  transform: translateY(-50%);
  margin-right: 10px;
}

body.show-tooltips [data-position="left"]:hover::before {
  right: 100%;
  top: 50%;
  transform: translateY(-50%);
  border-left-color: #FFFFFF;
  margin-right: -4px;
}

/* ===== RIGHT ===== */
body.show-tooltips [data-position="right"]:hover::after {
  left: 100%;
  top: 50%;
  transform: translateY(-50%);
  margin-left: 10px;
}

body.show-tooltips [data-position="right"]:hover::before {
  left: 100%;
  top: 50%;
  transform: translateY(-50%);
  border-right-color: #FFFFFF;
  margin-left: -4px;
}

html {
  overflow-y: scroll;
  overscroll-behavior: none;
}

body.no-scroll {
  overflow: hidden !important;
  position: fixed !important;
  width: 100% !important;
  height: 100% !important;
}

.content-wrapper,
.panel-content {
  overscroll-behavior: none;
}

body {
  overscroll-behavior: none;
}

@media (min-width: 990px) {
  .width-70 {
    width: 70%;
  }
}

.item svg {
  scale: 1.7;
}

.footer-container footer {
  width: 90%;
}

.footer-container {
  justify-content: end;
  display: flex;
}

.copyright-text {
  padding-left: 36px;
}

.delete-all-text {
  color: #717171;
  font-size: 12px;
  font-weight: 500;
}

/* Desktop: Flex layout with resizer */
@media (min-width: 992px) {
  .paraphrase-flex-container {
    display: flex;
    flex-direction: row;
    width: 100%;
    height: 100%;
    min-height: 400px;
    position: relative;
  }

  #input-section-paraphrase,
  #output-section-paraphrase {
    min-width: 35%;
    max-width: 90%;
    flex-basis: 50%;
    flex-grow: 1;
    flex-shrink: 1;
    transition: flex-basis 0.2s;
    /* overflow: auto; */
  }

  #paraphrase-resizer {
    cursor: col-resize;
    background: #e9ecef;
    border-left: 1px solid #e9ecef;
    border-right: 1px solid #e9ecef;
    z-index: 2;
    transition: background 0.2s;
    display: block;
    border-radius: 2px;
  }

  #paraphrase-resizer:hover {
    background: #d1d5db;
  }

  #output-section-paraphrase {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
  }
}

/* Mobile: Stack columns, hide resizer */
@media (max-width: 991.98px) {
  .paraphrase-flex-container {
    display: block;
  }

  #input-section-paraphrase,
  #output-section-paraphrase {
    flex-basis: auto !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
  }

  #output-section-paraphrase {
    margin-top: 10px;
    margin-bottom: 20px;
  }

  #paraphrase-resizer {
    display: none !important;
  }
}

.arrowSelectionYellow {
  background-color: #FFFD37;
}

.arrowSelectionDefault {
  background-color: #e3f2fd;
}

#paraphraseLoading,
#mobileParaphraseLoading {
  display: none;
}

#paraphraseTextIcon,
#mobileParaphraseTextIcon {
  display: flex;
  gap: 10px;
  align-items: center;
}

#paraphraseBtn,
#mobileParaphraseBtn {
  width: 120px;
  height: 40px;
  justify-content: center;
}

.main-container {
  align-items: center;
  margin: auto;
  position: relative;
  padding: 0 15px;
  width: 80%;
  box-sizing: border-box;
}

@media (min-width: 1400px) {
  .main-container {
    padding: 0;
  }
}

@media (max-width: 990px) {
  .main-container {
    margin-left: 0;
  }

  .footer-container {
    justify-content: end;
    display: flex;
  }
}

@media (max-width: 990px) {
  .output-bottom-section {
    z-index: 100 !important;
  }

}

.output-bottom-section {
  border-top: 1px solid #e9ecef;
  padding: 13px;
  height: 70px;
  z-index: 1001;
  display: flex;
  width: 100%;
  position: sticky;
  bottom: 0;
  align-items: center;
  background-color: white;
  justify-content: space-between;
  border-bottom-right-radius: 12px;
}

.expanded-view {
  padding: 12px 16px;
  background-color: var(--color-white);
  border-radius: 5px;
  border: 1px solid #D3D3D3;

}

.history-item.active {
  background-color: #F2F2F9;
}

.feature-items-1 {
  position: sticky;
  bottom: 0;
  z-index: 100;
  padding: 10px;
}

#sentencesWords {
  align-items: center;
  gap: 5px
}

#moreInfoParaphraseA {
  display: none;
  justify-content: center;
  align-items: center;
  width: 32px;
  height: 32px;
  border-radius: 5px;
  border: 1px solid var(--border-color);
}

#moreInfoParaphraseA[data-tooltip]:hover::after {
  top: -70px;
  margin-bottom: 100px;
  color: var(--color-grey-900);
  text-align: center;
  font-family: Satoshi;
  font-size: 12px;
  font-style: normal;
  font-weight: 400;
  line-height: 150%;
  /* 18px */
  margin-bottom: 30px;
}

.feature-items-1:nth-child(2) {
  position: sticky;
}

@media (max-width: 990px) {
  .tooltip-setting {
    display: none;
  }
}

.mobile-rephrase-title-rephrase {
  margin-top: 20px;
}

@-moz-document url-prefix() {

  /* .range-points{
    padding-bottom: 5px;
  } */
  .range-slider input[type="range"] {
    margin: 4px 0;
  }
}

.line-container {
  background-color: white !important;
}

@media (min-width: 1450px) {
  #sentencesWords {
    display: flex;
    gap: 5px;
  }
}

mobile-language-selector {
  position: relative;
}

.mobile-language-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: #f5f5f5;
  border-radius: 8px;
  cursor: pointer;
}

.mobile-language-panel {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 70vh;
  background: white;
  border-radius: 16px 16px 0 0;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
  transform: translateY(100%);
  transition: transform 0.3s ease;
  z-index: 10001;
  display: flex;
  flex-direction: column;
}

.mobile-language-panel.open {
  transform: translateY(0);
}

.language-panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px;
  border-bottom: 1px solid #eee;
}

.language-panel-header h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  color: var(--color-gray-500);

}

/* 
.close-panel-btn {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #666;
} */

.language-panel-content {
  flex: 1;
  overflow-y: auto;
  padding: 0 1px;
  color: var(--color-text-505050);
}

.mobile-language-option {
  padding: 12px 0;
  /* border-bottom: 1px solid #f0f0f0; */
  cursor: pointer;
}

.mobile-language-option.selected {
  color: var(--color-text-505050);
  font-weight: 700;
  border-left: 2px solid var(--color-primary-dark);
}

.language-search-container {
  padding: 16px;
}

@media (max-width: 990px) {
  .language-search-container {
    border-top: 1px solid #eee;
  }

}

#languageSearchMobile {
  width: 90%;
  /* padding: 12px 16px; */
  border: none;
  border-radius: 8px;
  font-size: 16px;
}

.language-search-mobile {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #D5D6ED;
  border-radius: 8px;
  font-size: 16px;
  align-items: center;
}

.sentence-span.selected-sentence.selected {
  background-color: #e3f2fd !important;
}

.mode-tooltip-wrapper {
  transition: opacity 0.3s, transform 0.3s;
}

.mode-tooltip-wrapper.hide {
  /* opacity: 0;
  transform: translateY(-10px); */
  pointer-events: none;
}

.mode-tooltip-wrapper.show {
  opacity: 1;
  transform: translateY(0);
}

/* .custom-textarea {
    width: 100%;
    min-height: 100px;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-family: inherit;
    font-size: inherit;
    resize: vertical;
} */

#originalText {
  white-space: pre-wrap;
  font-size: 16px;
  /* Renders \n as line breaks */
}

/* For your output area */
#paraphraseContainer,
.output-area {
  white-space: normal;
  user-select: none;
}

#paraphraseContainer,
.line-container,
.output-area {
  white-space: normal;
  word-break: break-word !important;
  overflow-wrap: break-word !important;
  box-sizing: border-box !important;
  max-width: 100% !important;
}

@media (min-width: 990px) {
  .resize-container {
    margin-left: 120px;
  }

}

@media (max-width: 990px) {
  .resize-container {
    margin-left: 0;
  }
}

/* max sizing for 843px */

@media (min-width: 990px) {
  .resize-container {
    margin-left: 0px;
  }

  .width-70 {
    width: 61%;
  }

  .main-container {
    margin-left: 120px;
  }

  .right-side-panel {
    width: 300px;
  }
}

/* max sizing for 1200px */

@media (min-width: 990px) {
  .resize-container {
    margin-left: 50px;
  }

  .width-70 {
    width: 58%;
  }

  .main-container {
    margin-left: 120px;
  }

  .right-side-panel {
    width: 300px;
  }



}

@media (min-width: 1000px) {
  .width-70 {
    width: 65%;
  }
}

@media (min-width: 1100px) {
  .width-70 {
    width: 65%;
  }

  .right-side-panel {
    width: 350px;
  }


}

@media (min-width: 1200px) {
  .width-70 {
    width: 70%;
  }

  .right-side-panel {
    width: 400px;
  }

  .main-container {
    margin-left: auto;
  }

  /* .resize-container {
      margin-left: 50px;
    } */

}

.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  display: none;
  z-index: 1000;
}

.bottom-panel {
  /* Your existing panel styles */
  z-index: 1001;
}

.body-no-scroll {
  overflow: hidden;
  position: fixed;
  width: 100%;
  height: 100%;
}

.input-section {
  background-color: var(--color-white);
  border-bottom-left-radius: 12px;
  border-bottom-right-radius: 12px;
}

#clear-freeze-words-mobile {
  background: none;
  font-size: 12px;
  font-weight: 500;
  color: var(--color-gray-900);
  border: none;
}

#clear-freeze-words-mobile:hover {
  color: var(--color-primary-dark);
}

@media (min-width: 1651px) {
  #humanizeText {
    display: block;
  }

}



@media (max-width: 1650px) {
  #humanizeText {
    display: none;
  }

}

.premium-feature-banner {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  padding: 19px 24px;
  background-color: #F2F2F9;

}

@media (max-width: 786px) {
  .premium-feature-banner {
    border: 2px solid var(--color-white);
  }
}

.premium-feature-content {
  background-color: var(--color-white);
  box-shadow: 0px 1px 6px 0px rgba(0, 0, 0, 0.12);
  border-radius: 5px;
  align-items: center;
  height: 100%;
  display: flex;
  justify-content: center;
  flex-direction: column;
  position: relative;
}

.premium-banner-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 1;
}

.premium-banner-overlay {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(0, 0, 0, 0.5);
  /* Semi-dark overlay */
  padding: 20px;
  box-sizing: border-box;
}

.premium-banner-content {
  max-width: 600px;
  background-color: rgba(255, 255, 255, 0.9);
  padding: 30px;
  border-radius: 8px;
  text-align: center;
}

.premium-message {
  display: block;
  color: #333;
  font-size: 18px;
  margin-bottom: 25px;
  font-weight: 500;
}

.premium-banner-actions {
  display: flex;
  gap: 15px;
  justify-content: center;
}

.upgrade-btn {
  background-color: #4CAF50;
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 600;
  font-size: 16px;
  transition: all 0.3s;
}

.upgrade-btn:hover {
  background-color: #3e8e41;
  transform: translateY(-2px);
}

.standard-mode-btn {
  background-color: #f8f8f8;
  border: 2px solid #4CAF50;
  color: #4CAF50;
  padding: 12px 24px;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 600;
  font-size: 16px;
  transition: all 0.3s;
}

.standard-mode-btn:hover {
  background-color: #e8f5e9;
  transform: translateY(-2px);
}

@media (max-width: 990px) {
  .premium-banner-content {
    padding: 20px;
    width: 90%;
  }

  .premium-message {
    font-size: 16px;
  }

  .premium-banner-actions {
    flex-direction: column;
    gap: 10px;
  }

  .upgrade-btn,
  .standard-mode-btn {
    width: 100%;
    padding: 10px;
  }
}

.premium-popup-container {
  position: relative;
  width: 100%;
  cursor: pointer;
}

.premium-popup-content {
  display: none;
  position: absolute;
  /* top: calc(100% + 10px);
  left: 0; */
   left: 50%;
      top: 15%;
    transform: translateX(-50%) !important;
  width: 340px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  margin: auto;

  /* Enhanced glass effect */
  backdrop-filter: blur(16px) saturate(200%);
  -webkit-backdrop-filter: blur(16px) saturate(200%);

  /* Shadow effects */
  box-shadow:
    0 4px 30px rgba(0, 0, 0, 0.1),
    inset 0 0 16px rgba(255, 255, 255, 1);

  padding: 16px;
  z-index: 1000;
  overflow: hidden;

  /* Transition effects */
  opacity: 0;
  transform: translateY(5px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

/* Diagonal blue tint from top-left to bottom-right */
.premium-popup-content::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  z-index: 1;
}

/* Glossy overlay */
.premium-popup-content::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  z-index: 2;
}

.premium-popup-content-inner {
  position: relative;
  z-index: 3;
  /* Ensure content stays above both overlays */
}

.premium-popup-content h3 {
  font-size: 18px;
  color: var(--color-primary-dark);
  font-size: 700;
}

.premium-popup-content p {
  margin: 0px 0px 8px 0px;
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text-505050);
  line-height: 1.4;
  text-align: center;

}


.premium-popup-container:hover .premium-popup-content {
  display: block;
}

/* Disabled state for free users */
#freezeWordsInput[disabled] {
  background-color: #f5f5f5;
  cursor: not-allowed;
  opacity: 0.8;
}

.premium-popup-content {
  /* ... existing styles ... */
  opacity: 0;
  transform: translateY(5px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.premium-popup-container:hover .premium-popup-content {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

.premium-popup-header {
  display: flex;
  gap: 4px;
  justify-content: center;
  align-items: center;
}

.word-exceeded {
  display: flex;
  color: #F74545;
  font-size: 12px;
  font-weight: 700;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.premium-header {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  align-items: center;
}

.mode-banner-title {
  color: var(--color-primary-dark) !important;
  font-weight: 700 !important;
  font-size: 18px !important;
}

.mode-banner-description {
  color: #717171 !important;
  font-weight: 500 !important;
  font-size: 16px !important;
  text-align: center !important;
  width: 70% !important;
}

.premium-feature-of-mode {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px;
  width: 72%;
  padding: 10px;
  margin: auto;
}

.mode-types {
  background-color: #e9e9f3;
  color: #717171;
  font-weight: 500;
  font-size: 14px;
  padding: 2px 4px;
  border-radius: 6px;
}

.premium-feature-quality {
  color: #717171 !important;
  font-weight: 500 !important;
  font-size: 14px !important;
  text-align: center !important;
}

.circle-1-bottom {
  position: absolute;
  bottom: 0;
  left: 0;
}

.circle-2-bottom {
  position: absolute;
  bottom: 0px;
  left: 0;
}

.circle-3-bottom {
  position: absolute;
  bottom: -2px;
  left: 0;
}

.circle-1-top {
  position: absolute;
  top: 0;
  right: 0;
}

.circle-2-top {
  position: absolute;
  top: 0;
  right: 30px;
}

.circle-3-top {
  position: absolute;
  top: 0;
  right: 0;
}

.range-points .point.locked {
  opacity: 1;
  cursor: not-allowed;
}

.range-points .point.locked svg {
  display: block;
  margin: -4px auto;
  width: 18px;
  height: 18px;
}

/* .right-panel-premium-features {
  position: absolute;
  left: 12.5%;
  top: 22.5%;
}

@media (max-width: 786px) {
  .right-panel-premium-features {
    top: 15.5%;
    left: ;
  }
} */

.blur-background {
  background: rgba(255, 255, 255, 0.2);
  /* semi-transparent */
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

/* 1 –‑ GENERAL SETUP  */
.compare-container.blur-background {
  /* optional: layout tweaks */
  display: flex;
  flex-direction: column;
  /* or whatever you need */
  gap: 1rem;
}

/* 2 –‑ BLUR EVERYTHING…  (top‑level children only) */
.compare-container.blur-background>* {
  filter: blur(4px);
  transition: filter .3s ease;
  /* optional, stops the user from interacting with blurred bits */
  pointer-events: none;
  user-select: none;
}

/* 3 –‑ …EXCEPT THE PREMIUM POP‑UP */
.compare-container.blur-background>.right-panel-premium-features,
.compare-container.blur-background>.right-panel-premium-features * {
  filter: none !important;
  /* override the blur */
  pointer-events: auto;
  /* restore interaction */
  user-select: text;
}

/* Only the instance that lives in the compare panel */
.compare-container.blur-background .right-panel-premium-features .premium-popup-content::before {
  background: none !important;
  /* remove the frosted‑glass fill */
  /* optional—turn off any blur you might have on that layer */
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}





/* -- BASE: opt‑in blurring instead of blur‑everything ----------------- */

/* A) Direct children of the top container you DO want blurry */
.tone-analysis-container.blur-background>.legend-wrapper,
.tone-analysis-container.blur-background>.tone-metric {
  /* repeated block */
  filter: blur(4px);
  pointer-events: none;
  user-select: none;
}

/* B) Inside .tone-container-wrapper, blur everything EXCEPT the premium box */
.tone-analysis-container.blur-background .tone-container-wrapper> :not(.right-panel-premium-features) {
  filter: blur(4px);
  pointer-events: none;
  user-select: none;
}

/* Compare panel */
.compare-container.blur-background .premium-popup-content::before,
.tone-analysis-container.blur-background .premium-popup-content::before {
  background: none !important;
  /* kill the glass fill      */
  backdrop-filter: none !important;
  /* …and any own blur, Safari */
  -webkit-backdrop-filter: none !important;
}

/* @media (max-width: 1450px) {
  .right-panel-premium-features {
    top: 15.5%;
    left: 6.5%;
  }
} */





.popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10000;
  animation: fadeIn 0.3s ease-out;
}

.popup-modal {
  background: white;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  width: 50vw;
  max-height: 90vh;
  animation: slideIn 0.3s ease-out;
  
  overflow-y: auto; /* Ensure scrolling works */
  
  /* Hide scrollbar for Chrome, Safari, Opera, Edge */
  &::-webkit-scrollbar {
    display: none; /* Completely hides the scrollbar */
    width: 0; /* Removes scrollbar space */
    height: 0;
  }
  
  -ms-overflow-style: none; /* IE and Edge */
  scrollbar-width: none; /* Firefox */

}


.elab-content{
  border-top: 1px solid var(--color-white);
  border-bottom: 1px solid var(--color-white);
  padding: 20px 0px;
}

.elab-content-item {
  display: flex;
  gap: 10px;
  align-items: center;
  margin: 10px 0px;

}

.humanize-user-statistics-item {
  background-color: var(--color-white);
  padding: 2px 8px;
  border-radius: 6px;
  gap: 2px;
  width: fit-content;
  align-items: center;
  display: flex;
}

.humanize-user-statistics {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 20px 0px;
}

.humanize-user-statistics-item span {
  color: var(--color-primary-dark);
  font-weight: 500;
  font-size: 12px;
}

.elab-content-item p {
 color: var(--color-white);
 margin: 0px;
}

.popup-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 24px 16px;
  border-bottom: 1px solid #e9ecef;
}

.humanize-content {
  padding: 13px;
}

.humanize-content-title{
  color: #92B2D1;
  font-weight: 700;
  font-size: 18px;
  margin-bottom: 20px;
}

.humanize-content-strong{
  color: var(--color-white);
  font-style: italic;
}

.humanize-content-logo {
 display: flex;
 justify-content: space-between;
 align-items: center;
 padding: 10px 0px;
}

.popup-header h2 {
  margin: 0;
  color: #333;
  font-size: 24px;
}

.popup-close {
  background: none;
  border: none;
  font-size: 28px;
  cursor: pointer;
  color: #666;
  padding: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.2s;
}

.popup-close:hover {
  background: #f8f9fa;
  color: #333;
}

.close-popup-icon-desktop{
  cursor: pointer;
}

@media (max-width: 786px) {
   .humanize-content-logo {
    display: none !important;
  }
  .verify-container-guest {
    width: 100vw !important;
  }

}


.limit-popup {
  /* text-align: center; */
  display: flex;

}

@media (max-width: 786px) {
  .limit-popup {
    flex-direction: column;
  }
  .popup-modal {
    max-height: 100dvh;
    padding-top: env(safe-area-inset-top);
    padding-bottom: env(safe-area-inset-bottom);
  }
  .sign-up-container-guest {
    width: 100vw !important;
  }

  .sign-up-container {
     width: 100vw !important;
  }

  .humanize-content {
       width: 100vw !important;
  }
}

.sign-up-container {
  width: 50vw;
  /* height: 50vh; */
  padding: 20px;
}

.sign-up-container-guest{
    width: 50vw;
    display: flex;
    flex-direction: column;
    gap: 10px;
  /* height: 50vh; */
  padding: 70px 20px 20px 20px;
}

.guest-premium-content-container{
  padding: 24px 0px;
  border-top: 1px solid #F1F1F1;
  border-bottom: 1px solid #F1F1F1;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.signin-with-google{
  border-radius: 8px;
  padding: 8px 12px;
  border: 1px solid #6A94C4;
  display: flex;
  justify-content: center;
  align-items: center;
    width: 100%;
}

.already-have-account{
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.daily-limit-icon {
  padding: 2px 8px;
  display: flex;
  align-items: center;
  gap: 2px;
  border: 1px solid #882626;
  background-color: #FEECEC;
  width: fit-content;
  border-radius: 6px;
  color: #AF3131;
}

.guest-premium-content{
  font-weight: 400;
  font-size: 14px;
  color: #2F2F2F;
}

.daily-limit-icon-guest {
    padding: 2px 8px;
  display: flex;
  align-items: center;
  gap: 2px;
  border: 1px solid #B0A024;
  background-color: #FEFCEB;
  width: fit-content;
  color: #685F15;
  border-radius: 6px;
  font-weight: 700;
  font-size: 12px;
}

.view-price-pricing{
  background-color: var(--color-primary-light);
  color: var(--color-white);
  align-items: center;
  border: none;
  width: 100%;
  padding: 8px 12px;
  border-radius: 8px;
}

@media (max-width: 786px) {
  .limit-popup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 20px 0px 20px;
  }
}

@media (min-width: 787px) {
  .limit-popup-header {
    display: none;
  }
}

.view-price-pricing:hover {
  background-color: var(--color-primary-dark);
  color: var(--color-white);
  transform: translateY(-2px);
}

.upgrading-text {
  padding: 5px 0px;
  margin: 0px;
}

.unlock-premium-title {
  color: #2F2F2F;
  font-weight: 700;
  font-size: 16px;
}

.unlock-premium-title-guest {
    color: #2F2F2F;
  font-weight: 700;
  font-size: 22px;
}

.all-premium-unlock-features{
  padding: 10px 0px;
}

.all-premium-unlock-features-item {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 4px 0px;
  color: #2F2F2F;
}

.bold-content {
  font-weight: 700;
}

.premium-unlock-features-content{
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.italic-logo {
  color: var(--color-primary-dark);
  font-style: italic;
}

.daily-limit-icon span {
  color: #AF3131;
  font-weight: 700;
  font-size: 12px;
  margin-top: 3px;
}

.humanize-content {
  width: 50vw;
  /* height: 70vh; */
  background-color: var(--color-primary-dark);
}

.popup-icon {
  font-size: 48px;
  margin-bottom: 16px;
}

/* .limit-popup h3 {
  margin: 0 0 16px 0;
  color: #333;
  font-size: 20px;
}

.limit-popup p {
  margin: 0 0 12px 0;
  color: #666;
  line-height: 1.6;
} */

.popup-actions {
  margin-top: 32px;
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  /* padding: 12px 24px; */
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 16px;
  font-weight: 500;
  transition: all 0.2s;
  text-decoration: none;
  display: inline-block;
}

.btn-primary {
  background: #007bff;
  color: white;
}

.btn-primary:hover {
  background: #0056b3;
  transform: translateY(-2px);
}

.btn-secondary {
  background: #6c757d;
  color: white;
}

.btn-secondary:hover {
  background: #545b62;
  transform: translateY(-2px);
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(-20px) scale(0.95);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (max-width: 600px) {
  .popup-modal {
    width:100% !important;
  }

  .popup-actions {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }
}

.shimmer-wrapper {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 10px;
}

.shimmer-line {
  height: 100px;
  width: 100%;
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: shimmer 1.2s infinite;
  border-radius: 4px;
}

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

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

.download-container {
  position: relative;
  display: inline-block;
}

.download-output {
  position: relative;
  display: inline-flex;
  align-items: center;
  /* gap: 8px; */
  padding: 12px 16px;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.download-output:hover {
  background: #f8f9fa;
  border-color: #ccc;
}

/* .premium-icon {
  position: absolute;
  right: -2px;
  top: 9px;
  width: 16px;
  height: 16px;
  background: linear-gradient(135deg, #EBD318, #E0A13A);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: bold;
  color: white;
} */

/* .download-tooltip {
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: #333;
  color: white;
  padding: 6px 12px;
  border-radius: 4px;
  font-size: 12px;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s ease;
  margin-bottom: 8px;
  pointer-events: none;
} */

/* .download-tooltip::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 5px solid transparent;
  border-top-color: #333;
} */

.download-output:hover .download-tooltip {
  opacity: 1;
  visibility: visible;
}

/* Premium popup card */
.premium-popup-card {
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  width: 300px;
  border-radius: 12px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
  padding: 20px;
  margin-bottom: 15px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 1000;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1), inset 0 0 16px rgba(255, 255, 255, 1);
  /* background: rgba(255, 255, 255, 0.2); */
  /* background: linear-gradient(to bottom right, #e6edf3, #ffffff); */
  background: var(--color-white);
  backdrop-filter: blur(16px) saturate(200%);
}

@media (max-width: 786px) {
  .premium-popup-card {
    display: none !important;
  }
}

.premium-popup-card::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 8px solid transparent;
  border-top-color: white;
  background: linear-gradient(135deg, rgba(38, 91, 170, 0.15) 0%, rgba(38, 91, 170, 0.1) 30%, rgba(38, 91, 170, 0) 70%);
}

.premium-popup-card::before {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 9px solid transparent;
  border-top-color: #e0e0e0;
  z-index: -1;
    background: linear-gradient(135deg, rgba(38, 91, 170, 0.15) 0%, rgba(38, 91, 170, 0.1) 30%, rgba(38, 91, 170, 0) 70%);

}

.download-output:hover .premium-popup-card {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(-5px);
}

.premium-popup-header {
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: center;
  /* margin-bottom: 12px; */
}

/* .premium-icon-large {
  width: 38px;
  height: 38px;
  background: linear-gradient(135deg, #EBD318, #E0A13A);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
} */

/* .premium-popup-header h3 {
  font-weight: 700;
  font-size: 18px;
  margin: 0;
  color: #333;
} */

/* .premium-popup-card p {
  margin: 0 0 12px 0;
  font-size: 14px;
  color: #666;
  line-height: 1.4;
} */

.premium-divider {
  width: 100%;
  height: 1px;
  background: linear-gradient(to right, #3C72E6, #4EC1C9);
  margin: 12px 0;
}

.premium-description {
  color: #4677B8 !important;
  font-size: 13px;
  margin-bottom: 16px !important;
}

.premium-upgrade-btn {
  display: flex;
  align-items: center;
  gap: 2px;
  background: linear-gradient(135deg, #3C72E6, #4EC1C9);
  color: white;
  padding: 10px 16px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
  margin: auto;
  width: 200px;
  justify-content: center;
}

.premium-popup-content{
  background: linear-gradient(to bottom right, #e6edf3, #ffffff);
}

.premium-upgrade-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(60, 114, 230, 0.3);
}

.crown-icon {
  width: 16px;
  height: 16px;
  fill: white;
}

/* Hide premium card for paid users */
.is-paid-user .premium-popup-card {
  display: none;
}

.is-paid-user .premium-icon {
  display: none;
}

.premium-popup-content-freeze-mob{
      transform: translateY(5px);
    transition: opacity 0.2s ease, transform 0.2s ease;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1), inset 0 0 16px rgba(255, 255, 255, 1);
    padding: 16px;
    z-index: 1000;
    overflow: hidden;
    opacity: 0;
    transform: translateY(5px);
    transition: opacity 0.2s ease, transform 0.2s ease;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    backdrop-filter: blur(16px) saturate(200%);
    -webkit-backdrop-filter: blur(16px) saturate(200%);
}

.noise-background {
  background: #3C72E6;
  position: relative;
  overflow: hidden;
}

.noise-background::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    radial-gradient(circle at 20% 80%, rgba(255, 255, 255, 0.4) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.4) 0%, transparent 50%);
  background-size: 0.5px 0.5px;
  opacity: 0.4;
  mix-blend-mode: overlay;
}

.noise-background::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    repeating-conic-gradient(from 0deg at 50% 50%, 
      rgba(255, 255, 255, 0.1) 0deg, 
      transparent 0.5deg, 
      rgba(255, 255, 255, 0.1) 1deg);
  background-size: 1px 1px;
  opacity: 0.4;
}

.premium-rephrase-content {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    margin: auto;
    backdrop-filter: blur(16px) saturate(200%);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1), inset 0 0 16px rgba(255, 255, 255, 1);
    padding: 16px;
    z-index: 1000;
    overflow: hidden;
    transform: translateY(5px);
    transition: opacity 0.2s ease, transform 0.2s ease;
        transform: translateY(5px);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.range-point-popup {
  position: fixed;
  padding: 8px 12px;
  background-color: #333;
  color: white;
  border-radius: 4px;
  font-size: 12px;
  white-space: nowrap;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
  display: none;
  z-index: 100;
  transform: translateX(-50%);
  pointer-events: none;
}

.range-point-popup::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  margin-left: -5px;
  border-width: 5px;
  border-style: solid;
  border-color: #333 transparent transparent transparent;
  background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(16px) saturate(200%);
    -webkit-backdrop-filter: blur(16px) saturate(200%);
}

  .premium-popup .popup-content {
    padding: 16px 10px;
    text-align: center;
  }
  
  .premium-popup .popup-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
  }
  
  .premium-popup .unlock-icon {
    font-size: 20px;
  }
  
  .premium-popup h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #4A90E2;
  }
  
  .premium-popup p {
    margin: 0 0 8px 0;
    font-size: 14px;
    color: #666;
    line-height: 1.4;
  }
  
  .premium-popup .upgrade-btn {
    background: linear-gradient(135deg, #4A90E2 0%, #50C9C3 100%);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: center;
    width: 100%;
    transition: all 0.2s ease;
  }
  
  .premium-popup .upgrade-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(74, 144, 226, 0.3);
  }
  
  .premium-popup .popup-arrow::before {
    content: '';
    position: absolute;
    top: -11px;
    left: -10px;
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-bottom: 10px solid rgba(0, 0, 0, 0.1);
  }

  .premium-additional-icon{
    /* width: 16px;
    height: 16px;
    fill: white;
    margin-left: 4px;
    transition: transform 0.2s ease; */
    position: absolute;
    left: 56px;
    top: 18px;
  }

  .premium-feature-container {
    padding: 10px;
  }

  .history-switch input:disabled + .history-slider {
    opacity: 0.3;
    cursor: not-allowed;
    background-color: #929292;
}


  .verify-container-guest {
    width: 50vw;
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 20px;
  }

  .verify-premium-content-container {
    padding: 4px 0px;
    border-top: 1px solid #F1F1F1;
    border-bottom: 1px solid #F1F1F1;
    display: flex;
    flex-direction: column;
    gap: 24px;
  }

  #no-results-message {
    text-align: justify;
    padding: 12px 0px;
    color: #666;
    display: block;
}

.synonym-shimmer {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
    padding: 4px 0px;
    width: 120px;
}

.shimmer-item {
    height: 30px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 6px;
    position: relative;
    overflow: hidden;
}

.shimmer-item { 
  width: 85%;
 }


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

.editable-highlight {
    background-color: #ffeb3b; /* Highlight color */
    border-radius: 3px;
    padding: 0 2px;
    caret-color: #000; /* Ensures cursor visibility */
}

.editable-highlight:focus {
    outline: 2px solid #2196F3; /* Optional focus indicator */
}

.custom-mode-feature {
  display: flex;
  align-items: center;
  gap: 4px
}