@charset "UTF-8";
@import url("https://fonts.googleapis.com/css2?family=Figtree:wght@400;500;600;700&display=swap");

/* =========================
   1. ROOT VARIABLES & THEME
   ========================= */
:root {
  --blue: #0d6efd;
  --blue-dimmed: #0a58ca;
  --red: #dc3545;
  --green: #198754;
  --background: #121212;
  --text-color: #ffffff;
  --card-background: #1e1e1e;
  --tooltip-background: #F0EDED;
  --input-background: #2a2a2a;
  --button-background: #2c2c2c;
  --button-active-background: #f0f0f0;
  --button-active-text-color: #000000;
  --border-color: #444444;
  --shadow: rgba(0, 0, 0, 0.4);
}

body.light {
  --blue: #0d6efd;
  --blue-dimmed: #0a58ca;
  --red: #dc3545;
  --green: #198754;
  --background: #f2f2f2;
  --text-color: #000000;
  --card-background: #ffffff;
  --tooltip-background: #363534;
  --input-background: #f9f9f9;
  --button-background: #dddddd;
  --button-active-background: #121212;
  --button-active-text-color: #ffffff;
  --border-color: #cccccc;
  --shadow: rgba(0, 0, 0, 0.1);
}

/* ====================
   2. BASE & TYPOGRAPHY
   ==================== */
body {
  font-family: 'Figtree', sans-serif;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.5;
  background-color: var(--background);
  color: var(--text-color);
  padding: 1.25rem;
  transition: all 0.3s ease;
  -webkit-text-size-adjust: 100%;
}

h3, h2, h1 {
  margin-top: 0;
  margin-bottom: 0.5rem;
  font-weight: 700;
  line-height: 1.2;
}

h3, h2 {
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 0.75rem;
}

h1 {
  font-size: calc(1.375rem + 1.5vw);
}
@media (min-width: 768px) {
  h1 { font-size: 2.5rem; }
}

h2 {
  font-size: calc(1.325rem + 0.9vw);
}
@media (min-width: 768px) {
  h2 { font-size: 2rem; }
}

h3 {
  font-size: calc(1.15rem + 0.3vw);
}
@media (min-width: 768px) {
  h3 { font-size: 1.5rem; }
}

summary {
  font-size: 1.125rem;
  font-weight: 700;
}
@media (min-width: 768px) {
  summary { font-size: 1.5rem; }
}

/* ======================
   3. LAYOUT & CONTAINERS
   ====================== */
.card {
  background-color: var(--card-background);
  border-radius: 0.75rem;
  padding: 1.25rem;
  max-width: 37.5rem;
  margin: 1.25rem auto;
  box-shadow: 0 0 0.625rem var(--shadow);
}
@media (min-width: 768px) {
  .card { padding: 1.75rem; }
}

.section {
  margin-bottom: 1.25rem;
}

#main-content {
  margin-top: 2rem;
}
@media (min-width: 768px) {
  #main-content { margin-top: 3.2rem; }
}

/* ==========================================
   4. FORM ELEMENTS (Labels, Inputs, Selects)
   ========================================== */
.grp-label-wrapper {
  display: block;
  margin-top: 1rem;
  margin-bottom: 0.375rem;
  font-size: 1rem;
}
@media (min-width: 768px) {
  .grp-label-wrapper { font-size: 1.25rem; }
}

.grp-label-text {
  font-weight: 500;
}

input[type="text"],
input[type="number"],
select,
textarea {
  width: 100%;
  padding: 0.625rem;
  border-radius: 0.5rem;
  border: 1px solid var(--border-color);
  background-color: var(--input-background);
  color: var(--text-color);
  font-size: 1rem;
  box-sizing: border-box;
}
@media (min-width: 768px) {
  input[type="text"],
  input[type="number"],
  select,
  textarea { font-size: 1.25rem; }
}

input:focus,
select:focus,
textarea:focus,
input[type="text"]:focus,
input[type="number"]:focus,
input[type="color"]:focus,
.jscolor:focus,
.grp-select-trigger.open {
  border-color: var(--text-color) !important;
  outline: none !important;
  box-shadow: 0 0 0 1.25px var(--text-color) !important;
}

