/* ALL CSS STYLES RETAINED EXACTLY AS THEY WERE IN YOUR UPLOADED FILE */
:root {
  --highlight-color: #00f9ff;
}
body {
  font-family: "Inter", sans-serif;
  background: linear-gradient(
    to right,
    #f3f4f6 0%,
    #ede9fe 20%,
    #ede9fe 80%,
    #f3f4f6 100%
  );
}
.item {
  margin-bottom: 0.75rem;
  padding: 1rem;
  padding-right: 2.25rem;
  padding-left: 2.25rem;
  font-size: 1.17rem;
  background-color: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 1rem;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transition: all 0.2s ease-in-out;
  cursor: pointer;
  position: relative;
}
.item::before {
  content: "\f005";
  font-family:
    "Font Awesome 6 Free", "Font Awesome 5 Free", "FontAwesome";
  font-weight: 400;
  position: absolute;
  top: 10px;
  left: 12px;
  font-size: 0.95rem;
  color: #a0aec0;
  line-height: 1;
  opacity: 0.75;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
  z-index: 5;
  padding: 5px;
  margin-left: -5px;
  margin-top: -5px;
}
.item.is-saved::before {
  font-weight: 900;
  color: #ffd700;
  opacity: 1;
  transform: scale(1.1);
}
.item::before:hover {
  opacity: 1;
  transform: scale(1.15);
}
.item::after {
  content: attr(data-qn);
  position: absolute;
  top: 8px;
  right: 10px;
  font-size: 0.75rem;
  color: #6b7280;
  background: #eef2ff;
  border: 1px solid #e5e7eb;
  padding: 2px 6px;
  border-radius: 9999px;
  line-height: 1;
  opacity: 0.85;
  pointer-events: none;
  display: none;
}
.item[data-qn]:not([data-qn=""])::after {
  display: inline-block;
}
.item.selected-item {
  background-color: var(--highlight-color);
  padding: 1.15rem;
  padding-right: 2.5rem;
  padding-left: 2.5rem;
  font-size: 1.27rem;
  margin-bottom: 1.25rem;
  transform: scale(1.03);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}
.chosen-item {
  display: block;
  margin-bottom: 0.75rem;
  padding: 1rem;
  padding-right: 2.25rem;
  padding-left: 2.25rem;
  font-size: 1.17rem;
  background-color: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 1rem;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transition: all 0.2s ease-in-out;
  cursor: pointer;
  text-align: center;
  position: relative;
}
.chosen-item::before {
  content: "\f005";
  font-family:
    "Font Awesome 6 Free", "Font Awesome 5 Free", "FontAwesome";
  font-weight: 900;
  position: absolute;
  top: 10px;
  left: 12px;
  font-size: 0.95rem;
  color: #ffd700;
  line-height: 1;
  opacity: 1;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
  z-index: 5;
  padding: 5px;
  margin-left: -5px;
  margin-top: -5px;
}
.chosen-item::before:hover {
  opacity: 0.8;
  transform: scale(1.15);
}
.chosen-item-text {
  font-size: 1.17rem;
  color: #111827;
  flex-grow: 1;
  min-width: 0;
  overflow-wrap: anywhere;
  margin-bottom: 0.25rem;
}
.note-container {
  margin-top: 0.75rem;
  display: none;
  margin-left: -2.25rem;
  margin-right: -2.25rem;
  padding: 0 1rem;
}
#chosen-questions-display.notes-visible .note-container {
  display: block;
}
.note-textarea {
  width: 100%;
  font-size: 0.9rem;
  color: #374151;
  border: 1px solid #d1d5db;
  border-radius: 0.5rem;
  padding: 0.5rem;
  resize: none;
  min-height: 38px;
  height: 38px;
  overflow-y: hidden;
  background: #f9fafb;
  transition:
    border-color 0.15s,
    box-shadow 0.15s,
    background-color 0.15s;
  line-height: 1.4;
}
.note-textarea::placeholder {
  color: #9ca3af;
}
.note-textarea:focus {
  background: #ffffff;
  border-color: #8b5cf6;
  box-shadow: 0 0 0 2px rgba(139, 92, 246, 0.2);
  outline: none;
}
.switch {
  position: relative;
  display: inline-block;
  width: 38px;
  height: 22px;
  margin-right: 0.5rem;
  vertical-align: middle;
}
.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}
.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  -webkit-transition: 0.4s;
  transition: 0.4s;
  border-radius: 22px;
}
.slider:before {
  position: absolute;
  content: "";
  height: 16px;
  width: 16px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  -webkit-transition: 0.4s;
  transition: 0.4s;
  border-radius: 50%;
}
input:checked + .slider {
  background-color: #8b5cf6;
}
input:focus + .slider {
  box-shadow: 0 0 1px #8b5cf6;
}
input:checked + .slider:before {
  -webkit-transform: translateX(16px);
  -ms-transform: translateX(16px);
  transform: translateX(16px);
}
.chosen-item::after {
  content: attr(data-qn);
  position: absolute;
  top: 8px;
  right: 10px;
  font-size: 0.72rem;
  color: #6b7280;
  background: #eef2ff;
  border: 1px solid #e5e7eb;
  padding: 2px 6px;
  border-radius: 9999px;
  line-height: 1;
  opacity: 0.85;
  pointer-events: none;
  display: none;
}
.chosen-item[data-qn]:not([data-qn=""])::after {
  display: inline-block;
}
.chosen-item.selected-chosen-item {
  background-color: var(--highlight-color);
  padding: 1.15rem;
  padding-right: 2.5rem;
  padding-left: 2.5rem;
  font-size: 1.27rem;
  margin-bottom: 1.25rem;
  transform: scale(1.03);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}
