/* built from src assets; kept in sync */
:root {
  --brand: #7c3aed;
}
html {
  scroll-behavior: smooth;
}
body {
  font-family: "Nunito", system-ui, -apple-system, Segoe UI, Roboto, Ubuntu,
    Cantarell, "Helvetica Neue", Arial, "Apple Color Emoji", "Segoe UI Emoji";
  min-height: 100dvh;
  margin: 0;
  /* Global full-bleed gradient background */
  background: linear-gradient(135deg, #0f172a 0%, #7c3aed 60%, #22c55e 120%);
  color: #e5e7eb;
  /* Hide page scrollbars while keeping scroll functionality */
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE 10+ */
}
body::-webkit-scrollbar {
  display: none;
}
h1 {
  font-size: clamp(1.6rem, 1.2rem + 1.2vw, 2.2rem);
}
h2 {
  font-size: clamp(1.2rem, 1rem + 0.9vw, 1.6rem);
}
h3 {
  font-size: clamp(1rem, 0.9rem + 0.5vw, 1.2rem);
}
.hero-bg {
  min-height: 100vh;
  display: grid;
  place-items: center;
  /* use global body gradient; provide slight overlay only */
  background: transparent;
  color: #fff;
}
.hero-bg .card {
  width: min(560px, 92vw);
  backdrop-filter: blur(6px);
  background: rgba(0, 0, 0, 0.45);
  padding: 1.25rem;
  border-radius: 12px;
}
.card header h1 {
  margin: 0.25rem 0;
}
.hint {
  color: #ccc;
  display: block;
  margin-top: 0.5rem;
}
.zk-toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%) translateY(8px);
  background: rgba(17, 17, 17, 0.9);
  color: #fff;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 14px;
  opacity: 0;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 9999;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.35);
}
.zk-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
.zk-toast.success {
  background: rgba(16, 185, 129, 0.95);
} /* emerald */
.zk-toast.warn {
  background: rgba(245, 158, 11, 0.95);
} /* amber */
.zk-toast.error {
  background: rgba(239, 68, 68, 0.95);
} /* red */
.zk-toast.info {
  background: rgba(17, 24, 39, 0.95);
} /* slate */
/* Top bar removed; keep brand helpers if used elsewhere */
.brand-link {
  text-decoration: none;
  font-weight: 800;
}
.tagline {
  opacity: 0.9;
}
.site-footer {
  padding: 16px 0 32px;
  color: #555;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}
.page {
  padding: 16px 0 24px;
}
section h2 {
  display: inline-flex;
  gap: 8px;
  align-items: center;
}
.page-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 8px 0 16px;
  padding: 0 16px; /* breathing space at window edges */
}
.page-nav ul {
  display: flex;
  list-style: none;
  padding: 0;
  margin: 0;
  gap: 8px;
}
.page-nav a.active {
  font-weight: 700;
  border-bottom: 2px solid var(--brand);
}
.sub-nav {
  display: flex;
  align-items: center;
  padding: 0 16px 8px;
  margin-top: -6px;
}
.sub-nav ul {
  display: flex;
  list-style: none;
  gap: 10px;
  padding: 0;
  margin: 0;
}
.sub-nav a {
  display: inline-block;
  padding: 6px 8px;
  border-radius: 8px;
  text-decoration: none;
  color: #cbd5e1;
  background: rgba(0, 0, 0, 0.25);
}
.sub-nav a:hover {
  background: rgba(0, 0, 0, 0.35);
}
.sub-nav a.active {
  font-weight: 700;
  border-bottom: 2px solid var(--brand);
}
.logout-btn {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.35);
  color: #fff !important;
  border: 1px solid rgba(255, 255, 255, 0.15);
  transition: background 0.2s ease, transform 0.05s ease;
}
.logout-btn:hover {
  background: rgba(0, 0, 0, 0.5);
}
.logout-btn:active {
  transform: translateY(1px);
}
.responsive-table {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.responsive-table table {
  min-width: 520px;
}
@media (max-width: 520px) {
  button,
  input,
  select,
  textarea {
    min-height: 44px;
  }
  .tagline {
    display: none;
  }
  .page {
    padding: 12px 0 20px;
  }
  .stars {
    font-size: 34px !important;
  }
}
@media (prefers-color-scheme: dark) {
  .site-footer {
    color: #aaa;
    border-top-color: rgba(255, 255, 255, 0.08);
  }
}

/* Dashboard: force two cards per row on desktop, single column on small screens */
.grid.zk-cards-2 {
  /* Pico's .grid already sets display: grid; override columns only */
  grid-template-columns: 1fr;
  gap: 1rem;
}
@media (min-width: 900px) {
  .grid.zk-cards-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.pagination {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
}
