:root {
  --color-navy: #1f1f1f;
  --color-navy-dark: #141414;
  --color-accent: #0087cc;
  --color-accent-dark: #006ca3;
  --color-bg: #f4f5f7;
  --color-card: #ffffff;
  --color-text: #1f1f1f;
  --color-muted: #6b7480;
  --color-success: #2e8b4f;
  --color-error: #c23b3b;
  --radius: 10px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.5;
}

.container {
  max-width: 480px;
  margin: 0 auto;
  padding: 1.25rem;
}

.admin-container {
  max-width: 960px;
  margin: 0 auto;
  padding: 1.5rem;
}

header.topbar {
  background: var(--color-navy);
  color: #fff;
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

header.topbar .brand {
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 0.02em;
  color: #fff;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

header.topbar .brand span {
  color: var(--color-accent);
}

header.topbar .site-logo {
  height: 36px;
  max-width: 200px;
  object-fit: contain;
}

nav.admin-nav {
  display: flex;
  gap: 0.25rem;
  flex-wrap: wrap;
  background: var(--color-navy-dark);
  padding: 0.5rem 1.25rem;
}

nav.admin-nav a {
  color: #cdd4db;
  text-decoration: none;
  padding: 0.4rem 0.7rem;
  border-radius: var(--radius);
  font-size: 0.9rem;
}

nav.admin-nav a.active,
nav.admin-nav a:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.card {
  background: var(--color-card);
  border-radius: var(--radius);
  padding: 1.25rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  margin-bottom: 1rem;
}

h1, h2, h3 {
  color: var(--color-navy);
  margin-top: 0;
}

.stand-badge {
  display: inline-block;
  background: var(--color-navy);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  margin-bottom: 0.5rem;
}

label {
  display: block;
  font-weight: 600;
  margin: 0.75rem 0 0.3rem;
  font-size: 0.92rem;
}

.exhibitor-logo {
  display: block;
  max-height: 64px;
  max-width: 220px;
  object-fit: contain;
  margin-bottom: 0.75rem;
}

.exhibitor-logo-thumb {
  height: 28px;
  width: 28px;
  object-fit: contain;
  background: #fff;
  border: 1px solid #d5d9de;
  border-radius: 6px;
  padding: 2px;
}

input[type="text"],
input[type="email"],
input[type="password"] {
  width: 100%;
  padding: 0.65rem 0.75rem;
  border: 1px solid #d5d9de;
  border-radius: var(--radius);
  font-size: 1rem;
  background: #fff;
  color: var(--color-text);
}

input:focus {
  outline: 2px solid var(--color-accent);
  outline-offset: 1px;
}

.option {
  display: block;
  border: 1px solid #d5d9de;
  border-radius: var(--radius);
  padding: 0.75rem;
  margin: 0.5rem 0;
  cursor: pointer;
  background: #fff;
}

.option:has(input:checked) {
  border-color: var(--color-accent);
  background: #e6f4fb;
}

.option input { margin-right: 0.6rem; }

.checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin: 1rem 0;
  font-size: 0.9rem;
  color: var(--color-muted);
}

.checkbox-row input { margin-top: 0.2rem; }

button, .btn {
  display: inline-block;
  background: var(--color-accent);
  color: #fff;
  border: none;
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
}

button:hover, .btn:hover { background: var(--color-accent-dark); }

.btn-secondary {
  background: transparent;
  color: var(--color-navy);
  border: 1px solid #d5d9de;
}

.btn-secondary:hover { background: #eceef0; }

header.topbar .btn-secondary {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.45);
}

header.topbar .btn-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
}

.btn-danger { background: var(--color-error); }
.btn-danger:hover { background: #a12f2f; }

.btn-block { width: 100%; }

.alert {
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
  margin-bottom: 1rem;
  font-size: 0.92rem;
}

.alert-error { background: #fceaea; color: var(--color-error); }
.alert-success { background: #e8f5ec; color: var(--color-success); }
.alert-muted { background: #eef0f2; color: var(--color-muted); }

.progress-bar {
  background: #e3e6e9;
  border-radius: 999px;
  height: 10px;
  overflow: hidden;
  margin: 0.5rem 0 1rem;
}

.progress-bar > div {
  background: var(--color-accent);
  height: 100%;
}

.stand-list { list-style: none; padding: 0; margin: 0; }

.stand-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.65rem 0;
  border-bottom: 1px solid #eceef0;
}

.stand-list li:last-child { border-bottom: none; }

.tag {
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
}

.tag-done { background: #e8f5ec; color: var(--color-success); }
.tag-open { background: #eef0f2; color: var(--color-muted); }

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}

th, td {
  text-align: left;
  padding: 0.55rem 0.6rem;
  border-bottom: 1px solid #eceef0;
}

th { color: var(--color-muted); font-weight: 600; }

.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.stat-card {
  background: var(--color-card);
  border-radius: var(--radius);
  padding: 1rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.stat-card .value { font-size: 1.6rem; font-weight: 700; color: var(--color-navy); }
.stat-card .label { font-size: 0.85rem; color: var(--color-muted); }

.qr-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
}

.qr-card { text-align: center; }
.qr-card img { max-width: 100%; }

.actions { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-top: 1rem; }

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

a.link { color: var(--color-accent-dark); }

@media print {
  header.topbar, nav.admin-nav, .no-print { display: none !important; }
  body { background: #fff; }
}
