/* 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 */
}

small {
  font-size: 0.95rem;
}

/* 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, 190, 0.616), 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: #34a1ef;
  box-shadow:
    0 0 16px rgba(34, 211, 238, 0.821);
}

/* 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 {
  font-size: 1rem;
  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 {
  font-size: 1rem;
  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;
}

/* CW readability: field labels + helper line */
.toolbar label {
  font-size: 1rem;
  font-weight: 600;
}

#kasFeeWarn {
  font-size: 1rem;
}

/* 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; }

/* === Compliance_Wallet nav/menu overrides (override inline styles in index.html) === */
nav.topnav{
  position: relative !important;
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  gap: 14px !important;
  width: 100% !important;
  max-width: 100% !important;
  margin: 10px 0 18px 0 !important;
  padding: 0 !important;
}

nav.topnav > ul{
  margin: 0 !important;
  padding: 0 !important;
}

nav.topnav img{
  height: clamp(52px, 7vw, 88px) !important;
  width: auto !important;
  display: block !important;
}

nav.topnav .menu{
  position: relative !important;
}

#networkSelect{
  width: 10.5em !important;     /* “testnet-10” sized */
  max-width: 10.5em !important;
  flex: 0 0 auto !important;
}

nav.topnav .dd-toggle{
  border-radius: 999px !important;
  border: 1px solid rgba(56, 189, 248, 0.9) !important;
  background: radial-gradient(circle at top left, #22d3ee 0%, #0f172a 70%) !important;
  color: #f9fbff !important;
  font-weight: 600 !important;
  letter-spacing: 0.04em !important;
  text-transform: uppercase !important;
  padding: 0.55rem 1.35rem !important;
}

nav.topnav .dd-panel{
  background:
    radial-gradient(circle at top left, rgba(56, 189, 248, 0.18), rgba(15, 23, 42, 0.98)) !important;
  color: #e5f4ff !important;
  border: 1px solid rgba(125, 252, 255, 0.65) !important;
  border-radius: 14px !important;
  box-shadow:
    0 0 0 1px rgba(15, 23, 42, 1),
    0 0 24px rgba(56, 189, 248, 0.55) !important;
}

nav.topnav .dd-panel a{
  color: #e5f4ff !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
  padding: 10px 14px !important;
}

nav.topnav .dd-panel a:hover{
  background: rgba(56, 189, 248, 0.14) !important;
}

/* Inputs have inline styles today; override them for Token-Depot look */
#wTo,
#wAmt{
  background:
    radial-gradient(circle at top left, rgba(15, 23, 42, 0.95), rgba(15, 23, 42, 1)) !important;
  border-radius: 12px !important;
  border: 1px solid rgba(125, 252, 255, 0.95) !important;
  color: #e5f4ff !important;
  box-shadow: 0 0 0 1px rgba(56, 189, 248, 0.55) !important;
}

/* QR preview box: match card/input neon outline */
.qr-preview{
  border: 1px solid rgba(125, 252, 255, 0.95) !important;
  border-radius: 14px !important;
  background:
    radial-gradient(circle at top left, rgba(56, 189, 248, 0.18), rgba(15, 23, 42, 0.98)) !important;
  box-shadow: 0 0 16px rgba(34, 211, 238, 0.5) !important;
  color: #e5f4ff !important;
}

/* Force Token-Depot glass cards even if Pico sets light card backgrounds */
section.card,
article.card{
  background:
    radial-gradient(circle at top left, rgba(56, 189, 248, 0.20), rgba(15, 23, 42, 0.96)) !important;
  border: 1px solid rgba(125, 252, 255, 0.90) !important;
  box-shadow:
    0 0 0 1px rgba(15, 23, 42, 1),
    0 0 28px rgba(45, 212, 191, 0.55),
    0 0 80px rgba(34, 211, 238, 0.55) !important;
  backdrop-filter: blur(18px) !important;
}

section.card > header,
article.card > header{
  background: transparent !important;
}

/* Dropdown mechanics (was inline in index.html) */
nav.topnav .dd-panel{
  position: absolute !important;
  right: 0 !important;
  top: calc(100% + 6px) !important;
  display: none !important;
  min-width: 200px !important;
  overflow: hidden !important;
  z-index: 50 !important;
}

nav.topnav .dd-panel.open{
  display: block !important;
}

