/* Shared UI helpers for Technic Admin Tools */

:root {
  --bg-0: #050c07;
  --panel-0: rgba(10, 24, 16, 0.9);
  --panel-1: rgba(7, 18, 12, 0.92);
  --border-0: rgba(0, 200, 120, 0.55);
  --border-1: rgba(0, 200, 120, 0.35);
  --text-0: #d7ffe7;
  --text-1: #8ac7a5;
  --mint: #29c183;
  --cyan: #6cf1ff;
}

/* ---------- Top navigation ---------- */
.top-nav {
  position: fixed;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: min(980px, calc(100vw - 24px));
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1200;
  pointer-events: none; /* only children clickable */
}

.top-nav__surface {
  pointer-events: auto;
  width: 100%;
  height: 100%;
  border-radius: 16px;
  background: linear-gradient(145deg, rgba(10, 24, 16, 0.80), rgba(7, 18, 12, 0.84));
  border: 1px solid rgba(0, 200, 120, 0.35);
  box-shadow:
    0 0 18px rgba(0, 255, 170, 0.12),
    0 6px 16px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(6px);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 10px 12px;
  gap: 10px;
}

.top-nav__left,
.top-nav__right {
  display: flex;
  gap: 10px;
  align-items: center;
}
.top-nav__left { justify-content: flex-start; }
.top-nav__right { justify-content: flex-end; }

.nav-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(0, 200, 120, 0.45);
  background: rgba(6, 18, 12, 0.85);
  color: #c9f6e4;
  font-weight: 800;
  text-decoration: none;
  line-height: 1;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.2s ease;
  user-select: none;
}

.nav-btn:hover {
  transform: translateY(-1px);
  background: rgba(10, 28, 18, 0.95);
  box-shadow: 0 0 12px rgba(0, 255, 170, 0.18);
}

.nav-btn:active { transform: translateY(0); }

.nav-btn__icon {
  font-size: 16px;
  display: inline-flex;
}

.nav-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.nav-logo img {
  height: 38px;
  width: auto;
  display: block;
  object-fit: contain;
  filter: drop-shadow(0 0 10px rgba(108, 241, 255, 0.20));
}

/* ---------- Small normalizations ---------- */
body {
  letter-spacing: 0.1px;
}

.card {
  border-radius: 16px !important;
}

