/* FULL-SCREEN MODAL CONTAINER */
#app-error-modal {
  position: fixed !important;
  inset: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 24px !important;
  z-index: 9999 !important;
  overflow: auto !important;
  margin: 0 !important;
  width: 100% !important;
  height: 100% !important;
  box-sizing: border-box !important;
}

/* BACKDROP */
#app-error-modal::before {
  content: "" !important;
  position: absolute !important;
  inset: 0 !important;
  background: rgba(0, 0, 0, 0.55) !important;
}

/* MODAL BOX */
#app-error-modal .modal-content {
  position: relative !important;
  z-index: 1 !important;
  width: min(900px, calc(100vw - 48px)) !important;
  max-height: calc(100vh - 48px) !important;
  background: #fff !important;
  color: #111 !important;
  border-radius: 14px !important;
  border: 1px solid rgba(0,0,0,0.12) !important;
  box-shadow: 0 20px 60px rgba(0,0,0,0.35) !important;
  overflow: hidden !important;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif !important;
}

/* HEADER / BODY / FOOTER */
#app-error-modal .modal-header {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  padding: 14px 18px !important;
  border-bottom: 1px solid rgba(0,0,0,0.08) !important;
  background: #eea2a2 !important;
}

#app-error-modal .modal-title {
  font-weight: 800 !important;
  font-size: 16px !important;
}

#app-error-modal .modal-body {
  padding: 14px 18px !important;
  max-height: 70vh !important;
  overflow: auto !important;
  white-space: pre-wrap !important;
}

#app-error-modal .modal-footer {
  display: flex !important;
  gap: 10px !important;
  justify-content: flex-end !important;
  padding: 12px 18px !important;
  border-top: 1px solid rgba(0,0,0,0.08) !important;
  background: rgba(0,0,0,0.02) !important;
}

/* CLOSE BUTTON (X) */
#app-error-modal .btn-close {
  appearance: none !important;
  border: 0 !important;
  background: transparent !important;
  width: 34px !important;
  height: 34px !important;
  border-radius: 10px !important;
  cursor: pointer !important;
  position: relative !important;
  opacity: 0.85 !important;
}
#app-error-modal .btn-close:hover {
  background: rgba(0,0,0,0.06) !important;
  opacity: 1 !important;
}
#app-error-modal .btn-close::before,
#app-error-modal .btn-close::after {
  content: "" !important;
  position: absolute !important;
  left: 50% !important;
  top: 50% !important;
  width: 16px !important;
  height: 2px !important;
  background: #333 !important;
  transform-origin: center !important;
}
#app-error-modal .btn-close::before {
  transform: translate(-50%, -50%) rotate(45deg) !important;
}
#app-error-modal .btn-close::after {
  transform: translate(-50%, -50%) rotate(-45deg) !important;
}
