* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family: sans-serif;
  background: #1a1a1a;
  color: #f0f0f0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
  padding: 40px 20px;
}
h1 {
  font-size: 20px;
  color: #ffd700;
}
.card {
  background: #fff;
  border-radius: 16px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
#qr-wrap {
  position: relative;
  display: inline-block;
}
#qrcode canvas,
#qrcode img {
  display: block;
  border-radius: 8px;
}
#logo-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: 3px solid #fff;
  background: #fff;
  object-fit: cover;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}
.label {
  font-size: 13px;
  color: #333;
  font-weight: 600;
  letter-spacing: 1px;
}
.url-text {
  font-size: 11px;
  color: #888;
  margin-top: -6px;
}
.btn-download {
  background: #ffd700;
  color: #1a1a1a;
  border: none;
  border-radius: 10px;
  padding: 12px 28px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  margin-top: 8px;
}
.btn-download:hover {
  background: #e8c400;
}
.info {
  font-size: 12px;
  color: #888;
  text-align: center;
  max-width: 320px;
  line-height: 1.6;
}
.config {
  background: #2a2a2a;
  border-radius: 12px;
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  max-width: 360px;
}
.config label {
  font-size: 12px;
  color: #aaa;
}
.config input[type="text"],
.config input[type="file"] {
  background: #1a1a1a;
  border: 1px solid #444;
  border-radius: 8px;
  color: #fff;
  padding: 8px 12px;
  font-size: 13px;
  width: 100%;
}
.config input:focus {
  outline: none;
  border-color: #ffd700;
}
.toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.toggle-row label {
  font-size: 12px;
  color: #aaa;
  margin: 0;
}
.toggle {
  position: relative;
  width: 40px;
  height: 22px;
  flex-shrink: 0;
}
.toggle input {
  opacity: 0;
  width: 0;
  height: 0;
}
.toggle-slider {
  position: absolute;
  inset: 0;
  background: #444;
  border-radius: 22px;
  cursor: pointer;
  transition: background 0.2s;
}
.toggle-slider::before {
  content: "";
  position: absolute;
  width: 16px;
  height: 16px;
  left: 3px;
  top: 3px;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.2s;
}
.toggle input:checked + .toggle-slider {
  background: #ffd700;
}
.toggle input:checked + .toggle-slider::before {
  transform: translateX(18px);
}
.btn-gerar {
  background: #333;
  color: #ffd700;
  border: 1px solid #ffd700;
  border-radius: 8px;
  padding: 9px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  width: 100%;
}
.btn-gerar:hover {
  background: #444;
}
