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

body {
  font-family: "Poppins", sans-serif;
  background: linear-gradient(135deg, #6b7280, #3b82f6, #8b5cf6);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  overflow-x: hidden;
}

.container {
  background: rgba(255, 255, 255, 0.95);
  padding: 2rem;
  border-radius: 20px;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
  text-align: center;
  width: 100%;
  max-width: 450px;
  backdrop-filter: blur(10px);
  transition: transform 0.3s ease;
}

.container:hover {
  transform: translateY(-5px);
}

header h1 {
  color: #1f2937;
  font-size: 2.2rem;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

header .subtitle {
  color: #4b5563;
  font-size: 1rem;
  margin-bottom: 1.5rem;
}

.qr-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.input-group {
  position: relative;
}

input[type="text"] {
  width: 100%;
  padding: 12px 40px 12px 15px;
  border: 2px solid #e5e7eb;
  border-radius: 10px;
  font-size: 1rem;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

input[type="text"]:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 8px rgba(59, 130, 246, 0.3);
}

.input-icon {
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: #6b7280;
}

.options {
  display: flex;
  align-items: center;
  gap: 1rem;
  justify-content: center;
}

.options label {
  color: #1f2937;
  font-size: 0.9rem;
}

.options select {
  padding: 8px;
  border: 2px solid #e5e7eb;
  border-radius: 8px;
  font-size: 0.9rem;
  transition: border-color 0.3s ease;
}

.options select:focus {
  outline: none;
  border-color: #3b82f6;
}

.btn-generate {
  background: linear-gradient(90deg, #3b82f6, #8b5cf6);
  color: white;
  border: none;
  padding: 12px 24px;
  font-size: 1rem;
  border-radius: 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: transform 0.2s ease, box-shadow 0.3s ease;
}

.btn-generate:hover {
  transform: scale(1.05);
  box-shadow: 0 5px 15px rgba(59, 130, 246, 0.4);
}

.preview {
  margin-top: 2rem;
}

.preview h3 {
  color: #1f2937;
  font-size: 1.2rem;
  margin-bottom: 1rem;
}

.preview img {
  max-width: 100%;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.btn-download {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #10b981;
  color: white;
  padding: 10px 20px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 0.9rem;
  margin-top: 1rem;
  transition: background 0.3s ease;
}

.btn-download:hover {
  background: #059669;
}

footer {
  margin-top: 2rem;
  font-size: 0.85rem;
  color: #6b7280;
}

footer .fa-heart {
  color: #ef4444;
}

.social-links {
  margin-top: 1rem;
  display: flex;
  justify-content: center;
  gap: 1rem;
}

.social-links a {
  color: #6b7280;
  font-size: 1.2rem;
  transition: color 0.3s ease;
}

.social-links a:hover {
  color: #3b82f6;
}

/* Responsive Design */
@media (max-width: 500px) {
  .container {
    padding: 1.5rem;
    max-width: 90%;
  }

  header h1 {
    font-size: 1.8rem;
  }

  .btn-generate {
    padding: 10px 20px;
    font-size: 0.9rem;
  }
}

/* ----- QR Container ------  */

.qr-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 50px;
  font-family: sans-serif;
}

#qr-img {
  max-width: 300px;
  margin: 20px;
  border-radius: 30px;
}

.button-group {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-top: 20px;
}

.button-group a {
  padding: 10px 20px;
  background-color: #120f1f;
  color: white;
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  transition: background-color 0.2s ease;
}

.button-group a:hover {
  background-color: #0e004f;
}
