*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body { font-family: system-ui, sans-serif; background: #f5f5f5; color: #1a1a1a; }

.navbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 1.5rem; height: 56px;
  background: #0f172a; color: #f8fafc;
}
.brand { font-weight: 700; font-size: 1.1rem; color: inherit; text-decoration: none; }

.container { max-width: 800px; margin: 2rem auto; padding: 0 1rem; }

.card {
  background: #fff; border-radius: 8px; padding: 2rem;
  box-shadow: 0 1px 3px rgba(0,0,0,.1);
}
.card h1, .card h2 { margin-bottom: 1rem; }
.card p { margin-bottom: 1.5rem; color: #555; }

.btn {
  display: inline-block; padding: .5rem 1.25rem; border-radius: 6px;
  font-size: .9rem; font-weight: 500; text-decoration: none; cursor: pointer;
  border: none; transition: opacity .15s;
}
.btn:hover { opacity: .85; }
.btn-primary  { background: #2563eb; color: #fff; }
.btn-secondary { background: #e2e8f0; color: #1a1a1a; }
.btn-danger   { background: #dc2626; color: #fff; }
.btn-group    { display: flex; gap: .75rem; flex-wrap: wrap; margin-top: 1rem; }

.field { margin-bottom: 1.25rem; }
.field label { display: block; font-size: .85rem; font-weight: 500; margin-bottom: .35rem; }
.field input, .field textarea {
  width: 100%; padding: .5rem .75rem; border: 1px solid #cbd5e1;
  border-radius: 6px; font-size: .9rem; background: #fff;
}
.field input:disabled { background: #f1f5f9; color: #64748b; }
.field textarea { resize: vertical; }

.alert { padding: .75rem 1rem; border-radius: 6px; margin-bottom: 1rem; font-size: .9rem; }
.alert-error   { background: #fee2e2; color: #991b1b; }
.alert-success { background: #dcfce7; color: #166534; }

.expiry-bar { margin-bottom: 1.25rem; font-size: .9rem; }
.countdown { color: #64748b; margin-left: .5rem; }

.claims-table { width: 100%; border-collapse: collapse; margin-bottom: 1.5rem; font-size: .875rem; }
.claims-table th, .claims-table td { text-align: left; padding: .5rem .75rem; border-bottom: 1px solid #e2e8f0; }
.claims-table th { background: #f8fafc; font-weight: 600; }

.jwt-parts { display: grid; gap: 1rem; }
.jwt-parts label { display: block; font-size: .8rem; font-weight: 600; color: #64748b; margin-bottom: .35rem; }
.jwt-parts pre {
  background: #0f172a; color: #e2e8f0; padding: .75rem 1rem;
  border-radius: 6px; font-size: .8rem; overflow-x: auto; white-space: pre-wrap; word-break: break-all;
}
.jwt-header  pre { color: #93c5fd; }
.jwt-payload pre { color: #86efac; }
.sig-truncated { color: #fca5a5 !important; }

/* ── nav extras ── */
.nav-dim { font-size: .8rem; color: #94a3b8; }
.nav-links { display: flex; align-items: center; gap: 1.25rem; }
.nav-link { font-size: .875rem; color: #94a3b8; text-decoration: none; }
.nav-link:hover { color: #f8fafc; }

/* ── health page ── */
.health-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 1.5rem;
}
.health-header h1 { margin-bottom: 0; }

.health-service { margin-bottom: 1.5rem; }
.health-service-header {
  display: flex; align-items: center; gap: .75rem; margin-bottom: 1.25rem; flex-wrap: wrap;
}
.health-service-name { font-size: 1.05rem; font-weight: 600; }
.health-service-desc { font-size: .85rem; color: #64748b; }

.status-badge {
  display: inline-flex; align-items: center; gap: .25rem;
  padding: .2rem .6rem; border-radius: 999px;
  font-size: .75rem; font-weight: 700; letter-spacing: .04em; white-space: nowrap;
}
.status-badge-lg { font-size: .85rem; padding: .3rem .75rem; }
.status-pass    { background: #dcfce7; color: #166534; }
.status-warn    { background: #fef9c3; color: #854d0e; }
.status-fail    { background: #fee2e2; color: #991b1b; }
.status-unknown { background: #f1f5f9; color: #64748b; }

.health-checks-table .health-check-value { font-variant-numeric: tabular-nums; color: #475569; }
.health-check-note { font-size: .8rem; color: #64748b; font-style: italic; }
.health-empty { color: #94a3b8; font-style: italic; padding: 1rem .75rem; }
.health-loading { color: #64748b; padding: 2rem 0; text-align: center; }
