:root {
  --bg: #f4f6f8;
  --ink: #17202a;
  --muted: #667085;
  --line: #d8dee6;
  --brand: #0f766e;
  --brand-dark: #115e59;
  --sidebar: #111827;
}

body {
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
}

.auth-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.login-card,
.public-card,
.not-found {
  width: min(100%, 440px);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 28px;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
}

.login-card h1,
.public-card h1,
.not-found h1 {
  font-size: 28px;
  margin-bottom: 8px;
}

.app-shell {
  min-height: 100vh;
  display: flex;
}

.sidebar {
  width: 260px;
  flex: 0 0 260px;
  background: var(--sidebar);
  color: #fff;
  padding: 22px 16px;
}

.brand {
  display: block;
  color: #fff;
  text-decoration: none;
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 24px;
}

.sidebar .nav-link,
.logout-button {
  color: #d1d5db;
  border-radius: 6px;
  padding: 10px 12px;
  width: 100%;
  text-align: left;
  border: 0;
  background: transparent;
}

.sidebar .nav-link:hover,
.logout-button:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.content {
  flex: 1;
  padding: 24px;
  overflow-x: hidden;
}

.topbar {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 16px;
}

.page-header {
  margin-bottom: 22px;
}

.page-header h1 {
  font-size: 30px;
  margin: 0 0 6px;
}

.action-card {
  display: flex;
  min-height: 150px;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  padding: 22px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  text-decoration: none;
}

.action-card:hover {
  border-color: var(--brand);
  color: var(--ink);
}

.action-card span {
  font-size: 22px;
  font-weight: 700;
}

.action-card small {
  color: var(--muted);
}

.panel-form,
.filters,
.detail-list,
.table-responsive {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
}

.panel-form h2 {
  font-size: 18px;
  margin-bottom: 14px;
}

.btn-primary {
  background: var(--brand);
  border-color: var(--brand);
}

.btn-primary:hover {
  background: var(--brand-dark);
  border-color: var(--brand-dark);
}

.detail-list {
  display: grid;
  gap: 10px;
}

.detail-list div {
  display: grid;
  grid-template-columns: minmax(160px, 240px) 1fr;
  gap: 12px;
  border-bottom: 1px solid #edf0f3;
  padding-bottom: 10px;
}

.detail-list div:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.detail-list span {
  overflow-wrap: anywhere;
}

.qr-preview {
  width: min(100%, 360px);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
}

.copy-link-input {
  cursor: pointer;
  background: #fff;
  font-size: 13px;
}

.copy-feedback {
  min-height: 20px;
  margin-top: 6px;
  color: var(--brand-dark);
  font-size: 13px;
}

@media (max-width: 800px) {
  .app-shell {
    display: block;
  }

  .sidebar {
    width: 100%;
    min-height: auto;
  }

  .content {
    padding: 18px;
  }

  .detail-list div {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}