/* ========================================
   5. TOGGLE BUTTON GROUP (Multiple Select)
   ======================================== */
.toggle {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.toggle button {
  padding: 0.375rem 0.75rem;
  border-radius: 0.375rem;
  border: 1px solid var(--border-color);
  background-color: var(--button-background);
  color: var(--text-color);
  font-size: 0.9rem;
  cursor: pointer;
}
@media (min-width: 768px) {
  .toggle button {
    padding: 0.45rem 0.975rem;
    font-size: 1.165rem;
  }
}

.toggle button.active {
  background-color: var(--button-active-background);
  color: var(--button-active-text-color);
}

/* =======================
   6. NUMBER INPUT WRAPPER
   ======================= */
.grp-number-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.grp-number-input-wrapper {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.65rem;
}

.grp-number-input-wrapper input {
  font-size: 1rem;
  width: 3.125rem;
  text-align: center;
  border-radius: 0.5rem;
}
@media (min-width: 768px) {
  .grp-number-input-wrapper input {
    font-size: 1.25rem;
    width: 9.375rem;
  }
}

.grp-number-input-wrapper button {
  width: 2.5rem;
  height: 2.5rem;
  font-size: 1rem;
  font-weight: 600;
  background: var(--button-background);
  color: var(--text-color);
  border: 1px solid var(--border-color);
  border-radius: 0.5rem;
  cursor: pointer;
}
@media (min-width: 768px) {
  .grp-number-input-wrapper button {
    width: 2.75rem;
    height: 2.75rem;
  }
}

.grp-number-input-wrapper button:hover {
  background-color: var(--button-active-background);
  color: var(--button-active-text-color);
}

/* ==========
   7. TOOLTIP
   ========== */
.tooltip-icon {
  margin-left: 0.125rem;
  cursor: pointer;
  position: relative;
  opacity: 0.5;
}

.tooltip-icon:hover {
  opacity: 1;
}

.tooltip-icon::after {
  content: attr(data-tooltip);
  position: absolute;
  font-size: 0.75rem;
  bottom: 125%;
  left: 0;
  min-width: 9.375rem;
  transform: translateX(0%);
  background: var(--tooltip-background);
  color: var(--button-active-text-color);
  border-radius: 0.375rem;
  padding: 0.375rem 0.5rem;
  white-space: normal;
  overflow-wrap: break-word;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  z-index: 20;
  text-align: center;
  box-sizing: border-box;
}
@media (min-width: 768px) {
  .tooltip-icon::after {
    font-size: 0.925rem;
    min-width: 15rem;
  }
}

.tooltip-icon:hover::after {
  opacity: 1;
}

/* ============================
   8. CONTROLS & ACTION BUTTONS
   ============================ */
.controls {
  display: flex;
  flex-wrap: wrap;
  gap: 0.625rem;
  margin-top: 0.9375rem;
}
.controls button {
  padding: 0.5rem 0.875rem;
  border-radius: 0.5rem;
  border: 1px solid #3774EB;
  background-color: var(--blue);
  color: #fff;
  cursor: pointer;
  transition: background 0.2s;
}
.controls button:hover {
  background-color: var(--blue-dimmed);
}

/* ========================
   9. TOAST & NOTIFICATIONS
   ======================== */
#toast-container {
  position: fixed;
  z-index: 9999;
  left: 50%;
  bottom: 20px;
  top: auto;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
@media (min-width: 768px) {
  #toast-container {
    top: 20px;
    bottom: auto;
  }
}

.toast {
  background-color: var(--button-background);
  color: var(--text-color);
  border-radius: 8px;
  padding: 12px 16px;
  margin-top: 10px;
  box-shadow: 0 2px 8px var(--shadow);
  opacity: 0;
  animation: fadeInOut 3s ease forwards;
}

.toast.success { border-left: 4px solid var(--green); }
.toast.error { border-left: 4px solid var(--red); }

@keyframes fadeInOut {
  0% { opacity: 0; transform: translateY(20px); }
  10%, 90% { opacity: 1; transform: translateY(0); }
  100% { opacity: 0; transform: translateY(-10px); }
}

/* =========================
   10. PREVIEW & CODE BLOCKS
   ========================= */
