/* Global layout container */
main.container {
  max-width: 980px;
  margin: 0 auto;
  padding: 2rem 1rem 4rem;
}

/* Global dark theme */
html,
body {
  font-size: 14px;
  background: radial-gradient(circle at top left, #020617 0%, #020617 40%, #020617 100%);
  color: #f5f9ff; /* brighter base text color */
}

/* Heading scale (compact, high contrast) */
h1 { font-size: 28px; line-height: 1.2; }
h2 { font-size: 22px; line-height: 1.25; }
h3 { font-size: 18px; line-height: 1.3; }
h4 { font-size: 16px; line-height: 1.35; }
h5, h6 { font-size: 15px; line-height: 1.4; }

h1, h2, h3, h4, h5, h6 {
  color: #f9fbff;
}

/* Body copy & labels */
p,
li,
label,
small,
dt,
dd {
  color: #e5f2ff;
}

strong {
  color: #ffffff;
}


/* Links on dark */
a {
  color: #7dd3fc;
}
a:hover {
  color: #a5f3fc;
}

/* Glass neon cards */
.card {
  padding: 1.5rem;
  border-radius: 18px;
  border: 1px solid rgba(125, 252, 255, 0.95); /* brighter edge line */
  background:
    radial-gradient(circle at top left, rgba(56, 189, 248, 0.28), rgba(15, 23, 42, 0.95));
  box-shadow:
    0 0 0 1px rgba(15, 23, 42, 1),
    0 0 40px rgba(56, 189, 248, 0.95),   /* stronger neon glow */
    0 0 90px rgba(8, 47, 73, 0.98);      /* deeper outer aura */
  backdrop-filter: blur(18px);
}

.card > header,
.card > footer,
.card section {
  background: transparent;  /* override Pico’s light section background */
  box-shadow: none;
}

/* Give the card header a subtle divider instead of a white bar */
.card > header {
  margin: 0 0 0.75rem;
  padding: 0 0 0.5rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.35);
}

/* Monospace boxes for JSON / previews */
.codebox {
  border-radius: 14px;
  border: 1px solid rgba(94, 234, 212, 0.7);
  background:
    radial-gradient(circle at top left, rgba(45, 212, 191, 0.18), rgba(15, 23, 42, 0.98));
  padding: 0.75rem 0.9rem;
  max-height: 280px;
  overflow: auto;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color: #e5f4ff;
  box-shadow:
    0 0 16px rgba(34, 211, 238, 0.5);
}

/* Canvas embeds */
canvas {
  max-width: 100%;
}

/* Form controls: glowing glass inputs */
input[type="text"],
input[type="number"],
input[type="password"],
input[type="email"],
input[type="search"],
textarea,
select {
  background:
    radial-gradient(circle at top left, rgba(15, 23, 42, 0.95), rgba(15, 23, 42, 1));
  border-radius: 12px;
  /* match card edge color */
  border: 1px solid rgba(125, 252, 255, 0.95);
  color: #e5f4ff;
  /* subtle neon halo around the field */
  box-shadow:
    0 0 0 1px rgba(56, 189, 248, 0.55);
  transition:
    border-color 150ms ease-out,
    box-shadow 150ms ease-out,
    background 150ms ease-out,
    transform 80ms ease-out;
}

input::placeholder,
textarea::placeholder {
  color: rgba(148, 163, 184, 0.8);
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: #22d3ee;
  box-shadow:
    0 0 0 1px rgba(34, 211, 238, 0.7),
    0 0 25px rgba(34, 211, 238, 0.85);
  background:
    radial-gradient(circle at top left, rgba(34, 211, 238, 0.22), rgba(15, 23, 42, 1));
  transform: translateY(-1px);
}

/* Buttons: bright neon panels */
button,
button.secondary,
button.outline,
input[type="submit"],
input[type="button"],
a[role="button"],
a.button {
  border-radius: 999px !important; /* force oval for all button variants */
  border: 1px solid rgba(56, 189, 248, 0.9);
  background:
    radial-gradient(circle at top left, #22d3ee 0%, #0f172a 70%);
  color: #f9fbff;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.55rem 1.6rem;
  box-shadow:
    0 0 0 1px rgba(15, 23, 42, 1),
    0 0 20px rgba(34, 211, 238, 0.8);
  transition:
    transform 80ms ease-out,
    box-shadow 150ms ease-out,
    background 150ms ease-out;
}

button:hover,
input[type="submit"]:hover,
input[type="button"]:hover,
a[role="button"]:hover,
a.button:hover {
  transform: translateY(-1px);
  background:
    radial-gradient(circle at top left, #67e8f9 0%, #0b1220 70%);
  box-shadow:
    0 0 0 1px rgba(15, 23, 42, 1),
    0 0 30px rgba(56, 189, 248, 0.95);
}

button:active,
input[type="submit"]:active,
input[type="button"]:active,
a[role="button"]:active,
a.button:active {
  transform: translateY(0);
  box-shadow:
    0 0 0 1px rgba(15, 23, 42, 1),
    0 0 14px rgba(45, 212, 191, 0.7);
}

/* Muted text on dark */
.muted {
  opacity: 0.92;
  color: #cbd5ff;
}

/* Keep compact card typography spacing */
.card header h3 { margin: 0.2rem 0 0.6rem; }
.card h5 { margin: 0.2rem 0 0.3rem; }
.card p { margin: 0 0 0.4rem; }


