* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: #0d1117;
  color: #c9d1d9;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 3rem 1rem;
}

header {
  text-align: center;
  margin-bottom: 2.5rem;
}

h1 {
  font-size: 2.6rem;
  font-weight: 700;
  background: linear-gradient(135deg, #58a6ff, #f0883e);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: -0.5px;
}

header p {
  color: #8b949e;
  margin-top: 0.6rem;
  font-size: 1.05rem;
}

.badges {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-top: 15px;
}

.badge {
  padding: 3px 9px;
  border-radius: 6px;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.rust { background: rgba(240, 136, 62, 0.1); color: #f0883e; border: 1px solid rgba(240, 136, 62, 0.3); }
.wasm { background: rgba(88, 166, 255, 0.1); color: #58a6ff; border: 1px solid rgba(88, 166, 255, 0.3); }
.elf { background: rgba(46, 164, 79, 0.1); color: #2ea44f; border: 1px solid rgba(46, 164, 79, 0.3); }

.drop-zone {
  width: 100%;
  max-width: 750px;
  padding: 5rem 2rem;
  border: 2px dashed #30363d;
  border-radius: 1rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
  background: #161b22;
  margin-bottom: 2.5rem;
}

.drop-zone:hover, .drop-zone.drag-over {
  border-color: #58a6ff;
  background: #1c2333;
  box-shadow: 0 0 25px rgba(88, 166, 255, 0.08);
}

.drop-zone p {
  font-size: 1.25rem;
  margin: 0.4rem 0;
  color: #f0f6fc;
}

#output-container {
  width: 100%;
  max-width: 1000px;
  background: #161b22;
  border-radius: 1rem;
  padding: 1.5rem;
  border: 1px solid #30363d;
  position: relative;
}

#output-container h2 {
  font-size: 1.2rem;
  font-weight: 500;
  margin-bottom: 1rem;
  color: #f0f6fc;
}

.output-box {
  background: #0d1117;
  padding: 1.25rem;
  border-radius: 0.5rem;
  border: 1px solid #21262d;
  overflow-x: auto;
  font-family: 'SFMono-Regular', Consolas, 'Fira Code', monospace;
  font-size: 0.9rem;
  line-height: 1.6;
  color: #7ee787;
  white-space: pre-wrap;
  word-break: break-all;
  max-height: 75vh;
  overflow-y: auto;
}

.clear-btn {
  position: absolute;
  top: 1.2rem;
  right: 1.5rem;
  background: #21262d;
  border: 1px solid #30363d;
  color: #c9d1d9;
  padding: 0.35rem 0.85rem;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.85rem;
  transition: 0.2s;
}

.clear-btn:hover {
  background: #30363d;
  color: #fff;
}

footer {
  margin-top: auto;
  padding-top: 3rem;
  color: #8b949e;
  font-size: 0.85rem;
  text-align: center;
}

footer a {
  color: #58a6ff;
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
}