pre, textarea {
  background-color: var(--input-background) !important;
  color: var(--text-color);
  padding: 0.625rem !important;
  margin-top: 1.25rem !important;
  border-radius: 0.5rem;
  border: 1px solid var(--border-color) !important;
  overflow-x: auto;
  font-size: 0.875rem !important;
  word-wrap: break-word !important;
  white-space: pre-wrap !important;
}
@media (min-width: 768px) {
  pre, textarea { font-size: 1.125rem !important; }
}

/* =========================
   11. BADGES (GitHub Stats)
   ========================= */
.badge-container {
  display: flex;
  flex-wrap: wrap;
  gap: 0.625rem;
  justify-content: center;
  margin: 1.25rem auto 1.875rem;
  padding: 0 1.25rem;
}
@media (min-width: 768px) {
  .badge-container { padding: 0 8rem; }
}

.badge {
  background: var(--button-background);
  color: var(--text-color);
  padding: 0.5rem 0.875rem;
  border-radius: 0.625rem;
  font-size: 0.875rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  border: 1px solid var(--border-color);
  text-decoration: none;
}
@media (min-width: 768px) {
  .badge { font-size: 1.15rem; }
}

.badge span { font-weight: 500; }

.badge:hover {
  background-color: var(--button-active-background);
  color: var(--button-active-text-color);
}

/* =======================
   12. THEME TOGGLE BUTTON
   ======================= */
#theme-toggle-button {
  position: fixed;
  width: 3.125rem;
  height: 3.125rem;
  right: 1.25rem;
  border-radius: 50%;
  border: 2px solid var(--border-color);
  background: var(--button-background);
  color: var(--text-color);
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.3s;
  z-index: 1050;
}
@media (max-width: 768px) {
  #theme-toggle-button {
    bottom: 1.25rem;
    top: auto;
  }
}
@media (min-width: 768px) {
  #theme-toggle-button {
    width: 4.688rem;
    height: 4.688rem;
    bottom: auto;
    top: 5rem;
    font-size: 2.5rem;
  }
}

#theme-toggle-button:hover {
  background: var(--button-active-background);
  color: var(--button-active-text-color);
}

/* =========================
   13. SPONSOR TOGGLE BUTTON
   ========================= */
#sponsor-toggle-button {
  position: fixed;
  width: 3.125rem;
  height: 3.125rem;
  right: 1.25rem;
  border-radius: 50%;
  border: 2px solid var(--border-color);
  background: var(--button-background);
  color: var(--text-color);
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.3s;
  z-index: 1049;
}
@media (max-width: 768px) {
  #sponsor-toggle-button {
    bottom: 5rem;
    top: auto;
  }
}
@media (min-width: 768px) {
  #sponsor-toggle-button {
    width: 4.688rem;
    height: 4.688rem;
    bottom: auto;
    top: 10.75rem;
    font-size: 2.5rem;
  }
}

#sponsor-toggle-button.active {
  background: var(--button-active-background);
  color: var(--button-active-text-color);
}

#sponsor-toggle-options {
  position: fixed;
  display: flex;
  flex-direction: column;
  background: var(--button-background);
  border-radius: 0.625rem;
  padding: 0.625rem;
  right: 1.25rem;
  width: 7.5rem;
  box-shadow: 0 0.125rem 0.5rem var(--shadow);
  gap: 0.375rem;
  z-index: 1048;
}
@media (max-width: 768px) {
  #sponsor-toggle-options {
    bottom: 8.75rem;
    top: auto;
  }
}
@media (min-width: 768px) {
  #sponsor-toggle-options {
    bottom: auto;
    top: 16.875rem;
    width: 12.5rem;
  }
}
#sponsor-toggle-options.hidden {
  display: none;
}

#sponsor-toggle-options a {
  text-decoration: none;
  color: var(--text-color);
  padding: 0.5rem 0.75rem;
  border-radius: 0.375rem;
  font-size: 0.875rem;
  transition: background 0.2s;
  white-space: nowrap;
}
@media (min-width: 768px) {
  #sponsor-toggle-options a { font-size: 1.25rem; }
}

/* ==========================
   14. CHECKBOX INPUT WRAPPER
   ========================== */
