:root {
  --bg:#0b0f1a;
  --text:#fff;
  --card:rgba(255,255,255,0.08);
  --accent:#7c3aed;
}

.light {
  --bg:#f8fafc;
  --text:#020617;
  --card:#fff;
}

* { box-sizing:border-box; }

body {
  margin:0;
  background:var(--bg);
  color:var(--text);
  font-family:Arial;
  transition:.3s;
}

#themeToggle {
  position:fixed; top:15px; right:15px;
}

header { text-align:center; padding:40px; }

.grid {
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(280px,1fr));
  gap:20px;
  padding:20px;
}

.card {
  background: var(--card);
  padding: 20px;
  border-radius: 18px;
  transition: transform 0.3s ease;
  animation: glowPulse 3s ease-in-out infinite;
}

@keyframes glowPulse {
  0% {
    box-shadow: 0 0 8px rgba(124, 58, 237, 0.4),
                0 0 16px rgba(124, 58, 237, 0.2);
  }
  50% {
    box-shadow: 0 0 16px rgba(124, 58, 237, 0.7),
                0 0 32px rgba(124, 58, 237, 0.4);
  }
  100% {
    box-shadow: 0 0 8px rgba(124, 58, 237, 0.4),
                0 0 16px rgba(124, 58, 237, 0.2);
  }
}

.card:hover {
  transform: translateY(-6px) scale(1.01);
  animation-duration: 1.5s;
  transform:translateY(-6px);
}


.drop-zone {
  border:2px dashed var(--accent);
  padding:20px;
  text-align:center;
  cursor:pointer;
  margin-bottom:10px;
}

.progress {
  width:100%;
  height:6px;
  background:#333;
  border-radius:6px;
  margin:6px 0;
}

.progress span {
  display:block;
  height:100%;
  width:0%;
  background:var(--accent);
  border-radius:6px;
}

button {
  width:100%;
  padding:10px;
  margin-top:8px;
  border:none;
  background:var(--accent);
  color:#fff;
  border-radius:12px;
  cursor:pointer;
}

footer { text-align:center; padding:20px; opacity:.7; }

.image-output {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.image-card {
  background: rgba(255,255,255,0.05);
  padding: 10px;
  border-radius: 10px;
}

.image-card canvas {
  max-width: 100%;
  border-radius: 8px;
}

.image-card button {
  margin-top: 6px;
  width: 100%;
}

.coming-soon {
  border: 2px dashed var(--accent);
  opacity: 0.8;
  text-align: center;
  position: relative;
  animation: pulseGlow 2s infinite;
}

.coming-soon-content {
  padding: 30px 10px;
}

.badge {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 13px;
  margin-bottom: 12px;
}

.coming-soon p {
  font-size: 14px;
  opacity: 0.85;
}

/* Subtle animation */
@keyframes pulseGlow {
  0% {
    box-shadow: 0 0 0 rgba(124, 58, 237, 0.4);
  }
  50% {
    box-shadow: 0 0 20px rgba(124, 58, 237, 0.6);
  }
  100% {
    box-shadow: 0 0 0 rgba(124, 58, 237, 0.4);
  }
}

.coming-soon {
  pointer-events: none;
}