/* ══════════════════════════════════════════
   SevPay Admin — Layout (Top Nav)
══════════════════════════════════════════ */
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: 'Inter', sans-serif;
  background: var(--admin-bg);
  color: var(--admin-text);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

/* ── Shell ──────────────────────────────── */
.admin-shell {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* ── Topbar ─────────────────────────────── */
.topbar {
  height: var(--admin-topbar-h);
  background: var(--admin-sidebar-bg);
  display: flex;
  align-items: center;
  padding: 0 20px;
  position: sticky;
  top: 0;
  z-index: 100;
  gap: 8px;
}

/* Logo */
.topbar__left {
  flex-shrink: 0;
}

.topbar__logo {
  font-size: 1.35rem;
  font-weight: 700;
  background: var(--admin-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.5px;
}

/* Nav tabs */
.topbar__nav {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  height: 100%;
  overflow-x: auto;
  scrollbar-width: none;
}
.topbar__nav::-webkit-scrollbar { display: none; }

.topbar__nav a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 16px;
  height: 100%;
  color: var(--admin-sidebar-text);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  white-space: nowrap;
  border-bottom: 3px solid transparent;
  transition: all 0.15s;
  cursor: pointer;
}

.topbar__nav a:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
}

.topbar__nav a.active {
  color: var(--admin-primary);
  border-bottom-color: var(--admin-primary);
}

.topbar__nav .nav-icon {
  font-size: 1rem;
}

/* Right side — user + logout */
.topbar__right {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 12px;
}

.topbar__user {
  display: flex;
  align-items: center;
  gap: 10px;
}

.topbar__user #topbar-email {
  color: var(--admin-sidebar-text);
  font-size: 0.8rem;
}

.topbar__avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--admin-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 0.8rem;
}

.topbar__logout {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  border: none;
  background: none;
  cursor: pointer;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
}

.topbar__logout:hover {
  background: rgba(239, 68, 68, 0.15);
}

/* ── Main ───────────────────────────────── */
.main-area {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: calc(100vh - var(--admin-topbar-h));
  background: linear-gradient(-45deg,
    #a78bfa, #22d3ee, #6366f1, #34d399,
    #818cf8, #00e5ff, #a78bfa, #2dd4bf);
  background-size: 400% 400%;
  animation: neonGradient 15s ease infinite;
}

/* ── Content ────────────────────────────── */
.content {
  flex: 1;
  padding: 28px;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
}

@keyframes neonGradient {
  0%   { background-position: 0% 50%; }
  25%  { background-position: 100% 0%; }
  50%  { background-position: 100% 50%; }
  75%  { background-position: 0% 100%; }
  100% { background-position: 0% 50%; }
}

/* ── Tablet (< 768px) ──────────────────── */
@media (max-width: 767px) {
  .topbar {
    padding: 0 12px;
    gap: 4px;
  }

  .topbar__nav a {
    padding: 0 10px;
    font-size: 0.8rem;
    gap: 6px;
  }

  .topbar__user #topbar-email {
    display: none;
  }

  .content {
    padding: 16px;
  }
}

/* ── Mobile pequeno ────────────────────── */
@media (max-width: 480px) {
  .topbar__nav .nav-label {
    display: none;
  }

  .topbar__nav a {
    padding: 0 12px;
  }

  .topbar__nav .nav-icon {
    font-size: 1.2rem;
  }
}
