/* ═══════════════════════════════════════════
   Equalza — PDF to Word  (v1.0.0)
   ═══════════════════════════════════════════ */

.tool-card.p2w {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding: 32px 24px;
  max-width: 640px;
  margin: 0 auto;
}

/* ─── Upload Zone ──────────────────────────── */
.p2w-upload-zone {
  width: 100%;
  border: 2px dashed rgba(0, 210, 106, 0.35);
  border-radius: 16px;
  padding: 48px 24px;
  text-align: center;
  cursor: pointer;
  transition: border-color .25s, background .25s, transform .15s;
  background: rgba(0, 210, 106, 0.03);
}
.p2w-upload-zone:hover,
.p2w-upload-zone.p2w-dragover {
  border-color: #00d26a;
  background: rgba(0, 210, 106, 0.08);
  transform: scale(1.01);
}
.p2w-drop-content { pointer-events: none; }
.p2w-drop-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 16px;
  color: #00d26a;
}
.p2w-drop-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 6px;
}
.p2w-drop-subtitle {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.5);
  margin-bottom: 8px;
}
.p2w-drop-formats {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.35);
}

/* ─── File Info Card ───────────────────────── */
.p2w-file-info { width: 100%; }
.p2w-file-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  border-radius: 12px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
}
.p2w-file-icon { flex-shrink: 0; }
.p2w-file-details { flex: 1; min-width: 0; }
.p2w-file-name {
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.p2w-file-size {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.45);
  margin-top: 2px;
}
.p2w-remove-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: rgba(255,255,255,0.4);
  padding: 4px;
  border-radius: 6px;
  transition: color .2s, background .2s;
}
.p2w-remove-btn:hover {
  color: #ff4757;
  background: rgba(255,71,87,0.1);
}

/* ─── Processing ───────────────────────────── */
.p2w-processing {
  text-align: center;
  padding: 40px 0;
}
.p2w-spinner {
  width: 44px;
  height: 44px;
  border: 3px solid rgba(255,255,255,0.1);
  border-top-color: #00d26a;
  border-radius: 50%;
  margin: 0 auto 16px;
  animation: p2w-spin 0.8s linear infinite;
}
@keyframes p2w-spin { to { transform: rotate(360deg); } }
.p2w-processing-text {
  font-size: 1.05rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 6px;
}
.p2w-processing-sub {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.4);
}

/* ─── Success ──────────────────────────────── */
.p2w-success {
  text-align: center;
  padding: 24px 0;
}
.p2w-success-icon { margin: 0 auto 12px; }
.p2w-success-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: #00c853;
  margin-bottom: 6px;
}
.p2w-remaining {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.45);
}

/* ─── Error ────────────────────────────────── */
.p2w-error {
  width: 100%;
  padding: 14px 18px;
  border-radius: 10px;
  background: rgba(255,71,87,0.1);
  border: 1px solid rgba(255,71,87,0.3);
}
.p2w-error-text {
  color: #ff6b81;
  font-size: 0.9rem;
  font-weight: 500;
}

/* ─── Action Buttons ───────────────────────── */
.p2w-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  width: 100%;
}
.p2w-btn-primary {
  display: inline-flex !important;
  align-items: center;
  gap: 8px;
  padding: 13px 28px !important;
  border: none !important;
  border-radius: 12px !important;
  font-size: 0.95rem !important;
  font-weight: 700 !important;
  cursor: pointer;
  transition: transform .15s, box-shadow .2s, opacity .2s;
  background: linear-gradient(135deg, #00d26a 0%, #00b85c 100%) !important;
  color: #fff !important;
  box-shadow: 0 4px 15px rgba(0,210,106,0.35);
}
.p2w-btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(0,210,106,0.45);
}
.p2w-btn-primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none !important;
}
.p2w-btn-ghost {
  display: inline-flex !important;
  align-items: center;
  gap: 8px;
  padding: 13px 28px !important;
  border: 1px solid rgba(255,255,255,0.15) !important;
  border-radius: 12px !important;
  font-size: 0.95rem !important;
  font-weight: 600 !important;
  cursor: pointer;
  background: transparent !important;
  color: rgba(255,255,255,0.7) !important;
  transition: border-color .2s, color .2s;
}
.p2w-btn-ghost:hover {
  border-color: rgba(255,255,255,0.35) !important;
  color: #fff !important;
}

/* ─── Rate Limit / Privacy ─────────────────── */
.p2w-limit-info,
.p2w-privacy {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.35);
}
.p2w-limit-info svg,
.p2w-privacy svg {
  flex-shrink: 0;
  opacity: 0.5;
}

/* ─── Responsive ───────────────────────────── */
@media (max-width: 480px) {
  .tool-card.p2w { padding: 20px 16px; }
  .p2w-upload-zone { padding: 36px 16px; }
  .p2w-actions { flex-direction: column; }
  .p2w-btn-primary,
  .p2w-btn-ghost { width: 100%; justify-content: center; }
}
