/*
  HGP Universal Galaxy Background
  Safe visual layer for active Command Center pages.
  This file is intentionally non-destructive:
  - It does not hide content.
  - It does not change tables.
  - It does not alter upload logic.
  - It only restores the shared galactic command-center atmosphere.
*/

:root {
  --hgp-bg-deep: #020812;
  --hgp-bg-blue: #04192d;
  --hgp-line-cyan: rgba(31, 221, 255, 0.35);
  --hgp-line-cyan-strong: rgba(31, 221, 255, 0.72);
  --hgp-green: #43ffbd;
  --hgp-text: #f4ffff;
}

html {
  min-height: 100%;
  background: #020812;
}

body {
  min-height: 100vh;
  color: var(--hgp-text);
  background:
    radial-gradient(circle at 50% 12%, rgba(28, 118, 255, 0.22), transparent 30%),
    radial-gradient(circle at 84% 4%, rgba(67, 255, 189, 0.08), transparent 22%),
    radial-gradient(circle at 12% 86%, rgba(31, 221, 255, 0.10), transparent 28%),
    linear-gradient(135deg, #01050d 0%, #03182b 48%, #020812 100%) !important;
  background-attachment: fixed !important;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -3;
  background-image:
    linear-gradient(rgba(31, 221, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(31, 221, 255, 0.045) 1px, transparent 1px);
  background-size: 32px 32px;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -2;
  background-image:
    radial-gradient(circle at 8% 16%, rgba(255,255,255,0.45) 0 1px, transparent 1.5px),
    radial-gradient(circle at 18% 74%, rgba(255,255,255,0.35) 0 1px, transparent 1.5px),
    radial-gradient(circle at 37% 24%, rgba(255,255,255,0.28) 0 1px, transparent 1.5px),
    radial-gradient(circle at 62% 61%, rgba(255,255,255,0.32) 0 1px, transparent 1.5px),
    radial-gradient(circle at 80% 28%, rgba(255,255,255,0.26) 0 1px, transparent 1.5px),
    radial-gradient(circle at 94% 82%, rgba(255,255,255,0.30) 0 1px, transparent 1.5px);
  background-size: 420px 420px;
  opacity: 0.55;
}

/* Give plain pages the same command-center surface without forcing layout changes. */
main,
section,
article,
header,
nav,
.card,
.panel,
.metric-card,
.table-panel,
.upload-panel,
.recon-hero,
.recon-nav,
.period-panel,
.toolbar-panel,
.detail-panel,
.hero,
.kpis,
.workspace {
  border-color: var(--hgp-line-cyan);
}

/* If a page lost its visual shell, this keeps it readable and full-screen. */
body:not(.wp-admin) {
  overflow-x: hidden;
}

/* Upload fields must stay visible and usable. */
input[type="file"] {
  cursor: pointer;
}

/* Status panel injected by the document bridge. */
.hgp-doc-bridge-status {
  margin: 12px 0;
  padding: 12px 14px;
  border: 1px solid rgba(31, 221, 255, 0.42);
  border-radius: 10px;
  background: rgba(4, 22, 38, 0.88);
  color: #f5ffff;
  font-weight: 800;
  box-shadow: inset 0 0 28px rgba(31, 221, 255, 0.04);
}

.hgp-doc-bridge-status strong {
  color: var(--hgp-green);
}

.hgp-doc-bridge-upload {
  margin: 14px 0;
  padding: 14px;
  border: 1px dashed rgba(67, 255, 189, 0.72);
  border-radius: 12px;
  background: rgba(4, 24, 40, 0.74);
}

.hgp-doc-bridge-upload label {
  display: block;
  margin-bottom: 8px;
  color: var(--hgp-green);
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.hgp-doc-bridge-upload input {
  width: 100%;
}