* {
  box-sizing: border-box;
}

body {
  background: #f4f4f9;
  font-family: "Poppins", sans-serif;
  max-width: 500px;
  height: 100vh;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
  color: #333;
  padding: 20px;
}

h1.title {
  font-size: 1.7rem;
  font-weight: 700;
  text-align: center;
  color: #414866;
  margin-bottom: 1.5rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  background: linear-gradient(to right, #6a2bff, #4a90e2);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 1.5rem;
}

.color-picker {
  width: 32.5%;
  height: 45px;
  border-radius: 8px;
  border: 1px solid #414866;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.color-picker:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.dropdown {
  width: 32.5%;
  height: 45px;
  color: #fff;
  background: #414866;
  border: 1px solid #414866;
  border-radius: 8px;
  cursor: pointer;
  text-align: center;
  transition: background 0.3s ease, transform 0.3s ease;
}

.dropdown:hover {
  background: #6a2bff;
  transform: scale(1.05);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}


input[type="color"] {
  border: none;
  width: 32.5%;
  height: 40px;
  border-radius: 3px;
  cursor: pointer;
}

input[type="color"]::-webkit-color-swatch-wrapper {
  padding: 0;
}

input[type="color"]::-webkit-color-swatch {
  border: none;
}

a {
  text-decoration: none;
}

.light {
  border: 1px solid #414866;
}

.qr-text {
  padding: 1rem;
  display: block;
  background: #ffffff;
  border: 1px solid #414866;
  border-radius: 8px;
  width: 100%;
  margin: 0.5rem 0 1rem 0;
  color: #000;
  outline: none;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  font-size: 1rem;
  font-weight: 500;
}

.qr-text::placeholder {
  color: #8b92b7;
  font-weight: 500;
}

.qr-text:focus {
  border-color: #6a2bff;
  box-shadow: 0 0 10px rgba(106, 43, 255, 0.3);
  outline: none;
}

.qr-text:hover {
  border-color: #5632d5;
}

.enhanced-input {
  font-family: "Poppins", sans-serif;
}


.qr-code-container {
  display: flex;
  justify-content: center;
  align-items: center;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  padding: 20px;
  border: 1px solid #e0e0e0;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.qr-code-container:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

#qr-code img,
#qr-code canvas {
  max-width: 100% !important;
  max-height: 100% !important;
  border-radius: 8px;
}

.row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.sizes {
  width: 32.5%;
  height: 40px;
  color: #fff;
  background: #414866;
  border: 1px solid #414866;
  border-radius: 4px;
  outline: none;
  cursor: pointer;
}

.btn {
  color: #fff;
  min-width: 200px;
  padding: 14px;
  background: #6a2bff;
  border-radius: 4px;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.1rem;
  font-weight: 500;
  flex: 1;
  transition: background 0.3s ease;
}

.btn:hover {
  background: #5632d5;
}

.btn img {
  width: 20px;
  margin-left: 10px;
}

.share-btn {
  margin-left: 0.7rem;
}

.action-container {
  display: flex;
  margin: 1rem 0;
}

@media (max-width: 512px) {
  body {
    max-width: 100%;
    padding: 10px;
  }
  .qr-code-container {
    width: 95vw;
    height: 95vw;
    padding: 10px;
  }
  .btn {
    min-width: unset;
  }
}

@media (max-width: 350px) {
  .action-container {
    flex-direction: column;
  }
  .share-btn {
    margin-left: 0;
    margin-top: 0.7rem;
  }
}

footer {
  background-color: #414866;
  color: #ffffff;
  padding: 20px 15px;
  text-align: center;
  border-top: 2px solid #6a2bff;
}

.footer-content {
  max-width: 500px;
  margin: 0 auto;
}

.footer-content p {
  margin: 10px 0;
  font-size: 1rem;
  line-height: 1.5;
}

.footer-content a {
  color: #6a2bff;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

.footer-content a:hover {
  color: #9b5bff;
}

.footer-content strong {
  color: #ffffff;
}

@media (max-width: 600px) {
  .footer-content {
    padding: 10px;
  }
  
  .footer-content p {
    font-size: 0.9rem;
  }
}

.footer {
  margin-top: auto;
  text-align: center;
  font-size: 0.75rem;
  color: #999;
  background: #f4f4f9;
  padding: 1rem 0;
  border-top: 1px solid #e0e0e0;
  width: 100%;
}

.footer a {
  color: #6a2bff;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer a:hover {
  color: #414866;
}