/* Minimal, clean UI */
:root {
  --bg: #0b0f19;
  --card: #101524;
  --text: #e6e8ee;
  --muted: #aab3c5;
  --accent: #6ae3ff;
  --accent-2: #9b8cff;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, 'Helvetica Neue', Helvetica, Arial, 'Noto Sans', sans-serif;
  background: linear-gradient(180deg, #0b0f19, #ffffff);
  color: var(--text);
}

.container { max-width: 1100px; margin: 0 auto; padding: 20px; }

.topbar {
  background: radial-gradient(1200px 300px at 50% 0%, rgba(106,227,255,0.15), transparent 60%);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.topbar h1 { margin: 0; font-weight: 700; letter-spacing: 0.2px; }
.subtitle { margin: 6px 0 0 0; color: var(--muted); }
.brand { color: var(--accent); }

.card {
  background: var(--card);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 16px;
  padding: 16px;
  margin: 18px 0;
  box-shadow: 0 10px 30px rgba(0,0,0,0.25);
}

.grid { display: grid; gap: 12px; }
.grid.two   { grid-template-columns: repeat(2, minmax(0,1fr)); }
.grid.three { grid-template-columns: repeat(3, minmax(0,1fr)); }
@media (max-width: 900px) {
  .grid.two, .grid.three { grid-template-columns: 1fr; }
}

label > span, legend {
  display: block; font-size: 12px; color: var(--muted); margin-bottom: 6px;
}

input[type="text"], input[type="date"], input[type="number"], select {
  width: 100%; background: #0e1425; border: 1px solid #1a2340;
  color: var(--text); border-radius: 10px; padding: 10px 12px; outline: none;
}
input::placeholder { color: #7f8ba8; }

.inline { margin-right: 12px; font-size: 14px; color: var(--text); }
fieldset { border: 1px dashed #263156; padding: 10px 12px; border-radius: 12px; }

.actions { margin-top: 10px; display: flex; gap: 10px; }
.btn {
  background: #151c33; border: 1px solid #283056; color: var(--text);
  padding: 10px 14px; border-radius: 10px; cursor: pointer;
}
.btn.primary {
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  color: #0b0f19; font-weight: 700; border: none;
}
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

.results-header { display:flex; justify-content:space-between; align-items:center; padding: 8px 4px 12px 4px; }
#results .item {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 14px 4px;
}
.item h3 { margin: 0 0 6px 0; font-size: 18px; }
.item .meta { font-size: 13px; color: var(--muted); }
.badge { font-size: 12px; padding: 2px 8px; border-radius: 999px; background: #1a2340; margin-right: 6px; display:inline-block; }
.cpcs { margin-top: 8px; }
.cpcs .badge { background: #1b2548; }

a.link { color: var(--accent); text-decoration: none; }
a.link:hover { text-decoration: underline; }
.hidden { display:none; }

.results-footer { margin-top: 14px; display:flex; justify-content:flex-end; }
.pager { display:flex; align-items:center; gap:10px; }
.pageinfo { font-size:13px; opacity:0.8; margin-right:6px; }


footer.muted { color: var(--muted); text-align:center; margin: 24px 0; font-size: 13px; }