.chosen-item.selected-chosen-item .chosen-item-text {
  font-size: 1.27rem;
}
#back-to-top {
  position: fixed;
  bottom: 20px;
  right: 20px; /* Match the right alignment of the other buttons */
  width: 56px; /* Match the dice size */
  height: 56px; /* Match the dice size */
  background-color: #6b46c1;
  color: white;
  font-size: 1.25rem;
  border: none;
  border-radius: 50%;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  cursor: pointer;
  display: none; /* Toggled by JS */
  align-items: center;
  justify-content: center;
  opacity: 0.8;
  transition: all 0.3s ease-in-out;
  z-index: 1000;
}

#back-to-top:hover {
  background-color: #805ad5;
  transform: translateY(-3px);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.2);
  opacity: 1;
}
#floating-dice {
  position: fixed;
  bottom: 80px;
  right: 20px;
  width: 56px;
  height: 56px;
  border-radius: 9999px;
  background: linear-gradient(135deg, #10b981, #06b6d4);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
  text-decoration: none;
  z-index: 1100;
  transition:
    transform 0.15s ease-in-out,
    box-shadow 0.2s ease-in-out,
    filter 0.2s,
    bottom 0.2s ease-in-out;
}
#floating-dice:hover,
#floating-dice:focus {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 10px 18px rgba(0, 0, 0, 0.2);
  outline: none;
  filter: brightness(1.05);
}
#floating-dice:active {
  transform: translateY(0) scale(0.98);
}
#floating-dice .fa-dice {
  font-size: 1.4rem;
}
#floating-join {
  position: fixed;
  bottom: 148px;
  right: 20px;
  width: 56px;
  height: 56px;
  border-radius: 9999px;
  background: linear-gradient(135deg, #3b82f6, #10b981);
  color: #ffffff;
  display: none !important;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
  text-decoration: none;
  z-index: 1120;
  transition:
    transform 0.15s ease-in-out,
    box-shadow 0.2s ease-in-out,
    filter 0.2s,
    bottom 0.2s ease-in-out;
}
#floating-join i {
  font-size: 1.17rem;
}
#floating-join:hover,
#floating-join:focus {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 10px 18px rgba(0, 0, 0, 0.2);
  outline: none;
  filter: brightness(1.05);
}
#floating-join:active {
  transform: translateY(0) scale(0.98);
}
#floating-lookup {
  position: fixed;
  bottom: 148px;
  right: 20px;
  width: 56px;
  height: 56px;
  border-radius: 9999px;
  background: linear-gradient(135deg, #3b82f6, #10b981);
  color: #ffffff;
  display: none;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
  text-decoration: none;
  z-index: 1150;
  transition:
    transform 0.15s ease-in-out,
    box-shadow 0.2s ease-in-out,
    filter 0.2s,
    bottom 0.2s ease-in-out;
  cursor: pointer;
}
#floating-lookup i {
  font-size: 1.17rem;
}
#floating-lookup:hover,
#floating-lookup:focus {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 10px 18px rgba(0, 0, 0, 0.2);
  outline: none;
  filter: brightness(1.05);
}
#floating-lookup:active {
  transform: translateY(0) scale(0.98);
}
#floating-copy {
  position: fixed;
  bottom: 216px;
  right: 20px;
  width: 56px;
  height: 56px;
  border-radius: 9999px;
  background: linear-gradient(135deg, #a855f7, #ec4899);
  color: #ffffff;
  display: none;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
  text-decoration: none;
  z-index: 1140;
  transition:
    transform 0.15s ease-in-out,
    box-shadow 0.2s ease-in-out,
    filter 0.2s,
    bottom 0.2s ease-in-out;
  cursor: pointer;
}
#floating-copy i {
  font-size: 1.15rem;
}
#floating-copy:hover,
#floating-copy:focus {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 10px 18px rgba(0, 0, 0, 0.2);
  outline: none;
  filter: brightness(1.05);
}
#floating-copy:active {
  transform: translateY(0) scale(0.98);
}

