/* ── Reset & base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: system-ui, -apple-system, sans-serif;
  font-size: 14px;
  background: #f8f9fa;
  color: #212529;
  line-height: 1.5;
}

a { color: #0d6efd; text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── Nav ── */
.nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 0.75rem 1.5rem;
  background: #1a1a2e;
  color: #e0e0e0;
}
.nav-brand { font-weight: 700; font-size: 1rem; color: #fff; margin-right: auto; }
.nav-link { color: #c8d0e0; font-size: 0.875rem; }
.nav-link:hover { color: #fff; text-decoration: none; }

/* ── Container ── */
.container { max-width: 1200px; margin: 0 auto; padding: 2rem 1.5rem; }

h1 { font-size: 1.5rem; margin-bottom: 1.25rem; }
h2 { font-size: 1.1rem; margin: 2rem 0 0.75rem; }
hr { border: none; border-top: 1px solid #dee2e6; margin: 2rem 0; }

/* ── Table ── */
.table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,.07);
}
.table th, .table td {
  padding: 0.6rem 0.875rem;
  text-align: left;
  border-bottom: 1px solid #e9ecef;
  white-space: nowrap;
}
.table th { background: #f1f3f5; font-weight: 600; font-size: 0.8rem; text-transform: uppercase; letter-spacing: .03em; }
.table tr:last-child td { border-bottom: none; }

/* ── Cell states ── */
.cell-ok     { background: #d1fae5; color: #065f46; }
.cell-mismatch { background: #fef3c7; color: #92400e; font-weight: 600; }
.cell-missing  { background: #f3f4f6; color: #9ca3af; }

/* ── Badges ── */
.badge {
  display: inline-block;
  padding: 0.15em 0.55em;
  border-radius: 99px;
  font-size: 0.75rem;
  font-weight: 600;
}
.badge-ok      { background: #d1fae5; color: #065f46; }
.badge-warn    { background: #fef3c7; color: #92400e; }
.badge-error   { background: #fee2e2; color: #991b1b; }
.badge-missing { background: #f3f4f6; color: #6b7280; }

/* ── Alerts ── */
.alert {
  padding: 0.75rem 1rem;
  border-radius: 6px;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}
.alert-warn { background: #fef3c7; color: #92400e; border: 1px solid #fde68a; }

/* ── Buttons ── */
.btn {
  display: inline-block;
  padding: 0.4rem 0.9rem;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 0.875rem;
  font-weight: 500;
  background: #e9ecef;
  color: #212529;
}
.btn:hover { opacity: 0.88; }
.btn-sm { padding: 0.2rem 0.6rem; font-size: 0.75rem; }
.btn-primary { background: #0d6efd; color: #fff; }
.btn-ok   { background: #d1fae5; color: #065f46; }
.btn-warn { background: #fef3c7; color: #92400e; }

/* ── Forms ── */
.form { display: flex; flex-direction: column; gap: 0.75rem; max-width: 700px; }
.form label { display: flex; flex-direction: column; gap: 0.25rem; font-weight: 500; }
.form input, .form textarea, .form select {
  padding: 0.4rem 0.6rem;
  border: 1px solid #ced4da;
  border-radius: 4px;
  font-size: 0.875rem;
  font-family: inherit;
  background: #fff;
}
.form textarea { resize: vertical; }
.form-row { display: flex; gap: 1rem; flex-wrap: wrap; }
.form-row label { flex: 1 1 180px; }
.checkbox-label { flex-direction: row; align-items: center; gap: 0.5rem; font-weight: normal; }

/* ── ArcBeam paste box ── */
.paste-box {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  max-width: 700px;
  margin-bottom: 1.5rem;
}
.paste-box label { font-weight: 500; }
.paste-box textarea {
  padding: 0.4rem 0.6rem;
  border: 1px dashed #adb5bd;
  border-radius: 4px;
  font-size: 0.8rem;
  font-family: monospace;
  background: #f8f9fa;
  resize: vertical;
}
.error-text { color: #991b1b; font-size: 0.8rem; }

/* ── Section header ── */
/* ── Pod status table ── */
.pod-status-table .pod-name { font-weight: 500; }
.pod-status-table .mono { font-family: monospace; font-size: 0.85rem; }

/* ── Section header ── */
.section-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 2rem 0 0.75rem;
}
.section-header h2 { margin: 0; }
.section-header .muted { flex: 1; font-size: 0.8rem; }

/* ── Pod picker ── */
.pod-picker {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
  max-width: 860px;
}
.pod-card {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.45rem 0.75rem;
  border: 1.5px solid #dee2e6;
  border-radius: 6px;
  background: #fff;
  cursor: pointer;
  -webkit-user-select: none;
  user-select: none;
  transition: border-color 0.12s, background 0.12s;
  min-width: 220px;
  flex: 1 1 220px;
}
.pod-card:hover { border-color: #adb5bd; background: #f8f9fa; }
.pod-card-ok { border-color: #a7f3d0; background: #f0fdf4; }
.pod-card-selected { border-color: #0d6efd !important; background: #eff6ff !important; box-shadow: 0 0 0 2px #bfdbfe; }
.pod-card input[type="checkbox"] { accent-color: #0d6efd; width: 15px; height: 15px; flex-shrink: 0; }
.pod-card-body { display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; flex: 1; }
.pod-card-name { font-size: 0.8rem; font-weight: 600; font-family: monospace; }
.pod-card-version { font-size: 0.75rem; color: #6c757d; font-family: monospace; }
.pod-picker-actions { display: flex; gap: 0.5rem; align-items: center; }

/* ── Misc ── */
.muted { color: #6c757d; }
.pod-chip {
  display: inline-block;
  background: #e9ecef;
  border-radius: 4px;
  padding: 0.1em 0.45em;
  font-size: 0.75rem;
  margin: 0.1em;
  font-family: monospace;
}
