body {
  font-family: "Inter", sans-serif;
  background-color: #f6f8fa;
  color: #24292e;
  margin: 0;
  padding: 0;
}

header {
  text-align: center;
  padding: 2rem 1rem;
  background: #24292e;
  color: #fff;
}

header h1 {
  margin: 0;
  font-size: 1.8rem;
}

.back-link {
  display: inline-block;
  margin-top: 1rem;
  color: #58a6ff;
  text-decoration: none;
}

.back-link:hover {
  text-decoration: underline;
}

.tool-container {
  padding: 2rem;
}

.card {
  background: #fff;
  max-width: 480px;
  margin: 3rem auto;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  text-align: center;
}

input[type="text"] {
  width: 80%;
  padding: 0.8rem;
  font-size: 1rem;
  border-radius: 8px;
  border: 1px solid #d0d7de;
  margin-bottom: 1rem;
}

button {
  background-color: #2da44e;
  color: white;
  border: none;
  padding: 0.8rem 1.5rem;
  font-size: 1rem;
  border-radius: 8px;
  cursor: pointer;
}

button:hover {
  background-color: #2c974b;
}

.result-box {
  background: #f6f8fa;
  border-radius: 8px;
  padding: 1rem;
  margin-top: 1rem;
  word-wrap: break-word;
}

footer {
  text-align: center;
  padding: 1rem;
  background: #f1f3f5;
  color: #555;
}
textarea {
  width: 90%;
  font-size: 1rem;
  border-radius: 8px;
  border: 1px solid #d0d7de;
  padding: 0.8rem;
  margin-bottom: 1rem;
  resize: vertical;
}

.btn-group {
  display: flex;
  justify-content: center;
  gap: 0.8rem;
}

.secondary {
  background-color: #6e7781;
}

.secondary:hover {
  background-color: #5a616a;
}
.qr-card {
  display: flex;
  flex-direction: column;
  align-items: center;
}

#qrText {
  width: 90%;
  max-width: 400px;
  margin-bottom: 1rem;
}

.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  justify-content: center;
}

#qrcodeContainer {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

#qrcodeCanvas {
  max-width: 90%;
  height: auto;
  border: 1px solid #d0d7de;
}

#originalText {
  font-size: 1rem;
  color: #24292e;
  word-break: break-word;
  max-width: 90%;
}


/* Responsive */
@media (max-width: 500px) {
  #qrText {
    width: 100%;
  }
  .btn-group {
    flex-direction: column;
    width: 100%;
  }
  .btn-group button {
    width: 100%;
  }
}

