body {
  margin: 0;
  overflow: hidden;
}

html[data-show-loading='false'] #boot-loader {
  display: none;
}

#boot-loader {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}

#boot-loader[data-state='loading'] #boot-loader-error {
  display: none;
}

#boot-loader[data-state='error'] #boot-loader-spinner {
  display: none;
}

#boot-loader-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  max-width: 560px;
  padding: 24px;
  text-align: center;
}

#boot-loader-spinner {
  width: 28px;
  height: 28px;
  border: 3px solid #d1d5db;
  border-top-color: #2563eb;
  border-radius: 50%;
  animation: boot-loader-spin 0.85s linear infinite;
}

#boot-loader-error-message {
  margin: 0 0 8px;
  font-size: 14px;
  color: #b91c1c;
}

#boot-loader-retry {
  border: 0;
  border-radius: 8px;
  padding: 8px 14px;
  background: #2563eb;
  color: #ffffff;
  font-size: 13px;
  cursor: pointer;
}

#boot-loader-retry:hover {
  background: #1d4ed8;
}

@keyframes boot-loader-spin {
  to {
    transform: rotate(360deg);
  }
}
