* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: linear-gradient(135deg, #eef2f7, #dfe9f3);
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.container {
  background: #ffffff;
  width: 100%;
  max-width: 460px;
  padding: 24px;
  border-radius: 18px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
  text-align: center;
}

h1 {
  margin: 0 0 8px;
  color: #1a1a1a;
}

.subtitle {
  margin-bottom: 20px;
  color: #666;
  font-size: 14px;
}

label {
  display: block;
  text-align: left;
  margin-bottom: 8px;
  font-weight: bold;
  color: #333;
}

input[type="text"] {
  width: 100%;
  padding: 12px;
  border: 1px solid #d0d7de;
  border-radius: 10px;
  font-size: 14px;
  margin-bottom: 18px;
}

.color-group {
  display: flex;
  gap: 16px;
  margin-bottom: 20px;
}

.color-box {
  flex: 1;
  text-align: left;
}

input[type="color"] {
  width: 100%;
  height: 50px;
  border: none;
  border-radius: 10px;
  background: none;
  cursor: pointer;
}

.buttons {
  display: flex;
  gap: 12px;
  margin-bottom: 22px;
}

button {
  flex: 1;
  padding: 12px;
  border: none;
  border-radius: 10px;
  font-size: 14px;
  font-weight: bold;
  cursor: pointer;
  transition: transform 0.15s ease, opacity 0.15s ease;
}

button:hover {
  transform: translateY(-1px);
  opacity: 0.95;
}

/* #generateBtn {
  background: #0057ff;
  color: white;
} */

#downloadBtn {
  background: #111827;
  color: white;
}

#qrcode {
  margin-top: 10px;
  display: flex;
  justify-content: center;
}

canvas {
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
}

.footer-credit {
  margin-top: 20px;
  font-size: 14px;
  color: #555;
  text-align: center;
}

.footer-credit a {
  color: #0077ff;
  text-decoration: none;
}

.footer-credit a:hover {
  text-decoration: underline;
}