.grp-checkbox-section .grp-checkbox-wrapper {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 1rem;
}
@media (min-width: 768px) {
  .grp-checkbox-section .grp-checkbox-wrapper { font-size: 1.25rem; }
}

.grp-checkbox-section label {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  cursor: pointer;
}

.grp-checkbox-section input[type="checkbox"] {
  appearance: none;
  width: 1.125rem;
  height: 1.125rem;
  border: 2px solid var(--border-color);
  background-color: var(--input-background);
  border-radius: 0.25rem;
  position: relative;
  cursor: pointer;
  transition: all 0.2s ease;
}
@media (min-width: 768px) {
  .grp-checkbox-section input[type="checkbox"] {
    width: 1.5rem;
    height: 1.5rem;
  }
}

.grp-checkbox-section input[type="checkbox"]:checked::before {
  content: "✔";
  position: absolute;
  top: -2px;
  left: 2px;
  font-size: 0.75rem;
  color: var(--text-color);
}
@media (min-width: 768px) {
  .grp-checkbox-section input[type="checkbox"]:checked::before {
    top: -2.5px;
    left: 2.5px;
    font-size: 1.15rem;
  }
}

/* =======================
   15. COLOR INPUT WRAPPER
   ======================= */
.grp-color-section {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 0.3125rem;
}

.grp-color-section label {
  font-weight: 500;
}

.grp-color-input-wrapper {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: -0.5rem;
}

.grp-color-input-wrapper input {
  padding: 0.625rem;
  border-radius: 0.5rem;
  border: 1px solid var(--border-color);
  background: var(--input-background);
  color: var(--text-color);
}

.grp-color-input-wrapper button {
  width: 2.775rem;
  height: 2.5rem;
  font-size: 1rem;
  font-weight: 600;
  background: var(--button-background);
  color: var(--text-color);
  border: 1px solid var(--border-color);
  border-radius: 0.5rem;
  cursor: pointer;
}

.grp-color-input-wrapper button:hover {
  background-color: var(--button-active-background);
  color: var(--button-active-text-color);
}

/* ===========================
   16. ADVANCED SELECT WRAPPER
   =========================== */
.grp-advanced-select-wrapper {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.grp-advanced-select-wrapper select {
  border-radius: 0.5rem;
  padding: 0.625rem;
  border: 1px solid var(--border-color);
  background: var(--input-background);
  color: var(--text-color);
}

.grp-advanced-select-wrapper button {
  width: 2.775rem;
  height: 2.5rem;
  font-size: 1rem;
  font-weight: 600;
  background: var(--button-background);
  color: var(--text-color);
  border: 1px solid var(--border-color);
  border-radius: 0.5rem;
  cursor: pointer;
}

.grp-advanced-select-wrapper button:hover {
  background-color: var(--button-active-background);
  color: var(--button-active-text-color);
}

/* ==========
   17. FOOTER
   ========== */
footer {
  text-align: center;
  padding: 1.5rem;
  margin-top: 2rem;
  border-top: 1px solid var(--border-color);
  color: var(--text-color);
  font-size: 0.875rem;
  opacity: 0.8;
}
@media (min-width: 768px) {
  footer { font-size: 1rem; }
}

footer a {
  color: var(--blue);
  text-decoration: none;
}
footer a:hover {
  text-decoration: underline;
  opacity: 1;
}

footer .heart {
  color: var(--red);
  display: inline-block;
  animation: heartbeat 1.5s ease infinite;
}

@keyframes heartbeat {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

/* ===================================
   18. IMAGE PREVIEW & LOADING SPINNER
   =================================== */
.image-preview-container {
  position: relative;
  display: inline-block;
  width: 100%;
  text-align: center;
  min-height: 100px;
}

#image-preview {
  max-width: 100%;
  margin: 5px auto 0;
  display: block;
  transition: opacity 0.2s ease;
}

.loading-spinner {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 40px;
  height: 40px;
  border: 6px solid var(--shadow);
  border-top: 6px solid var(--blue-dimmed);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  display: none;
}

@keyframes spin {
  0% { transform: translate(-50%, -50%) rotate(0deg); }
  100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* ===================
   19. CAPTCHA OVERLAY
   =================== */
#captcha-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(5px);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10002;
  transition: opacity 0.3s ease;
}

.captcha-container {
  background: var(--card-background);
  border-radius: 0.75rem;
  padding: 1.25rem;
  margin: 1.25rem auto;
  max-width: 37.5rem;
  text-align: center;
  box-shadow: 0 0 0.625rem var(--shadow);
}
@media (min-width: 768px) {
  .captcha-container { padding: 1.75rem; }
}

.captcha-container h2 {
  font-size: calc(1.325rem + 0.9vw);
  margin-top: 0;
  margin-bottom: 0.5rem;
  font-weight: 700;
  line-height: 1.2;
}
@media (min-width: 768px) {
  .captcha-container h2 { font-size: 2rem; }
}

.captcha-container p {
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.5;
  color: var(--text-color);
  opacity: 0.8;
  margin-bottom: 1.5rem;
}
@media (min-width: 768px) {
  .captcha-container p { font-size: 1.25rem; }
}

.h-captcha {
  margin: 1.5rem 0;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  overflow-x: auto;
}

.h-captcha iframe {
  display: block;
  max-width: 100%;
  height: auto;
}

@media (max-width: 300px) {
  .h-captcha {
    justify-content: flex-start;
  }
  .h-captcha iframe {
    min-width: 300px;
  }
}

#captcha-status {
  font-size: 0.85rem;
  margin-top: 1rem;
  min-height: 2rem;
  color: var(--text-color);
}
@media (min-width: 768px) {
  #captcha-status { font-size: 1rem; }
}

