* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background: #f3f6fc;
  font-family: 'Segoe UI', sans-serif;
  padding: 1rem;
  display: flex;
  justify-content: center;
}

.container {
  background: #fff;
  padding: 2rem;
  border-radius: 1rem;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
  width: 100%;
  max-width: 420px;
  text-align: center;
  box-sizing: border-box;
}

h1 {
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
  color: #222;
}

input[type="text"],
input[type="number"],
input[type="file"] {
  display: block;
  width: 100%;
  padding: 0.75rem 1rem;
  margin: 0.75rem 0;
  border: 1px solid #ddd;
  border-radius: 0.75rem;
  font-size: 1rem;
  transition: all 0.3s ease;
  background: #f9fafb;
}

input[type="text"]:focus,
input[type="number"]:focus {
  border-color: #4CAF50;
  background: #fff;
  outline: none;
}

button {
  display: inline-block;
  background-color: #4CAF50;
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  margin-top: 1rem;
  border-radius: 0.75rem;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.3s ease;
}

button:hover {
  background-color: #45a049;
}

#qrCode {
  margin: 1.5rem auto;
  background: #eee;
  border-radius: 0.75rem;
  width: 90vw;
  max-width: 300px;
  height: 90vw;
  max-height: 300px;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  position: relative;
}

#qrCode canvas {
    position: absolute;
    top: 0;
    left: 0;
    transform-origin: top left;
}