@media (max-width: 480px) {
  #floating-dice {
    width: 52px;
    height: 52px;
    bottom: 76px;
    right: 16px;
  }
  #floating-dice .fa-dice {
    font-size: 1.17rem;
  }
  #floating-join {
    width: 52px;
    height: 52px;
    right: 16px;
    bottom: 140px;
  }
  #floating-join i {
    font-size: 1.15rem;
  }
  #back-to-top {
    bottom: 16px;
    right: 16px; /* Match the mobile right alignment */
    width: 52px; /* Match the mobile dice size */
    height: 52px; /* Match the mobile dice size */
    font-size: 1.15rem; /* Slightly larger icon for the bigger button */
  }
  #floating-lookup {
    width: 52px;
    height: 52px;
    right: 16px;
    bottom: 140px;
  }
  #floating-lookup i {
    font-size: 1.15rem;
  }
  #floating-copy {
    width: 52px;
    height: 52px;
    right: 16px;
    bottom: 204px;
  }
  #floating-copy i {
    font-size: 1.05rem;
  }
}

#back-to-topics {
  background-color: #c53030;
  color: white;
  border: none;
  padding: 0.5rem 1rem;
  font-size: 1rem;
  font-weight: bold;
  border-radius: 9999px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  transition: all 0.3s ease-in-out;
  width: 100%;
  margin-top: 1rem;
  margin-bottom: 0;
  display: block;
  text-align: center;
}
#back-to-topics:hover {
  background-color: #9b2c2c;
  box-shadow: 0 6px 8px rgba(0, 0, 0, 0.15);
}

#clear-chosen-button {
  background-color: #fc8181;
  color: white;
  font-weight: bold;
  padding: 0.5rem 1rem;
  font-size: 1rem;
  border-radius: 9999px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  width: 100%;
  margin-top: 1rem;
  transition: all 0.3s ease-in-out;
}
#clear-chosen-button:hover {
  background-color: #f56565;
  box-shadow: 0 6px 8px rgba(0, 0, 0, 0.15);
}
#clear-chosen-button.clear-selected {
  background-color: #fecaca;
  color: #7f1d1d;
}
#clear-chosen-button.clear-selected:hover {
  background-color: #fca5a5;
}

#random-result {
  min-height: 60px;
}

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.3s ease-in-out,
    visibility 0.3s ease-in-out;
}
.modal-overlay.show {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  background-color: white;
  padding: 2rem;
  border-radius: 0.75rem;
  box-shadow: 0 10px 15px rgba(0, 0, 0, 0.2);
  text-align: center;
  max-width: 300px;
  width: 90%;
  transform: translateY(-20px);
  transition: transform 0.3s ease-in-out;
}

.modal-overlay.show .modal-content {
  transform: translateY(0);
}