/* ==================
   20. LOADING SCREEN
   ================== */
#loading-screen-overlay {
  position: fixed;
  inset: 0;
  background: var(--background);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10003;
  transition: opacity 0.3s ease;
}

.loading-screen-loader {
  width: 80px;
  height: 80px;
  position: relative;
}

.loading-screen-loader::before {
  content: "";
  position: absolute;
  inset: 0;
  border: 6px solid var(--button-background);
  border-top-color: var(--blue);
  border-radius: 50%;
  animation: spin2 1s linear infinite;
}

.loading-screen-loader .loading-screen-logo-wrapper {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.loading-screen-logo-wrapper svg {
  width: 100%;
  height: 100%;
}

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

/* ============================================
   21. CARDS MESSAGE (Note, Warning, Important)
   ============================================ */
.card-message {
  background-color: var(--card-background);
  border-radius: 0.75rem;
  padding: 1.25rem;
  max-width: 37.5rem;
  margin: 1.25rem auto;
  box-shadow: 0 0 0.625rem var(--shadow);
  border-left: 4px solid;
  transition: all 0.2s ease;
}
@media (min-width: 768px) {
  .card-message { padding: 1.75rem; }
}

.card-message::before {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
  font-family: 'tabler-icons', 'Figtree', sans-serif;
}

.card-message.note {
  border-left-color: var(--blue);
}
.card-message.note::before {
  content: "\eac5  Note";
  color: var(--blue);
}

.card-message.warning {
  border-left-color: #f4b942;
}
.card-message.warning::before {
  content: "\eb9b  Warning";
  color: #f4b942;
}

.card-message.important {
  border-left-color: var(--red);
}
.card-message.important::before {
  content: "\eb77  Important";
  color: var(--red);
}

.card-message .content {
  font-size: 1rem;
  line-height: 1.5;
  color: var(--text-color);
}

/* ============================
   22. SUPPORT PALESTINE BANNER
   ============================ */
.support-palestine-banner {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: linear-gradient(135deg, #006233 0%, #007a3d 100%);
  color: white;
  text-align: center;
  padding: 0.6rem 1rem;
  z-index: 10001;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  font-size: 0.9rem;
  backdrop-filter: blur(2px);
  white-space: nowrap;
  overflow-x: auto;
}

.support-palestine-banner-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  max-width: 1200px;
  margin: 0 auto;
  flex-wrap: nowrap;
}

.support-palestine-banner-content i,
.support-palestine-banner-content span,
.support-palestine-banner-link {
  white-space: nowrap;
}

.support-palestine-banner-content i {
  font-size: 1.2rem;
  filter: drop-shadow(0 0 2px rgba(0,0,0,0.2));
  animation: heartbeat 1.5s ease infinite;
}

.support-palestine-banner-content span {
  font-weight: 600;
  letter-spacing: 0.3px;
}

.support-palestine-banner-link {
  background: rgba(255, 255, 255, 0.2);
  padding: 0.3rem 0.9rem;
  border-radius: 40px;
  color: white;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.8rem;
  transition: all 0.2s;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.support-palestine-banner-link:hover {
  background: rgba(255, 255, 255, 0.35);
  transform: scale(1.02);
}

@media (max-width: 768px) {
  .support-palestine-banner {
    padding: 0.5rem 0.8rem;
    font-size: 0.8rem;
  }
  .support-palestine-banner-content {
    gap: 0.5rem;
  }
  .support-palestine-banner-link {
    padding: 0.2rem 0.7rem;
    font-size: 0.75rem;
  }
  .support-palestine-banner-content span {
    font-size: 0.85rem;
  }
}

@media (max-width: 480px) {
  .support-palestine-banner {
    padding: 0.4rem 0.5rem;
  }
  .support-palestine-banner-content {
    gap: 0.4rem;
  }
  .support-palestine-banner-content span {
    font-size: 0.75rem;
  }
  .support-palestine-banner-link {
    font-size: 0.7rem;
    padding: 0.15rem 0.6rem;
  }
  .support-palestine-banner-content i {
    font-size: 1rem;
  }
}

/* ===========================
   23. SELECT OPTIONS DROPDOWN
   =========================== */
.grp-select-container {
  position: relative;
  width: 100%;
}

.grp-select-trigger {
  background-color: var(--input-background);
  border: 1px solid var(--border-color);
  border-radius: 0.5rem;
  padding: 0.5rem 2.5rem 0.5rem 0.625rem;
  font-size: 1rem;
  cursor: pointer;
  position: relative;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--text-color);
}

.grp-select-trigger i {
  position: absolute;
  right: 0.5rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-color);
  pointer-events: none;
  transition: transform 0.2s;
}

