/* ===== Cabeçalho ===== */
header {
  width: 100%;
  background: linear-gradient(90deg, #071028, #071827);
  padding: 16px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  position: fixed;
  top: 0;
  left: 0;
  z-index: 100;
}

header .logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 700;
  color: #e6eef6;
  text-decoration: none;
}

header nav {
  display: flex;
  gap: 20px;
}

header nav a {
  color: #e6eef6;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

header nav a:hover {
  color: var(--accent);
}

/* Ajuste do conteúdo para não ficar atrás do cabeçalho fixo */
body {
  padding-top: 70px; /* altura do header */
}

:root {
  --bg: #0f1724;
  --card: #0b1220;
  --accent: #06b6d4;
  --muted: #94a3b8;
}

* { box-sizing: border-box; }

body {
  font-family: Inter, system-ui, Segoe UI, Roboto, Helvetica, Arial;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, #071028 0%, #071827 60%);
  color: #e6eef6;
  padding: 24px;
}

.card {
  width: 100%;
  max-width: 1300px; /* antes era 760px */
  background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01));
  border-radius: 12px;
  padding: 60px; /* antes era 28px */
  box-shadow: 0 8px 30px rgba(2,6,23,0.7);
  border: 1px solid rgba(255,255,255,0.03);
}

h1 { font-size: 20px; margin: 0 0 8px; }
p.lead { margin: 0 0 18px; color: var(--muted); }

.grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

label {
  display: block;
  font-size: 13px;
  margin-bottom: 6px;
  color: #ccd9e6;
}

input, select {
  width: 100%;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.06);
  background: transparent;
  color: inherit;
  font-size: 15px;
}

/* Ajuste de contraste para dropdown */
select option {
  background-color: #ffffff; /* fundo branco */
  color: #000000; /* texto preto */
}

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

.actions {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-top: 12px;
}

button {
  background: var(--accent);
  color: #042027;
  border: none;
  padding: 10px 14px;
  border-radius: 10px;
  font-weight: 600;
  cursor: pointer;
}

button.secondary {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.06);
  color: var(--muted);
}

.result {
  margin-top: 18px;
  padding: 14px;
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(6,182,212,0.04), rgba(255,255,255,0.01));
  border: 1px solid rgba(6,182,212,0.08);
}

.badge {
  display: inline-block;
  padding: 6px 10px;
  border-radius: 999px;
  font-weight: 700;
}

.small {
  font-size: 13px;
  color: var(--muted);
}

footer.small {
  margin-top: 12px;
  color: var(--muted);
  font-size: 12px;
}

@media (max-width: 640px) {
  .grid { grid-template-columns: 1fr; }
}
