/* General Styles */
body {
  font-family: 'Poppins', sans-serif;
  margin: 0;
  background: #f7f7f7;
  color: #222;
}

header {
  background: linear-gradient(90deg, #1e1e2f, #2a2a3e);
  color: #fff;
  text-align: center;
  padding: 1rem;
  font-size: 1.8rem;
  font-weight: 600;
  letter-spacing: 1px;
}

header span {
  color: #ffb700;
}

main {
  padding: 2rem;
  max-width: 900px;
  margin: 0 auto;
}

/* Upload Section */
.upload-section {
  background: white;
  border-radius: 14px;
  padding: 2rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  text-align: center;
  transition: 0.3s ease;
}

.upload-section.drag-over {
  border: 2px dashed #ffb700;
  background: #fff8e1;
}

.upload-section h3 {
  margin-bottom: 0.5rem;
  color: #222;
}

.upload-section p {
  color: #555;
  margin-bottom: 1rem;
}

.controls {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.controls input,
.controls select,
.controls button {
  padding: 0.8rem 1rem;
  font-size: 1rem;
  border-radius: 8px;
  border: 1px solid #ccc;
  outline: none;
}

.controls button {
  background: #ffb700;
  color: #000;
  font-weight: 600;
  cursor: pointer;
  transition: 0.3s;
}

.controls button:hover {
  background: #ffd24d;
}

/* Subscriber Options */
.subscriber-options {
  margin-top: 1rem;
  display: none;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  text-align: center;
}

.subscriber-options label,
.subscriber-options input,
.subscriber-options select {
  margin: 0.3rem 0;
  padding: 0.6rem 0.8rem;
  border-radius: 6px;
  border: 1px solid #ccc;
}

/* Preview Section */
.preview-section {
  text-align: center;
  margin-top: 2rem;
}

.preview-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 1rem;
  position: relative;
}

/* Image Card */
.image-card {
  position: relative;
  display: inline-block;
}

.image-card img {
  width: 260px;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.2);
}

/* Draggable Tag Overlay */
.drag-tag {
  position: absolute;
  top: 0;
  left: 0;
  width: 140px;
  height: 60px;
  background: rgba(0, 0, 0, 0.15);
  border: 2px dashed #ffb700;
  border-radius: 10px;
  cursor: grab;
  transition: 0.2s ease;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-weight: bold;
  font-family: 'Poppins', sans-serif;
}

.drag-tag:hover {
  transform: scale(1.05);
  background: rgba(255, 183, 0, 0.25);
}

.drag-tag:active {
  cursor: grabbing;
}

/* Download Button */
.download-btn {
  display: block;
  margin-top: 10px;
  background: #222;
  color: #fff;
  padding: 6px 12px;
  border-radius: 6px;
  text-decoration: none;
  font-size: 0.9rem;
}

/* Footer */
footer {
  text-align: center;
  padding: 1.5rem;
  background: #1e1e2f;
  color: #aaa;
  margin-top: 2rem;
}

/* Footer WhatsApp Link */
.footer-whatsapp {
  color: #25D366;
  text-decoration: none;
  font-weight: 600;
  margin-left: 5px;
  display: inline-flex;
  align-items: center;
}

.footer-whatsapp svg {
  margin-right: 5px;
  vertical-align: middle;
}

.footer-whatsapp:hover {
  text-decoration: underline;
}

/* Mini Tag Preview */
#tagPreviewContainer {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.8rem;
  margin-top: 1rem;
}

.tag-preview {
  width: 60px;
  height: 25px;
  border-radius: 6px;
  cursor: pointer;
  border: 2px solid transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s, border-color 0.2s;
}

.tag-preview.active {
  border-color: #222;
  transform: scale(1.1);
}

.tag-preview canvas {
  border-radius: 4px;
}

/* Watermark Preview */
#watermarkPreview {
  width: 50px;
  height: auto;
  margin-left: 10px;
  border-radius: 4px;
  border: 1px solid #ccc;
}
