:root {
  --bg-main: #0b0f19;
  --bg-card: #131b2e;
  --border: #1e293b;
  --accent: #38bdf8;
  --accent-glow: rgba(56, 189, 248, 0.2);
  --text-main: #f1f5f9;
  --text-muted: #94a3b8;
}

body {
  background-color: var(--bg-main) !important;
  color: var(--text-main) !important;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  margin: 0;
  padding: 0;
  min-height: 100vh;
}

.global-row {
  max-width: 1400px;
  margin: 0 auto;
  padding: 24px;
  display: flex;
  gap: 28px;
  flex-direction: row;
}

@media (max-width: 960px) {
  .global-row {
    flex-direction: column;
    padding: 16px;
  }
}

.global-column {
  margin: 0 !important;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.5);
}

#outputCanvas {
  background-color: #000;
  border-radius: 12px;
  border: 1px solid #1e293b;
  box-shadow: 0 0 35px rgba(56, 189, 248, 0.15);
  display: block;
  margin: 0 auto 20px auto;
  width: 100%;
  aspect-ratio: 4 / 3;
}

#root {
  margin-top: 16px;
}

#root div {
  color: var(--text-muted);
}

#root input[type="file"] {
  display: block;
  width: 100%;
  box-sizing: border-box;
  padding: 14px 18px;
  background: #0f172a;
  color: var(--text-main);
  border: 1.5px dashed #38bdf8;
  border-radius: 10px;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
}

#root input[type="file"]:hover {
  background: #1e293b;
  border-color: #7dd3fc;
  box-shadow: 0 0 15px var(--accent-glow);
}

span.version {
  position: static !important;
  display: inline-block;
  margin-top: 12px;
  font-size: 12px;
  color: #64748b !important;
}

h1 {
  font-size: 28px;
  font-weight: 700;
  margin-top: 0;
  letter-spacing: -0.5px;
  background: linear-gradient(135deg, #38bdf8 0%, #818cf8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

h3 {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent);
  margin-top: 20px;
  margin-bottom: 10px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 6px;
}

p {
  color: var(--text-muted);
  line-height: 1.6;
  font-size: 14px;
}

.badge-tag {
  display: inline-block;
  padding: 3px 8px;
  background: rgba(56, 189, 248, 0.12);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.3);
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
  margin-right: 6px;
  margin-bottom: 12px;
  text-transform: uppercase;
}

.controls-row {
  display: flex;
  gap: 16px;
}

@media (max-width: 600px) {
  .controls-row {
    flex-direction: column;
  }
}

.controls-column {
  flex: 1;
}

table {
  width: 100%;
  border-collapse: separate !important;
  border-spacing: 0;
  border: 1px solid var(--border) !important;
  border-radius: 8px;
  overflow: hidden;
  background: #0f172a;
  font-size: 13px;
}

th, td {
  border: none !important;
  border-bottom: 1px solid #1e293b !important;
  padding: 8px 12px;
  text-align: left;
}

tr:last-child td {
  border-bottom: none !important;
}

th {
  background: #1e293b;
  color: var(--accent);
  font-weight: 600;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

td {
  color: var(--text-main);
}

td:last-child {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  color: #a5f3fc;
  font-weight: 500;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s;
  display: inline-block;
  margin-bottom: 4px;
}

a:hover {
  color: #7dd3fc;
  text-decoration: underline;
}
