/* ── Watermark Pro — Frontend Styles ───────────────────────────────────────── */

.wmp-wrap {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, sans-serif;
  max-width: 640px;
  margin: 2rem auto;
  padding: 0 1rem;
  box-sizing: border-box;
}

/* ── Title ─────────────────────────────────────────────────────────────────── */
.wmp-title {
  font-size: 1.5rem;
  font-weight: 600;
  text-align: center;
  margin-bottom: 1.5rem;
  color: #1e1e2e;
}

/* ── Drop Zone ─────────────────────────────────────────────────────────────── */
.wmp-dropzone {
  position: relative;
  border: 2.5px dashed #b0b8d0;
  border-radius: 16px;
  background: #f7f9ff;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
  outline: none;
}

.wmp-dropzone:hover,
.wmp-dropzone:focus,
.wmp-dropzone.wmp-drag-over {
  border-color: #4f6ef7;
  background: #eef1ff;
}

.wmp-dropzone-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 3rem 1.5rem;
  text-align: center;
  pointer-events: none;
}

.wmp-upload-icon {
  width: 56px;
  height: 56px;
  color: #4f6ef7;
  margin-bottom: 1rem;
}

.wmp-dropzone-text {
  font-size: 1.05rem;
  font-weight: 500;
  color: #3b3f5c;
  margin: 0 0 0.3rem;
}

.wmp-dropzone-sub {
  font-size: 0.85rem;
  color: #8a8fa8;
  margin: 0 0 0.6rem;
}

.wmp-browse-btn {
  display: inline-block;
  padding: 0.45rem 1.4rem;
  background: #4f6ef7;
  color: #fff;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  pointer-events: none;
  margin-bottom: 0.9rem;
}

.wmp-dropzone-formats {
  font-size: 0.78rem;
  color: #a0a8c0;
  margin: 0;
}

.wmp-file-input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

/* ── Preview Area ──────────────────────────────────────────────────────────── */
.wmp-preview-area {
  margin-top: 1.5rem;
  text-align: center;
}

.wmp-preview-img-wrap {
  position: relative;
  display: inline-block;
}

.wmp-preview-img-wrap img {
  max-width: 100%;
  max-height: 320px;
  border-radius: 12px;
  border: 1px solid #dde3f5;
  box-shadow: 0 4px 16px rgba(79, 110, 247, 0.1);
}

.wmp-remove-btn {
  position: absolute;
  top: -10px;
  right: -10px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: none;
  background: #ff4d6d;
  color: #fff;
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  transition: background 0.15s;
}
.wmp-remove-btn:hover { background: #e60040; }

.wmp-preview-name {
  font-size: 0.85rem;
  color: #666;
  margin: 0.6rem 0 1rem;
}

/* ── Submit Button ─────────────────────────────────────────────────────────── */
.wmp-submit-btn {
  display: inline-block;
  padding: 0.75rem 2.2rem;
  background: #4f6ef7;
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
  box-shadow: 0 4px 12px rgba(79, 110, 247, 0.35);
}
.wmp-submit-btn:hover  { background: #3a56e8; }
.wmp-submit-btn:active { transform: scale(0.97); }

/* ── Processing Step ───────────────────────────────────────────────────────── */
.wmp-step-processing {
  text-align: center;
  padding: 4rem 1rem;
}

.wmp-spinner-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.2rem;
}

.wmp-spinner {
  width: 52px;
  height: 52px;
  border: 5px solid #e0e6ff;
  border-top-color: #4f6ef7;
  border-radius: 50%;
  animation: wmp-spin 0.8s linear infinite;
}

@keyframes wmp-spin {
  to { transform: rotate(360deg); }
}

.wmp-processing-msg {
  font-size: 1rem;
  color: #3b3f5c;
  margin: 0;
}

/* ── Done Step ─────────────────────────────────────────────────────────────── */
.wmp-step-done {
  text-align: center;
  padding: 3rem 1rem;
}

.wmp-done-icon {
  font-size: 3rem;
  margin-bottom: 0.8rem;
}

.wmp-done-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: #1e1e2e;
  margin: 0 0 0.5rem;
}

.wmp-done-note {
  font-size: 0.85rem;
  color: #8a8fa8;
  margin: 0 0 1.5rem;
}

.wmp-download-btn {
  display: inline-block;
  padding: 0.8rem 2.5rem;
  background: #22c55e;
  color: #fff;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s;
  box-shadow: 0 4px 12px rgba(34, 197, 94, 0.35);
}
.wmp-download-btn:hover {
  background: #16a34a;
  color: #fff;
}

.wmp-again-btn {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.5rem 1.5rem;
  background: transparent;
  color: #4f6ef7;
  border: 1.5px solid #4f6ef7;
  border-radius: 8px;
  font-size: 0.9rem;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.wmp-again-btn:hover {
  background: #4f6ef7;
  color: #fff;
}

/* ── Error Banner ──────────────────────────────────────────────────────────── */
.wmp-error-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 1.2rem;
  padding: 0.8rem 1rem;
  background: #fff1f2;
  border: 1px solid #fda4af;
  border-radius: 8px;
  color: #be123c;
  font-size: 0.9rem;
}

.wmp-error-close {
  background: none;
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
  color: #be123c;
  line-height: 1;
  padding: 0 0.2rem;
}

/* ── Responsive ────────────────────────────────────────────────────────────── */
@media (max-width: 480px) {
  .wmp-dropzone-inner { padding: 2rem 1rem; }
  .wmp-submit-btn,
  .wmp-download-btn { width: 100%; }
}