.grp-select-dropdown {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  width: 100%;
  background: var(--card-background);
  border: 1px solid var(--border-color);
  border-radius: 0.75rem;
  box-shadow: 0 0.625rem 0.9375rem -0.1875rem var(--shadow);
  z-index: 1000;
  max-height: 300px;
  overflow-y: auto;
  display: none;
}

.grp-select-dropdown.show {
  display: block;
}

.grp-select-search {
  padding: 0.5rem;
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  background: var(--card-background);
  z-index: 1;
}

.grp-select-search input {
  width: 100%;
  padding: 0.5rem;
  border: 1px solid var(--border-color);
  border-radius: 0.5rem;
  font-size: 0.875rem;
  background: var(--input-background);
  color: var(--text-color);
}

.grp-select-group {
  padding: 0.25rem 0;
}

.grp-select-group-title {
  padding: 0.5rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-color);
  background-color: var(--border-color);
  position: sticky;
  top: 48px;
}

.grp-select-option {
  padding: 0.5rem 1rem;
  cursor: pointer;
  transition: background-color 0.2s;
  color: var(--text-color);
}

.grp-select-group.has-title .grp-select-option {
  padding: 0.5rem 1.5rem;
}

.grp-select-option:hover {
  background-color: var(--button-active-background);
  color: var(--button-active-text-color);
}

.grp-select-option.selected {
  background-color: var(--blue);
  color: #fff;
}

.grp-select-option small,
.grp-select-trigger small {
  font-size: 0.75em;
  opacity: 0.8;
  margin-left: 0.25rem;
}

/* ===========================
   24. UTILITY & MISCELLANEOUS
   =========================== */
#copy-json-btn {
  transition: opacity 0.2s;
}
#copy-json-btn:hover {
  opacity: 1;
}

.comment-box {
  margin-top: 1.5rem;
  transition: opacity 0.3s ease;
}

.ad-banner-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
}

.ad-banner-container a {
  flex: 0 0 auto;
  text-decoration: none;
}

.ad-banner-container img {
  max-width: 100%;
  height: auto;
}
