/**
 * Subconjunto do XMenu DS (referência: xmenu-design-system-pack/exemplo/index.html)
 */
body {
  min-height: 100dvh;
  background-color: var(--color-xbg-light);
  transition: background-color 0.25s ease, color 0.25s ease;
}

/* App web: evita seleção acidental de textos/imagens ao arrastar (desktop). */
#NSBPage {
  -webkit-user-select: none;
  user-select: none;
}

#NSBPage input:not([type='checkbox']):not([type='radio']):not([type='range']):not([type='hidden']):not([type='button']):not([type='submit']):not([type='reset']):not([type='file']):not([type='image']),
#NSBPage textarea,
#NSBPage select,
#NSBPage [contenteditable='true'],
#NSBPage [contenteditable=''] {
  -webkit-user-select: text;
  user-select: text;
}

#NSBPage img {
  -webkit-user-drag: none;
  user-drag: none;
}

.dark body {
  background-color: var(--color-xbg-dark);
  color: #e5e7eb;
}

.glass-panel {
  position: relative;
  overflow: hidden;
  transition: all 0.25s ease;
  border-radius: 0.75rem;
}

.glass-panel {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border: 1px solid rgba(27, 97, 167, 0.1);
  box-shadow: 0 8px 32px 0 rgba(27, 97, 167, 0.05);
}

.dark .glass-panel {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
}

.liquid-blob {
  position: fixed;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.45;
  z-index: -1;
  pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
  .glass-panel,
  body {
    transition: none;
  }
}

/**
 * iOS Safari: inputs com font-size < 16px disparam zoom ao focar e mantêm após fechar o teclado.
 * Mobile (≤1023px): força 16px em campos editáveis; desktop mantém utilitários Tailwind (text-sm).
 */
@media (max-width: 1023px) {
  input:not([type='checkbox']):not([type='radio']):not([type='range']):not([type='hidden']):not([type='button']):not([type='submit']):not([type='reset']):not([type='file']):not([type='image']),
  textarea,
  select {
    font-size: 16px;
  }
}