.modal-buttons {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.modal-button {
  padding: 0.75rem 1.5rem;
  border-radius: 9999px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
}

.modal-button.confirm {
  background-color: #c53030;
  color: white;
}
.modal-button.confirm:hover {
  background-color: #9b2c2c;
}

.modal-button.cancel {
  background-color: #e2e8f0;
  color: #4a5568;
}
.modal-button.cancel:hover {
  background-color: #cbd5e0;
}

.modal-button.dont-show-again {
  background-color: #805ad5;
  color: white;
}
.modal-button.dont-show-again:hover {
  background-color: #6b46c1;
}

.filter-btn {
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  border: 1px solid #d1d5db;
  background-color: #ffffff;
  color: #4b5563;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
  font-size: 0.9rem;
}
.filter-btn:hover {
  background-color: #f3f4f6;
}
.filter-btn.active {
  background-color: #8b5cf6;
  color: #ffffff;
  border-color: #8b5cf6;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.loading-spinner-modal {
  border: 4px solid #f3f3f3;
  border-top: 4px solid #a855f7;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  animation: spin 1s linear infinite;
  margin: 20px auto;
}
@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.description-link-container {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: -0.5rem;
  margin-bottom: 1rem;
  font-size: 0.9rem;
  color: #6b46c1;
}
.description-link {
  display: inline-flex;
  align-items: center;
  text-align: center;
  color: #6b46c1;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s ease-in-out;
  border: none;
  background: none;
  cursor: pointer;
  padding: 0;
}
.description-link:hover {
  color: #805ad5;
  text-decoration: underline;
}
.description-link i {
  margin-right: 0.35rem;
}
.separator {
  display: inline-flex;
  align-items: center;
  margin: 0 0.45rem;
  color: #6b46c1;
  font-size: 1em;
  height: 1em;
  opacity: 0.5;
}

#qr-modal-content {
  max-width: 350px;
  padding: 1.5rem;
  position: relative;
}
#qr-modal-content img {
  width: 100%;
  height: auto;
  max-width: 250px;
  margin: 0 auto 1rem auto;
  display: block;
  border-radius: 0.5rem;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}
.qr-modal-close-button {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: #4a5568;
  line-height: 1;
  padding: 0.25rem;
  border-radius: 50%;
  transition:
    background-color 0.2s,
    color 0.2s;
}
.qr-modal-close-button:hover {
  background-color: #e2e8f0;
  color: #2d3748;
}
.qr-code-link {
  font-size: 0.875rem;
  color: #6b46c1;
  text-decoration: none;
  transition:
    color 0.2s ease-in-out,
    text-decoration 0.2s ease-in-out;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin-top: 0.5rem;
  justify-content: center;
}
.qr-code-link:hover {
  color: #805ad5;
  text-decoration: underline;
}

#search-google-choice-btn {
  background-color: #4285f4;
  color: white;
  font-weight: bold;
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
  border-radius: 9999px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  transition: all 0.3s ease-in-out;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.5rem;
}
#search-google-choice-btn:hover {
  background-color: #357ae8;
  box-shadow: 0 6px 8px rgba(0, 0, 0, 0.15);
}
#search-google-choice-btn i {
  margin-right: 0.5rem;
}

#search-bing-choice-btn {
  background-color: #008ad6;
  color: white;
  font-weight: bold;
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
  border-radius: 9999px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  transition: all 0.3s ease-in-out;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.5rem;
}
#search-bing-choice-btn:hover {
  background-color: #006fb7;
  box-shadow: 0 6px 8px rgba(0, 0, 0, 0.15);
}
#search-bing-choice-btn i {
  margin-right: 0.5rem;
}

#search-duckduckgo-choice-btn {
  background-color: #e3722a;
  color: white;
  font-weight: bold;
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
  border-radius: 9999px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  transition: all 0.3s ease-in-out;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.5rem;
}
#search-duckduckgo-choice-btn:hover {
  background-color: #c96024;
  box-shadow: 0 6px 8px rgba(0, 0, 0, 0.15);
}
#search-duckduckgo-choice-btn i {
  margin-right: 0.5rem;
}

#search-brave-choice-btn {
  background-color: #fb542b;
  color: white;
  font-weight: bold;
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
  border-radius: 9999px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  transition: all 0.3s ease-in-out;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.5rem;
}
#search-brave-choice-btn:hover {
  background-color: #d14424;
  box-shadow: 0 6px 8px rgba(0, 0, 0, 0.15);
}
#search-brave-choice-btn i {
  margin-right: 0.5rem;
}

#search-qwant-choice-btn {
  background-color: #000000;
  color: white;
  font-weight: bold;
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
  border-radius: 9999px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  transition: all 0.3s ease-in-out;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.5rem;
}
#search-qwant-choice-btn:hover {
  background-color: #333333;
  box-shadow: 0 6px 8px rgba(0, 0, 0, 0.15);
}
#search-qwant-choice-btn i {
  margin-right: 0.5rem;
}

