:root {
  --bg: #0f1115;
  --card: #171a21;
  --text: #e7e9ee;
  --muted: #9aa1ad;
  --accent: #5b8cff;
  --border: #2a2e38;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: -apple-system, Segoe UI, Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
}

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

h1 { margin-bottom: 4px; }
.subtitle { color: var(--muted); margin-top: 0; margin-bottom: 28px; }

.search-form {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 20px;
  margin-bottom: 24px;
}

.row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: end;
  margin-bottom: 14px;
}

label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  color: var(--muted);
  flex: 1;
  min-width: 180px;
}

label.checkbox {
  flex-direction: row;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
  color: var(--text);
  font-size: 14px;
}

input[type="text"], input[type="number"] {
  background: #0f1115;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 10px 12px;
  color: var(--text);
  font-size: 14px;
}

button {
  background: var(--accent);
  color: white;
  border: none;
  border-radius: 6px;
  padding: 10px 18px;
  font-size: 14px;
  cursor: pointer;
}

button.secondary {
  background: transparent;
  border: 1px solid var(--accent);
  color: var(--accent);
}

.error {
  background: #3a1f24;
  border: 1px solid #6b2b34;
  color: #ffb4bd;
  padding: 12px 16px;
  border-radius: 6px;
}

.results-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: 10px;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

th, td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
  max-width: 260px;
  overflow: hidden;
  text-overflow: ellipsis;
}

th {
  background: #1c2029;
  color: var(--muted);
  font-weight: 600;
  position: sticky;
  top: 0;
}

a { color: var(--accent); }

.badge {
  background: #1c2029;
  border: 1px solid var(--border);
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 12px;
  color: var(--muted);
}

.badge.ok {
  background: #163a26;
  border-color: #245c3a;
  color: #7de3a2;
}

.badge.erro {
  background: #3a1f24;
  border-color: #6b2b34;
  color: #ffb4bd;
}

.actions {
  display: flex;
  gap: 10px;
}

.muted-note {
  color: var(--muted);
  font-size: 13px;
  font-weight: 400;
}
