#qr-generator {
  background-color: #fff;
  border: 5px solid #AE2573;
  border-radius: 10px;
  padding: 2em;
  max-width: 400px;
  margin: 2em auto;
  text-align: center;
  font-family: sans-serif;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.05);
}

input#qr-url::placeholder {
  color: #563d826b;
}

#qr-url {
  width: 100%;
  padding: 0.8em;
  font-size: 1em;
  border: 1px solid #ccc;
  border-radius: 6px;
  margin-bottom: 1em;
}

#generate-qr {
  background-color: #AE2573;
  color: #fff;
  padding: 0.8em 1.2em;
  border: none;
  border-radius: 6px;
  font-size: 1em;
  cursor: pointer;
  transition: background-color 0.3s ease;
}
#generate-qr:hover {
  background-color: #92205F;
}

.qr-spinner {
  display: flex;
  align-items: center;
  gap: 0.5em;
  margin-top: 1em;
  font-size: 0.9em;
  color: #555;
}

.spinner-icon {
  width: 20px;
  height: 20px;
  border: 3px solid #ccc;
  border-top: 3px solid #AE2573;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
	transform: rotate(360deg);
  }
}


#qr-result img {
  margin: 1em 0;
  border-radius: 6px;
}

.qr-actions {
  display: flex;
  justify-content: center;
  gap: 1em;
  margin-top: 0.5em;
}

.qr-btn {
  all: unset;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: #563D82;
  color: #fff;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  transition: background-color 0.3s ease;
  cursor: pointer;
  text-decoration: none;
  padding: 0;
}
.qr-btn:hover {
  background-color: #452E6E;
}
.qr-btn svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.share-popup {
  display: none;
  position: fixed;
  z-index: 9999;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.6);
}

.share-popup-content {
  background: #fff;
  color: #563D82;
  border-radius: 10px;
  max-width: 320px;
  margin: 20% 35%;
  padding: 1.5em;
  text-align: center;
  position: relative;
  animation: fadeIn 0.3s ease-in-out;
}

.qr-actions a#download-qr.qr-btn:hover {
  color: #fff;
}

.share-close {
  background: transparent;
  border: none;
  font-size: 1.5em;
  position: absolute;
  right: 0.75em;
  top: 0.5em;
  cursor: pointer;
  color: #AE2573;
}

.share-close:hover {
  background: transparent;
  color: #563D82;
}

.share-icons {
  display: flex;
  justify-content: space-around;
  margin-top: 1em;
}

.share-icons a {
  background: #563D82;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-decoration: none;
  transition: background 0.3s ease;
}

.share-icons a:hover {
  background: #AE2573;
}

.share-icons svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}
#copy-url-message {
  font-size: 0.9rem;
  transition: opacity 0.3s ease;
  position:absolute;
  top: -5px;
}