/* Layout for preview area */
#preview-section {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 20px;
}

/* Preview container box */
.preview-box {
  background: #fff;
  padding: 16px;
  border-radius: 8px;
  border: 1px solid #ddd;
  width: 300px;
  min-height: 320px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
}

/* Titles inside preview box */
.preview-box h3 {
  margin-bottom: 10px;
  color: #444;
  width: 100%;
  text-align: center;
}

/* Info text under title */
.preview-box p {
  font-size: 13px;
  color: #555;
  margin-bottom: 10px;
  text-align: center;
  width: 100%;
}

/* Uploaded PNG image styling */
.preview-box img {
  max-width: 100%;
  max-height: 180px;
  object-fit: contain;
  border-radius: 4px;
  margin: 0 auto;
  display: block;
}

/* SVG container wrapper */
#svgContainer {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* SVG itself */
#svgContainer svg {
  max-width: 100%;
  height: auto;
  margin-top: 10px;
  border: 1px solid #ccc;
  background: #f9f9f9;
  display: block;
}

/* Download button style */
.download-btn {
  display: none;
  margin-top: 12px;
  background-color: #007bff;
  color: white;
  padding: 6px 14px;
  border-radius: 4px;
  text-decoration: none;
  font-size: 14px;
}

.download-btn:hover {
  background-color: #0056b3;
}

/* Loading animation */
.loading {
  font-size: 14px;
  color: #555;
  margin-top: 10px;
  animation: pulse 1.2s infinite;
}

@keyframes pulse {
  0% { opacity: 0.3; }
  50% { opacity: 1; }
  100% { opacity: 0.3; }
}

