/* ── Reset & base ─────────────────────────────────────── */
html,
body {
  margin: 0;
  padding: 0;
  height: 100%;
  overflow: hidden;
  font-family: sans-serif;
  background: #f3f2f1;
}

/* ── Report container ─────────────────────────────────── */
#report-container {
  width: 100%;
  height: 100vh;
  border: none;
}

#report-container iframe {
  border-width: 0;
}

/* ── Loading overlay ──────────────────────────────────── */
#loading {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(243, 242, 241, 0.85);
  backdrop-filter: blur(2px);
}

#loading.hidden {
  display: none;
}

/* ── Spinner ──────────────────────────────────────────── */
.spinner {
  width: 48px;
  height: 48px;
  border: 5px solid #d9d9d9;
  border-top-color: #0078d4;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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

/* ── Error message ────────────────────────────────────── */
#error-message {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 200;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(253, 231, 233, 0.95);
}

#error-message.visible {
  display: flex;
}

#error-message .error-box {
  max-width: 480px;
  background: #fff0f1;
  border: 1px solid #f1707b;
  border-radius: 6px;
  padding: 24px 28px;
  text-align: center;
  color: #a4262c;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

#error-message .error-box h2 {
  margin: 0 0 10px;
  font-size: 1.1rem;
}

#error-message .error-box p {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.5;
  color: #6b0d12;
}