#translate-google-choice-btn {
  background-color: #60a5fa;
  color: white;
  font-weight: bold;
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
  border-radius: 9999px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  transition: all 0.3s ease-in-out;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.5rem;
}
#translate-google-choice-btn:hover {
  background-color: #3b82f6;
  box-shadow: 0 6px 8px rgba(0, 0, 0, 0.15);
}
#translate-google-choice-btn i {
  margin-right: 0.5rem;
}

#translate-bing-choice-btn {
  background-color: #008ad6;
  color: white;
  font-weight: bold;
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
  border-radius: 9999px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  transition: all 0.3s ease-in-out;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.5rem;
}
#translate-bing-choice-btn:hover {
  background-color: #006fb7;
  box-shadow: 0 6px 8px rgba(0, 0, 0, 0.15);
}
#translate-bing-choice-btn i {
  margin-right: 0.5rem;
}

#translate-deepl-choice-btn {
  background-color: #0f2b46;
  color: white;
  font-weight: bold;
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
  border-radius: 9999px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  transition: all 0.3s ease-in-out;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.5rem;
}
#translate-deepl-choice-btn:hover {
  background-color: #0a1e31;
  box-shadow: 0 6px 8px rgba(0, 0, 0, 0.15);
}
#translate-deepl-choice-btn i {
  margin-right: 0.5rem;
}

.modal-subheading {
  font-size: 0.9rem;
  font-weight: 600;
  color: #4b5563;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 0.75rem;
  margin-bottom: 0.5rem;
  text-align: center;
  border-bottom: none;
  padding-bottom: 0;
}

.getting-started-list {
  list-style-type: none;
  padding-left: 0;
  text-align: left;
  counter-reset: step-counter;
}
.getting-started-list li {
  margin-bottom: 0.75rem;
  padding-left: 1.5rem;
  position: relative;
}
.getting-started-list li::before {
  content: counter(step-counter);
  counter-increment: step-counter;
  position: absolute;
  left: 0;
  top: 0;
  background-color: #9f7aea;
  color: white;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 0.8rem;
  font-weight: bold;
}

#getting-started-modal .getting-started-list a {
  color: #0000ee !important;
  font-weight: normal !important;
  background: none !important;
  border: none !important;
  text-decoration: none !important;
  cursor: pointer;
}
#getting-started-modal .getting-started-list a:hover,
#getting-started-modal .getting-started-list a:focus {
  color: #551a8b !important;
  text-decoration: underline !important;
  outline: none;
}
#getting-started-modal .getting-started-list a:active {
  color: #551a8b !important;
}

#inline-share-trigger {
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  color: #0000ee;
  font-style: italic;
  cursor: pointer;
}
#inline-share-trigger:hover,
#inline-share-trigger:focus {
  text-decoration: underline;
  color: #551a8b;
  outline: none;
}

#modal-goto-saved-trigger {
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  color: #0000ee !important;
  font-style: italic;
  cursor: pointer;
}
#modal-goto-saved-trigger:hover,
#modal-goto-saved-trigger:focus {
  color: #551a8b !important;
  text-decoration: underline;
  outline: none;
}

.bottom-tip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  color: #4b5563;
  background: #f3f4f6;
  border: 1px dashed #d1d5db;
  border-radius: 9999px;
  padding: 0.5rem 0.875rem;
  font-size: 0.9rem;
  margin-top: 0.75rem;
  user-select: none;
}
.bottom-tip i {
  color: #f59e0b;
}

.category-filter-btn {
  padding: 0.5rem 0.8rem;
  border: 1px solid #c4b5fd;
  border-radius: 9999px;
  background-color: #ffffff;
  color: #6b46c1;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
  font-size: 0.85rem;
  margin-bottom: 0.5rem;
}
.category-filter-btn:hover {
  background-color: #f5f3ff;
  border-color: #a78bfa;
}
.category-filter-btn.active {
  background-color: #6b46c1;
  color: #ffffff;
  border-color: #6b46c1;
}

#copy-notification-modal .modal-buttons {
  flex-direction: column;
  gap: 0.75rem;
}
#share-from-copy-modal-btn {
  background: linear-gradient(135deg, #a855f7, #ec4899);
  color: white;
}
#share-from-copy-modal-btn:hover {
  background-color: #9333ea;
}

