:root {
  --bg-1: #07121f;
  --bg-2: #0f2036;
  --card: #13253f;
  --line: #234367;
  --text: #e9f2ff;
  --muted: #a5bdda;
  --ok: #3ecf8e;
  --warn: #f7b955;
  --err: #ff6b6b;
  --action: #58d3f7;
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  color: var(--text);
  background:
    radial-gradient(1000px 600px at 5% -10%, #1b3f69 0%, transparent 60%),
    radial-gradient(900px 700px at 110% 0%, #12345a 0%, transparent 55%),
    linear-gradient(160deg, var(--bg-1), var(--bg-2));
  font-family: "Segoe UI", "Noto Sans", sans-serif;
}

.page {
  max-width: 920px;
  margin: 0 auto;
  padding: 32px 16px 56px;
}

.hero h1 {
  margin: 0;
  font-size: 34px;
  letter-spacing: 0.2px;
}

.hero p {
  margin: 10px 0 24px;
  color: var(--muted);
}

.card {
  background: linear-gradient(180deg, rgba(19, 37, 63, 0.96), rgba(14, 30, 53, 0.92));
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px;
  margin-bottom: 16px;
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.25);
}

.label {
  display: block;
  margin: 10px 0 6px;
  color: var(--muted);
  font-size: 13px;
}

input[type="file"],
input[type="password"] {
  width: 100%;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #0d1d33;
  color: var(--text);
  padding: 10px 12px;
}

button {
  margin-top: 14px;
  border: 0;
  border-radius: 10px;
  padding: 11px 16px;
  background: linear-gradient(90deg, #43b8ff, var(--action));
  color: #072132;
  font-weight: 700;
  cursor: pointer;
}

button:disabled {
  opacity: 0.65;
  cursor: default;
}

.status {
  margin-top: 14px;
  border-radius: 10px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  color: var(--muted);
  background: rgba(7, 18, 31, 0.7);
}

.status.running {
  border-color: #3a7fc5;
  color: #cde9ff;
}

.status.ok {
  border-color: rgba(62, 207, 142, 0.6);
  color: #b9f5d8;
}

.status.error {
  border-color: rgba(255, 107, 107, 0.7);
  color: #ffd0d0;
}

.run-meta {
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
  font-family: Consolas, "Courier New", monospace;
  min-height: 18px;
}

#result-content {
  color: var(--muted);
  line-height: 1.45;
}

.links {
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.links a {
  color: var(--action);
  text-decoration: none;
}

.links a:hover {
  text-decoration: underline;
}

.table-wrap {
  width: 100%;
  overflow-x: auto;
}

.table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 6px;
  font-size: 13px;
}

.table th,
.table td {
  border-bottom: 1px solid rgba(165, 189, 218, 0.18);
  padding: 8px 10px;
  text-align: left;
  white-space: nowrap;
}

.table th {
  color: #d6e8ff;
  font-weight: 700;
}

.table td {
  color: var(--muted);
}
