
/* --- Glass theme inspired by modern liquid/glass web UI --- */
:root {
  --bg: #070812;
  --bg-card: rgba(255, 255, 255, 0.075);
  --fg: rgba(255, 255, 255, 0.92);
  --fg-dim: rgba(226, 232, 255, 0.62);
  --accent: #9bf7e6;
  --accent2: #b79cff;
  --fail: #ff6b8a;
  --win: #67f5b5;
  --code-bg: rgba(5, 7, 18, 0.56);
  --border: rgba(255, 255, 255, 0.14);
  --glass-border: rgba(255,255,255,0.18);
  --glass-highlight: rgba(255,255,255,0.34);
  --shadow-glass: 0 24px 80px rgba(0,0,0,0.42), inset 0 1px 0 rgba(255,255,255,0.16);
}

html {
  min-height: 100%;
  background:
    radial-gradient(circle at 12% 8%, rgba(105, 255, 221, 0.22), transparent 34%),
    radial-gradient(circle at 84% 4%, rgba(154, 120, 255, 0.28), transparent 32%),
    radial-gradient(circle at 65% 88%, rgba(67, 124, 255, 0.20), transparent 38%),
    linear-gradient(135deg, #070812 0%, #0b1024 42%, #090913 100%);
}
body {
  min-height: 100%;
  background: transparent;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: -0.01em;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -2;
  background:
    linear-gradient(rgba(255,255,255,0.026) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.022) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(circle at 50% 15%, black, transparent 72%);
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background: radial-gradient(circle at 50% 0%, rgba(255,255,255,0.09), transparent 42%);
}

a { color: var(--accent); }
a:hover { color: #fff; text-shadow: 0 0 18px rgba(155,247,230,0.42); }

.topnav {
  background: rgba(10, 12, 28, 0.56);
  border-bottom: 1px solid rgba(255,255,255,0.13);
  backdrop-filter: blur(22px) saturate(1.35);
  -webkit-backdrop-filter: blur(22px) saturate(1.35);
  box-shadow: 0 12px 40px rgba(0,0,0,0.22);
}
.topnav-inner { height: 58px; }
.topnav-brand {
  color: #fff;
  font-weight: 800;
  letter-spacing: -0.03em;
  text-shadow: 0 0 24px rgba(155,247,230,0.35);
}
.topnav-brand::before {
  content: "";
  display: inline-block;
  width: 9px;
  height: 9px;
  margin-right: 9px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  box-shadow: 0 0 20px rgba(155,247,230,0.75);
  vertical-align: 1px;
}
.topnav-links > .topnav-item,
.topnav-links > a,
.nav-btn-secondary,
.nav-btn-primary {
  border-radius: 999px;
}
.topnav-links > .topnav-item:hover,
.topnav-links > a:hover,
.topnav-links > .topnav-item.active > a,
.topnav-links > a.active {
  background: rgba(255,255,255,0.10);
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.12);
}
.nav-user { border-left-color: rgba(255,255,255,0.12); }
.nav-user-role, .badge {
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.14);
  color: var(--accent2);
}
.nav-btn-primary, button.primary, .btn-primary {
  background: linear-gradient(135deg, rgba(155,247,230,0.95), rgba(183,156,255,0.92));
  color: #061018;
  border-color: rgba(255,255,255,0.35);
  box-shadow: 0 12px 30px rgba(85, 207, 220, 0.22), inset 0 1px 0 rgba(255,255,255,0.55);
}
.nav-btn-secondary, button, .btn {
  background: rgba(255,255,255,0.075);
  border-color: rgba(255,255,255,0.15);
  color: rgba(255,255,255,0.86);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.08);
}
button:hover, .btn:hover, .nav-btn-secondary:hover {
  transform: translateY(-1px);
  border-color: rgba(155,247,230,0.45);
  background: rgba(255,255,255,0.12);
  box-shadow: 0 10px 28px rgba(0,0,0,0.22), inset 0 1px 0 rgba(255,255,255,0.14);
}
button, .btn, input, select { transition: transform .16s ease, background .16s ease, border-color .16s ease, box-shadow .16s ease; }
button.danger {
  color: #ffd6de;
  border-color: rgba(255,107,138,0.45);
  background: rgba(255,107,138,0.08);
}
button.danger:hover { background: rgba(255,107,138,0.18); color: #fff; }

.page, .wrap {
  position: relative;
}
h1 {
  font-size: clamp(2rem, 4vw, 4.1rem);
  line-height: 0.94;
  letter-spacing: -0.07em;
  color: #fff;
  text-wrap: balance;
  text-shadow: 0 24px 90px rgba(155,247,230,0.22);
}
h2 {
  border-bottom-color: rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.92);
  letter-spacing: -0.035em;
}
h3 { color: #fff; letter-spacing: -0.03em; }
.lead { color: rgba(226,232,255,0.68); }

.card, .container-card, .modal, .note, .warn, table.data, .doc-card, .dropdown {
  background:
    linear-gradient(135deg, rgba(255,255,255,0.12), rgba(255,255,255,0.055)),
    rgba(13, 16, 34, 0.46);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-glass);
  backdrop-filter: blur(24px) saturate(1.35);
  -webkit-backdrop-filter: blur(24px) saturate(1.35);
}
.card, .container-card, .note, .warn, .doc-card {
  border-radius: 24px;
}
.card, .container-card {
  position: relative;
  overflow: hidden;
}
.card::before, .container-card::before, .modal::before, .doc-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.55), transparent);
  opacity: .75;
  pointer-events: none;
}
.card-header {
  border-bottom-color: rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.035);
}
.container-card:hover, .doc-card:hover, .card:hover {
  border-color: rgba(155,247,230,0.30);
}