#feedback-from-copy-modal-btn {
  background-color: #64748b;
  color: white;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
}
#feedback-from-copy-modal-btn:hover {
  background-color: #475569;
}

#join-session-from-copy-modal-btn {
  background: linear-gradient(to right, #10b981, #06b6d4);
  color: white;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
}
#join-session-from-copy-modal-btn:hover {
  background-color: #2563eb;
}

#first-time-save-modal .modal-buttons {
  justify-content: center;
}
#first-time-save-modal .modal-content {
  max-width: 320px;
}
#close-first-time-save-modal {
  background-color: #8b5cf6;
  color: white;
}
#close-first-time-save-modal:hover {
  background-color: #7c3aed;
}

/* --- TOP LEFT BACK BUTTON --- */
.top-left-back-btn {
  position: absolute; 
  top: 1.5rem;
  left: 1.5rem;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid #e5e7eb;
  color: #6b7280;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 0.8rem;
  border-radius: 9999px;
  transition: all 0.2s ease;
  font-family: "Inter", sans-serif;
  z-index: 50; 
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

.top-left-back-btn:hover {
  background: #ffffff;
  color: #7c3aed;
  border-color: #d8b4fe;
  transform: translateX(-2px);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

@media (max-width: 768px) {
  .top-left-back-btn {
    top: 1rem;
    left: 1rem;
    padding: 0.4rem 0.7rem;
    font-size: 0.85rem;
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.fade-in-up {
  animation: fadeInUp 0.4s ease-out forwards;
}

.searching-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem 0;
  color: #6b46c1;
}
.searching-spinner {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  animation: spin 1s linear infinite;
}

.focus-btn {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 30px;
  height: 30px;
  display: none;
  align-items: center;
  justify-content: center;
  background-color: rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(2px);
  color: #4b5563;
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 50%;
  cursor: pointer;
  z-index: 20;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  transition: all 0.2s ease;
  animation: fadeIn 0.2s ease-in-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: scale(0.8);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.focus-btn:hover {
  background-color: #ffffff;
  color: #7c3aed;
  border-color: #ffffff;
  transform: translateY(-1px) scale(1.1);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.item.selected-item .focus-btn,
.chosen-item.selected-chosen-item .focus-btn {
  display: flex;
}

.item.selected-item::before,
.chosen-item.selected-chosen-item::before {
  display: block !important;
  opacity: 1 !important;
  z-index: 50;
}

#focus-mode-modal {
  transition: opacity 0.3s ease;
}

.item.selected-item::after,
.chosen-item.selected-chosen-item::after {
  display: none !important;
}

@keyframes saved-section-flash {
  0% {
    background-color: rgba(168, 85, 247, 0.15);
    box-shadow: 0 0 0 2px rgba(168, 85, 247, 0.3);
  }
  100% {
    background-color: transparent;
    box-shadow: 0 0 0 0 rgba(168, 85, 247, 0);
  }
}

.highlight-saved-section {
  animation: saved-section-flash 2s ease-out;
  border-radius: 0.5rem;
}
.mindful-highlight {
  border-color: #a855f7 !important;
  background-color: #f3e8ff !important;
  transform: scale(1.02);
  box-shadow: 0 0 15px rgba(168, 85, 247, 0.3);
  transition: all 0.2s ease-in-out;
  position: relative;
  z-index: 10;
}

#privacy-general-modal .modal-content {
  max-width: 600px;
  max-height: 85vh;
  width: 90%;
  display: flex;
  flex-direction: column;
}

#privacy-general-modal .modal-content div.text-left {
  overflow-y: auto;
  flex-grow: 1;
  padding-right: 0.5rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid #e2e8f0;
  padding-bottom: 1rem;
}

.locked-feature {
  opacity: 0.5;
  pointer-events: none;
  filter: grayscale(1);
  position: relative;
  cursor: not-allowed;
}

.lock-wrapper {
  display: inline-flex;
  position: relative;
  cursor: pointer;
}

.lock-wrapper::after {
  content: "\f023";
  font-family:
    "Font Awesome 6 Free", "Font Awesome 5 Free", "FontAwesome";
  font-weight: 900;
  position: absolute;
  top: -8px;
  left: -8px;
  right: auto;
  background: #fbbf24;
  color: white;
  width: 20px;
  height: 20px;
  font-size: 10px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  z-index: 50;
  transition: transform 0.2s;
}
.lock-wrapper:hover::after {
  transform: scale(1.1);
}