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

body {
  font-family: 'Poppins', sans-serif;
  color: white;
  background: #1f1b2e;
  overflow-y: auto;
  min-height: 100vh;
  position: relative;
}

canvas#stars {
  position: fixed;
  top: 0;
  left: 0;
  z-index: -1;
}

.container {
  max-width: 400px;
  width: 90%;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
  padding: 30px;
  border-radius: 20px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
  text-align: center;
  
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

h1 {
  font-weight: 600;
  margin-bottom: 20px;
  color: #b39ddb;
}

input {
  width: 100%;
  padding: 12px;
  margin: 10px 0;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-radius: 10px;
  font-size: 16px;
  background: transparent;
  color: white;
  text-align: center;
  transition: 0.3s;
}

input::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

input:focus {
  border-color: #ce93d8;
  outline: none;
}

button {
  width: 100%;
  padding: 12px;
  margin-top: 10px;
  border: none;
  border-radius: 10px;
  background: #ab47bc;
  color: white;
  font-size: 18px;
  cursor: pointer;
  transition: 0.3s;
}

button:hover {
  background: #9c27b0;
}

.color-options {
  margin: 10px 0;
  display: flex;
  justify-content: center;
  gap: 10px;
}

.color-options input {
  display: none;
}

.color-options label {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  cursor: pointer;
  border: 3px solid transparent;
  transition: 0.3s;
}

.color-options input:checked + label {
  border-color: white;
}

#black { background: black; }
#red { background: red; }
#blue { background: blue; }
#green { background: green; }
#purple { background: purple; }

#qrcode-container {
  margin-top: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

#qrcode {
  padding: 20px;
  background: white;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

#download {
  display: none;
  text-decoration: none;
  margin-top: 15px;
  padding: 10px 15px;
  background: #4caf50;
  color: white;
  border-radius: 10px;
  font-size: 16px;
  transition: 0.3s;
}

#download:hover {
  background: #43a047;
}
