:root {
  --pana-1: #003a70;
  --pana-2: #0056a4;
  --pana-3: #2f8fd6;
  --pana-grad: linear-gradient(135deg, var(--pana-1), var(--pana-2));
  --panel: #ffffff;
  --bg: #f2f5f9;
  --ink: #16202b;
  --ink-soft: #4b5b6b;
  --ink-muted: #8593a3;
  --line: #dbe3ec;
  --radius-lg: 16px;
  --radius-md: 10px;
  --shadow-md: 0 10px 30px rgba(0, 40, 90, 0.12);
  --ok-bg: #e7f7ec;
  --ok: #1a8a4a;
  --critical-bg: #fdecec;
  --critical: #c0392b;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 14px;
}

.wrap {
  max-width: 560px;
  margin: 0 auto;
  padding: 48px 16px 80px;
}

.brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 22px;
  font-weight: 700;
  font-size: 12.5px;
  color: var(--ink-muted);
}
.brand-badge {
  background: var(--pana-grad);
  color: #fff;
  border-radius: 6px;
  padding: 3px 8px;
  font-size: 11px;
}

.card {
  background: var(--panel);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 30px 28px;
}

.card h1 {
  font-size: 20px;
  margin: 0 0 6px;
  font-weight: 800;
  letter-spacing: -0.2px;
}
.card .subtitle {
  color: var(--ink-soft);
  font-size: 13px;
  margin: 0 0 24px;
}

label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  color: var(--ink-soft);
  text-transform: uppercase;
  letter-spacing: 0.3px;
  margin-bottom: 6px;
}

input[type="text"], input[type="email"], input[type="password"], select {
  width: 100%;
  padding: 10px 12px;
  margin-bottom: 16px;
  border: 1.5px solid var(--line);
  border-radius: 8px;
  font-size: 14px;
  font-family: inherit;
  background: #fff;
  color: var(--ink);
}
input:focus, select:focus {
  outline: 2px solid var(--pana-3);
  outline-offset: 1px;
}

.field-hint {
  font-size: 11.5px;
  color: var(--ink-muted);
  margin: -12px 0 16px;
}

.radio-row {
  display: flex;
  gap: 18px;
  margin-bottom: 18px;
}
.radio-row label {
  display: flex;
  align-items: center;
  gap: 6px;
  text-transform: none;
  font-weight: 600;
  font-size: 13.5px;
  color: var(--ink);
  margin: 0;
}
.radio-row input { width: auto; margin: 0; }

button, .btn {
  width: 100%;
  padding: 12px;
  background: var(--pana-2);
  color: #fff;
  border: none;
  border-radius: 9px;
  font-weight: 700;
  letter-spacing: 0.2px;
  font-size: 14px;
  cursor: pointer;
  transition: filter 0.15s;
}
button:hover, .btn:hover { filter: brightness(1.1); }
button:disabled { opacity: 0.6; cursor: default; }

.alerta {
  font-size: 12.5px;
  font-weight: 600;
  padding: 10px 12px;
  border-radius: 8px;
  margin-bottom: 16px;
  display: none;
}
.alerta.show { display: block; }
.alerta.erro { background: var(--critical-bg); color: var(--critical); }
.alerta.ok { background: var(--ok-bg); color: var(--ok); }
.alerta.info { background: #eaf2fb; color: var(--pana-1); font-weight: 500; line-height: 1.5; }

.section-title {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: var(--pana-2);
  margin: 24px 0 12px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.section-title:first-of-type { margin-top: 0; padding-top: 0; border-top: none; }

/* admin */
.admin-wrap { max-width: 1180px; margin: 0 auto; padding: 28px 20px 60px; }
.admin-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  flex-wrap: wrap;
  gap: 10px;
}
.admin-top h1 { font-size: 19px; margin: 0; font-weight: 800; }
.admin-meta { font-size: 12px; color: var(--ink-muted); }
.admin-actions { display: flex; align-items: center; gap: 10px; }
.admin-actions .btn { width: auto; padding: 8px 16px; font-size: 12.5px; }
.btn-outline {
  background: transparent;
  color: var(--pana-2);
  border: 1.5px solid var(--pana-2);
}
.btn-outline:hover { background: var(--pana-2); color: #fff; filter: none; }

.table-card {
  background: var(--panel);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}
.table-scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 13px; min-width: 900px; }
thead th {
  text-align: left;
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  color: var(--ink-muted);
  font-weight: 800;
  padding: 12px 14px;
  border-bottom: 1.5px solid var(--line);
  white-space: nowrap;
}
tbody td {
  padding: 11px 14px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
tbody tr:last-child td { border-bottom: none; }
tbody tr:hover { background: #f7fafd; }
.badge-sim { background: var(--ok-bg); color: var(--ok); font-weight: 700; font-size: 11px; padding: 3px 9px; border-radius: 20px; }
.badge-nao { background: var(--critical-bg); color: var(--critical); font-weight: 700; font-size: 11px; padding: 3px 9px; border-radius: 20px; }
.empty-state { padding: 50px 20px; text-align: center; color: var(--ink-muted); font-size: 13.5px; }

@media (max-width: 640px) {
  .wrap { padding: 24px 12px 60px; }
  .card { padding: 22px 18px; }
}
