:root {
  --bg: #0b0f17;
  --card: #121826;
  --accent: #22d3ee;
  --text: #e5e7eb;
  --muted: #94a3b8;
}

* {
  box-sizing: border-box;
}

html, body {
  height: 100%;
}

body {
  margin: 0;
  background: linear-gradient(160deg, #0a0e15, #0c1220 40%, #0a0f19);
  color: var(--text);
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, sans-serif;
  line-height: 1.5;
}

/* Top navigation bar */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  border-bottom: 1px solid #1f2937;
  background: #0b1220cc;
  backdrop-filter: blur(6px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Logo image: displayed in the top bar if a file named logo.png exists */
.logo {
  height: 32px;
  width: auto;
  filter: drop-shadow(0 0 6px #22d3ee80);
}

.topbar h1 {
  font-size: 18px;
  margin: 0;
  letter-spacing: 0.4px;
}

nav a {
  color: var(--muted);
  margin-left: 16px;
  text-decoration: none;
}
nav a:hover {
  color: var(--accent);
}

/* Main container */
.container {
  max-width: 900px;
  margin: 40px auto;
  padding: 0 20px;
}

.card {
  background: radial-gradient(1000px 400px at -10% -10%, #10233a 0%, transparent 40%), var(--card);
  border: 1px solid #1f2a44;
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 10px 30px #0008;
}

.card h2 {
  margin-top: 0;
}

form {
  display: grid;
  gap: 14px;
  margin-top: 10px;
}

label {
  color: var(--muted);
}

select,
input[type="file"] {
  padding: 10px;
  border: 1px solid #22304a;
  border-radius: 10px;
  background: #0c1526;
  color: var(--text);
}

button {
  padding: 12px 16px;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(90deg, #14b8a6, #06b6d4);
  color: #001017;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 0 18px #22d3ee55;
}

button:hover {
  filter: brightness(1.05);
}

.status {
  margin-top: 10px;
  color: var(--muted);
}

.results {
  margin-top: 18px;
  padding: 14px;
  border: 1px dashed #1f2a44;
  border-radius: 12px;
}

.results a {
  color: var(--accent);
  text-decoration: none;
}

.hidden {
  display: none;
}

.footer {
  opacity: 0.6;
  text-align: center;
  margin: 40px 0;
}