:root {
  --bg: #0f1724;
  --card: #0b1220;
  --accent: #60a5fa;
  --muted: #94a3b8;
  --glass: rgba(255,255,255,0.03);
}

html, body {height: 100%;}
body {
  margin: 0;
  font-family: Inter, system-ui, Segoe UI, Roboto, "Helvetica Neue", Arial;
  background: radial-gradient(circle at 10% 10%, rgba(96,165,250,0.06), transparent 10%),
              linear-gradient(180deg, #071029 0%, #071428 100%);
  color: #e6eef8;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 24px;
}

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

h1 {
  margin: 0 0 15px 0;
  font-size: 25px
}

form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 12px;
  align-items: end;
}

label {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 6px;
}

.field{
  display:flex;
  flex-direction:column;
  gap:6px;
}

input[type="number"],
input[type="text"],
input[type="date"] {
  background: var(--glass);
  border: 1px solid rgba(255,255,255,0.03);
  padding: 10px 12px;
  border-radius: 8px;
  color: inherit;
  outline: none;
  font-size: 14px;
}

.full {
  grid-column: 1 / -1;
}

.actions {
  display: flex;
  gap: 10px;
  grid-column: 1 / -1;
  margin-top: 6px;
}

button {
  background: linear-gradient(180deg, var(--accent), #2b7be0);
  border: none;
  color: #04203a;
  padding: 10px 12px;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 600;
}

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

h4 {
  text-align: center;
  margin-top: 18px;
  margin-bottom: 8px;
  font-size: 16px;
  color: #dbeafe;
}

pre#resultado {
  background: #031026;
  border-radius: 8px;
  padding: 12px;
  overflow: auto;
  max-height: 280px;
  white-space: pre-wrap;
  color: #cfe8ff;
  border: 1px solid rgba(255,255,255,0.02);
}

ul#lista {
  list-style: none;
  padding: 0;
  margin: 0;
}

ul#lista li {
  background: rgba(255,255,255,0.02);
  border-radius: 8px;
  margin-bottom: 6px;
  white-space: nowrap;
  padding: 8px 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

ul#lista span {
  font-size: 14px;
  overflow: hidden;
  text-overflow: ellipsis;
}

ul#lista button {
  padding: 6px 8px;
  font-size: 13px;
  border-radius: 6px;
  margin-left: 5px;
}

footer {
  position: fixed;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  color: #94a3b8;
  font-size: 14px;
  text-align: center;
}

.error {
  color: #ffb4b4;
  font-size: 13px;
}

@media(max-width:640px){
  form{grid-template-columns:1fr}
  .actions{flex-direction:column; align-items:stretch}
}