input, select, textarea {
  background: rgba(5, 7, 18, 0.42);
  border-color: rgba(255,255,255,0.16);
  border-radius: 14px;
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.06);
}
input:focus, select:focus, textarea:focus {
  border-color: rgba(155,247,230,0.65);
  box-shadow: 0 0 0 4px rgba(155,247,230,0.10), inset 0 1px 0 rgba(255,255,255,0.10);
}

code, pre, .code, .code-block pre {
  background: rgba(3, 5, 14, 0.58);
  border-color: rgba(255,255,255,0.12);
  border-radius: 16px;
}
code { color: #bffdf0; }

.dropdown {
  border-radius: 18px;
  padding: 8px;
  background: rgba(12, 15, 32, 0.82);
}
.dropdown a {
  border-radius: 12px;
  border-bottom: 0;
  margin: 2px 0;
}
.dropdown a:hover, .dropdown a.active {
  background: rgba(255,255,255,0.10);
  color: #fff;
}
.dropdown-sep { background: rgba(255,255,255,0.12); }

.modal-bg {
  background: rgba(3,5,14,0.60);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.modal { border-radius: 28px; }
.toast {
  border-radius: 999px;
  background: rgba(16, 20, 42, 0.82);
  border: 1px solid rgba(255,255,255,0.18);
  box-shadow: var(--shadow-glass);
  backdrop-filter: blur(18px) saturate(1.25);
}

.badge.ok { color: #b6ffd9; border-color: rgba(103,245,181,.45); background: rgba(103,245,181,.10); }
.badge.bad { color: #ffd3dc; border-color: rgba(255,107,138,.5); background: rgba(255,107,138,.10); }
.badge.warn { color: #ffe0b0; border-color: rgba(255,198,109,.45); background: rgba(255,198,109,.10); }

.data th, .data td, table.ref th, table.ref td {
  border-color: rgba(255,255,255,0.10);
}
.data th, table.ref th { background: rgba(255,255,255,0.055); color: rgba(255,255,255,.78); }
tr:hover td { background: rgba(255,255,255,0.035); }

@media (prefers-reduced-motion: no-preference) {
  .card, .container-card, .doc-card { transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease; }
  .container-card:hover, .doc-card:hover { transform: translateY(-2px); }
}
