/* Scope everything under the root to avoid conflicts with base nav, etc. */
#template-generator-root .d-none {
  display: none !important;
}

/* Loading overlay */
#template-generator-root #loadingOverlay {
  position: fixed;
  inset: 0;
  z-index: 1050;
  display: flex;
  align-items: center;
  justify-content: center;
}

#template-generator-root .loading-overlay-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
}

#template-generator-root .loading-overlay-box {
  position: relative;
  z-index: 1;
  background: #ffffff;
  padding: 14px 16px;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
}

/* Toast stack */
#template-generator-root .toast-stack {
  position: fixed;
  top: 16px;
  right: 16px;
  z-index: 1060;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

#template-generator-root .toast {
  background: rgba(17, 17, 17, 0.9);
  color: #ffffff;
  padding: 10px 12px;
  border-radius: 6px;
  font-size: 14px;
  max-width: 320px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
}

/* Small spinner tweak (if you use spinner-border-sm anywhere) */
#template-generator-root .spinner-border-sm {
  width: 1rem;
  height: 1rem;
  border-width: 0.2em;
}

