:root {
  --bg: #0f1227;
  --card: #171b34;
  --muted: #9aa3b2;
  --text: #e8eefc;
  --accent: #7c9eff;
  --accent-2: #5be4bf;
  --border: rgba(255, 255, 255, 0.12);
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  --radius: 18px;
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Ubuntu,
    Cantarell, Noto Sans, "Helvetica Neue", Arial, "Apple Color Emoji",
    "Segoe UI Emoji";
  color: var(--text);
  background:
    /* radial-gradient(1200px 800px at 80% -20%, rgba(124, 158, 255, 0.25), transparent 60%),  */
    var(--bg);
  line-height: 1.4;
}

/* NAVBAR */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: saturate(140%) blur(10px);
  background: rgba(15, 18, 39, 0.6);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.nav a {
  color: var(--text);
  text-decoration: none;
  opacity: 0.9;
  padding: 8px 12px;
  border-radius: 999px;
  transition: 160ms ease;
}

.nav a:hover,
.nav a:focus-visible {
  background: rgba(255, 255, 255, 0.08);
  outline: none;
}

.links {
  display: inline-flex;
  gap: 6px;
}

/* LAYOUT */
.container {
  max-width: 1100px;
  margin: 28px auto;
  padding: 0 20px 28px;
  display: grid;
  grid-template-rows: auto auto 1fr;
  gap: 22px;
}

.card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.01));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* BUTTONS + CONTROLS */
.controls {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: start;
  gap: 16px;
  padding: 18px;
}

.btns {
  display: inline-flex;
  gap: 10px;
  flex-wrap: wrap;
}

button.btn {
  appearance: none;
  border: 1px solid var(--border);
  background: linear-gradient(180deg, #20264a, #1a2142);
  color: var(--text);
  padding: 12px 16px;
  border-radius: 14px;
  font-weight: 600;
  letter-spacing: 0.2px;
  cursor: pointer;
  transition: transform 120ms ease, box-shadow 120ms ease, border-color 120ms ease;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
}

button.btn:hover {
  transform: translateY(-1px);
  border-color: rgba(124, 158, 255, 0.55);
}

button.btn:active {
  transform: translateY(0);
}

input{
  width: 100%;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: #121631;
  color: var(--text);
  height: 100%;
}

/* GIANT SELECTOR */
.selector-wrap {
  padding: 18px;
}

.selector-label {
  display: block;
  margin-bottom: 10px;
  color: var(--muted);
}

select {
  width: 100%;
  min-height: 360px;
  /* giant height */
  border-radius: 16px;
  border: 1px solid var(--border);
  background: #121631;
  color: var(--text);
  padding: 12px;
  font-size: 18px;
  /* giant text */
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), var(--shadow);
}

/* OUTPUT BOX */
.output {
  padding: 0;
}

.output-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  color: var(--muted);
}

.output-box {
  padding: 18px;
  min-height: 280px;
  /* giant bottom box */
  overflow: auto;
  white-space: pre-wrap;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  background: #0f1430;
  border-radius: 0 0 var(--radius) var(--radius);
}

table.classic-table {
  width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
}

/* tbody {
  display: grid;
  grid-template-columns: 1fr 3fr 1fr;
} */

.classic-table th,
.classic-table td {
  border: 1px solid #ccc;
  padding: 8px;
  text-align: left;
}

/* th,
td {
  border: 1px solid var(--border);
  padding: 8px;
  text-align: left;
} */

th {
  background: #1f2240;
}

/* RESPONSIVE
@media (max-width: 720px) {
  .controls {
    grid-template-columns: 1fr;
  }

  .output-box {
    height: 220px;
  }

  select#giant-select {
    min-height: 280px;
    font-size: 16px;
  }
} */