html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

:root {
  --app-sidebar: #172033;
  --app-sidebar-active: #2563eb;
  --app-surface: #f5f7fb;
  --app-border: #e3e8f0;
}

body {
  min-height: 100vh;
  background: var(--app-surface);
  color: #182230;
  letter-spacing: 0;
}

a {
  text-decoration: none;
}

.btn,
.form-control,
.form-select,
.input-group-text,
.card,
.alert {
  border-radius: 8px;
}

.btn-icon {
  width: 2.25rem;
  height: 2.25rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.admin-sidebar {
  background: var(--app-sidebar);
}

.navbar-brand a,
.navbar-brand a:hover,
.auth-brand,
.auth-brand:hover {
  color: inherit;
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  font-weight: 700;
}

.brand-mark {
  width: 2.1rem;
  height: 2.1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: #2563eb;
  border-radius: 8px;
}

.topbar {
  background: #fff;
  border-bottom: 1px solid var(--app-border);
}

.auth-page {
  min-height: 100vh;
  display: grid;
  align-items: center;
  background:
    linear-gradient(135deg, rgba(37, 99, 235, .08), rgba(22, 163, 74, .08)),
    var(--app-surface);
}

.auth-brand {
  justify-content: center;
  color: #172033;
  font-size: 1.35rem;
}

.login-card {
  border: 1px solid var(--app-border);
  box-shadow: 0 20px 50px rgba(15, 23, 42, .08);
}

.metric-card {
  border: 1px solid var(--app-border);
}

.metric-icon {
  width: 3.25rem;
  height: 3.25rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  font-size: 1.5rem;
}

.landing-table th {
  color: #667085;
  font-size: .75rem;
  letter-spacing: 0;
  text-transform: uppercase;
}

.url-cell {
  max-width: 28rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.qr-thumb {
  width: 72px;
  height: 72px;
  object-fit: contain;
  border: 1px solid var(--app-border);
  border-radius: 8px;
  background: #fff;
  padding: .25rem;
}

.empty-state {
  min-height: 16rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #667085;
  text-align: center;
}

.empty-state i {
  font-size: 2.5rem;
  color: #98a2b3;
  margin-bottom: .75rem;
}

.field-validation-error {
  display: block;
  margin-top: .35rem;
  font-size: .875rem;
}

.validation-summary-valid {
  display: none;
}

@media (max-width: 991.98px) {
  .admin-sidebar {
    position: sticky;
    top: 0;
    z-index: 1020;
  }

  .url-cell {
    max-width: 18rem;
  }
}
