/* === General Reset === */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Arial, sans-serif;
}

body {
  background: #f7f9fc;
  color: #333;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

/* === Container === */
.container {
  background: #fff;
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  width: 100%;
  max-width: 500px;
}

h1 {
  text-align: center;
  margin-bottom: 20px;
  font-size: 1.8rem;
  color: #075e54; /* WhatsApp green */
}

/* === Form Groups === */
.form-group {
  margin-bottom: 15px;
}

.form-group button a {
  text-decoration: none;
  color: white;
}

.copy-warning {
  animation: flash 2s infinite;
  font-size: 0.9rem;
  color: #ff0000; /* Red color for warning */
  text-align: center;
}

@keyframes flash {
  0% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
  100% {
    opacity: 1;
  }
}

label {
  display: block;
  margin-bottom: 5px;
  font-weight: bold;
  font-size: 0.95rem;
}

input[type="text"],
textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 1rem;
}

textarea {
  resize: none;
}

/* === Checkbox === */
.checkbox {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
}

.checkbox label {
  cursor: pointer;
  margin: 2px;
}

/* === Buttons === */
button {
  background: #25d366; /* WhatsApp bright green */
  color: white;
  padding: 10px 16px;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.3s;
}

button:hover {
  background: #1da851;
}

/* === Output Section === */
#output {
  margin-top: 20px;
  padding: 15px;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  background: #fafafa;
}

#walink {
  width: 100%;
  margin-top: 8px;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 0.95rem;
}

#copy-btn {
  margin-top: 10px;
  background: #007bff;
}

#copy-btn:hover {
  background: #0056b3;
}

/* === QR Section === */
#qr-section {
  margin-top: 20px;
  text-align: center;
}

#qr-download {
  display: inline-block;
  margin-top: 10px;
  color: #25d366;
  font-weight: bold;
  text-decoration: none;
}

#qr-download:hover {
  text-decoration: underline;
}

#copy-success {
  display: none;
  position: fixed;
  top: 45%;
  left: 40%;
  /* margin: 90px auto; */
  padding: 5px;
  width: 250px;
  height: 30px;
  text-align: center;
  border-radius: 10px;
  color: #201f1f;
  background: #25d3657d;
  font-weight: bold;
  text-decoration: none;
  animation: fadeInOut 3s forwards;
}

@keyframes fadeInOut {
  0% {
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  90% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}

/* Button Group */
.buttons {
  display: flex;
  justify-content: space-between;
}

#copy-success:hover {
  text-decoration: underline;
}

/* === Responsive === */
@media (max-width: 600px) {
  .container {
    padding: 15px;
  }

  h1 {
    font-size: 1.5rem;
  }

  button {
    width: 100%;
  }

  .buttons {
    flex-direction: column;
    gap: 7px;
  }

  #copy-success {
    top: 50%;
    left: 20vw;
  }
}
