@import url("https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap");

:root {
  --night: #0a0e17;
  --deep: #111827;
  --surface: rgba(15, 23, 42, 0.78);
  --surface-strong: rgba(17, 24, 39, 0.92);
  --steel: #334155;
  --slate: #1e293b;
  --mist: #94a3b8;
  --ice: #e2e8f0;
  --white: #f8fafc;
  --accent: #3b82f6;
  --glow: #60a5fa;
  --teal: #2dd4bf;
  --danger: #ef4444;
  --amber: #f59e0b;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.28);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "DM Sans", system-ui, sans-serif;
  color: var(--ice);
  background:
    radial-gradient(circle at top, rgba(59, 130, 246, 0.14), transparent 34%),
    linear-gradient(180deg, #0b1120 0%, #090d15 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(148, 163, 184, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.04) 1px, transparent 1px);
  background-size: 36px 36px;
  mask-image: linear-gradient(180deg, rgba(255, 255, 255, 0.7), transparent 90%);
}

a {
  color: inherit;
}

.deployment-banner {
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.shell {
  position: relative;
  z-index: 1;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  background: rgba(10, 14, 23, 0.84);
  border-bottom: 1px solid rgba(51, 65, 85, 0.6);
  backdrop-filter: blur(18px);
}

.brandline {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.eyebrow {
  color: var(--mist);
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.title {
  margin: 0;
  color: var(--white);
  font-size: 1.15rem;
  font-weight: 600;
}

.subtitle {
  color: var(--mist);
  font-size: 0.9rem;
}

.navlinks {
  display: flex;
  gap: 0.6rem;
  align-items: center;
}

.navlink,
.button,
button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.7rem 1rem;
  border-radius: 10px;
  border: 1px solid rgba(51, 65, 85, 0.8);
  background: rgba(15, 23, 42, 0.85);
  color: var(--ice);
  text-decoration: none;
  font-weight: 500;
  cursor: pointer;
  transition: border-color 160ms ease, transform 160ms ease, background 160ms ease;
}

.button-primary {
  border-color: rgba(59, 130, 246, 0.7);
  background: linear-gradient(180deg, rgba(59, 130, 246, 0.28), rgba(29, 78, 216, 0.24));
  box-shadow: 0 0 22px rgba(59, 130, 246, 0.16);
}

.navlink:hover,
.button:hover,
button:hover {
  border-color: rgba(96, 165, 250, 0.9);
  transform: translateY(-1px);
}

.logout-form {
  margin: 0;
}

.page {
  max-width: 1320px;
  margin: 0 auto;
  padding: 1.5rem;
}

.hero {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-end;
  margin-bottom: 1.25rem;
}

.hero-copy {
  max-width: 760px;
}

.hero-copy h2 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.6rem, 3vw, 2.35rem);
  line-height: 1.05;
}

.hero-copy p {
  margin: 0;
  color: var(--mist);
  max-width: 60ch;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.28rem 0.55rem;
  border-radius: 999px;
  border: 1px solid rgba(51, 65, 85, 0.8);
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mist);
  background: rgba(15, 23, 42, 0.72);
}

.pill-active {
  color: var(--white);
  border-color: rgba(59, 130, 246, 0.65);
  background: rgba(59, 130, 246, 0.16);
}

.pill-alert {
  color: #fde68a;
  border-color: rgba(245, 158, 11, 0.55);
  background: rgba(245, 158, 11, 0.14);
}

.metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: 1rem;
}

.metric-card,
.panel {
  border: 1px solid rgba(51, 65, 85, 0.65);
  background: var(--surface);
  border-radius: 18px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.metric-card {
  padding: 1rem 1.1rem;
}

.metric-label {
  margin-bottom: 0.45rem;
  color: var(--mist);
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.metric-value {
  font-size: 2rem;
  font-weight: 700;
  color: var(--white);
}

.metric-caption {
  color: var(--mist);
  font-size: 0.88rem;
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(320px, 0.95fr);
  gap: 1rem;
}

.panel {
  padding: 1rem 1.1rem;
}

.panel h3 {
  margin: 0 0 0.3rem;
  font-size: 1rem;
}

.panel-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 0.8rem;
}

.panel-copy {
  color: var(--mist);
  font-size: 0.9rem;
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  padding: 0.72rem 0.55rem;
  border-bottom: 1px solid rgba(51, 65, 85, 0.45);
  text-align: left;
  vertical-align: top;
}

th {
  color: var(--mist);
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 500;
}

td {
  font-size: 0.92rem;
}

.mono {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.84rem;
}

.status-ok {
  color: var(--teal);
}

.status-warn {
  color: #fbbf24;
}

.status-error {
  color: #fca5a5;
}

.stack {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.field-wide {
  grid-column: 1 / -1;
}

.field label {
  color: var(--mist);
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 0.78rem 0.82rem;
  border-radius: 12px;
  border: 1px solid rgba(51, 65, 85, 0.8);
  background: rgba(15, 23, 42, 0.9);
  color: var(--ice);
  font: inherit;
}

.field textarea {
  min-height: 110px;
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: rgba(96, 165, 250, 0.9);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.14);
}

.form-actions {
  display: flex;
  gap: 0.65rem;
  align-items: center;
  margin-top: 1rem;
}

.results-meta {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-bottom: 0.8rem;
}

.note {
  color: var(--mist);
  font-size: 0.88rem;
}

.empty-state {
  padding: 1.1rem;
  border-radius: 14px;
  border: 1px dashed rgba(51, 65, 85, 0.75);
  color: var(--mist);
  text-align: center;
}

@media (max-width: 1080px) {
  .metrics,
  .form-grid,
  .content-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 720px) {
  .topbar {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.85rem;
  }

  .page {
    padding: 1rem;
  }

  .navlinks {
    width: 100%;
    flex-wrap: wrap;
  }
}
