@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@600;700;800;900&family=Poppins:wght@400;500;600&family=JetBrains+Mono:wght@400;500;600&display=swap');

/* ============================================
   Word to PDF Converter - by Yaseen
   ============================================ */

.wtp-wrapper {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  padding: 20px;
  font-family: 'Poppins', sans-serif;
  background: #ffffff;
  box-sizing: border-box;
}

/* Header */
.wtp-header { text-align: center; margin-bottom: 28px; }

.wtp-badge {
  display: inline-block;
  background: #ffffff;
  border: 1.5px solid #0EA5E9;
  color: #0EA5E9;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  padding: 5px 16px;
  border-radius: 100px;
  margin-bottom: 14px;
}

.wtp-title {
  font-family: 'Montserrat', sans-serif !important;
  font-size: 2.2rem !important;
  font-weight: 900 !important;
  color: #0f172a !important;
  margin: 0 0 10px 0 !important;
  padding: 0 !important;
  line-height: 1.1 !important;
  letter-spacing: -0.5px;
}

.wtp-subtitle {
  color: #64748b;
  font-size: 0.88rem;
  margin: 0 auto !important;
  max-width: 560px;
  line-height: 1.6;
}

/* Layout */
.wtp-layout {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 24px;
}

/* Card */
.wtp-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  padding: 28px;
  box-shadow: 0 2px 20px rgba(14,165,233,0.07);
  box-sizing: border-box;
}

/* Quick Info */
.wtp-quick-section {
  border: 1.5px dashed #cbd5e1;
  border-radius: 14px;
  padding: 14px 18px;
  margin-bottom: 24px;
  background: #fafcff;
}

.wtp-quick-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: #0EA5E9;
  margin: 0 0 10px 0 !important;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.wtp-info-pills { display: flex; flex-wrap: wrap; gap: 8px; }

.wtp-pill {
  padding: 6px 14px;
  border-radius: 100px;
  background: #f0f9ff;
  border: 1px solid #bae6fd;
  color: #0369a1;
  font-size: 0.78rem;
  font-weight: 600;
  font-family: 'Poppins', sans-serif;
}

/* Step */
.wtp-step { margin-bottom: 20px; }

.wtp-step-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 12px;
}

.wtp-step-num {
  width: 26px; height: 26px;
  background: #0EA5E9;
  color: #ffffff;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.78rem;
  font-weight: 800;
  flex-shrink: 0;
}

/* Upload Zone */
.wtp-upload-zone {
  border: 2.5px dashed #0EA5E9;
  border-radius: 16px;
  padding: 40px 20px;
  text-align: center;
  cursor: pointer;
  background: #f0f9ff;
  transition: all 0.2s;
}

.wtp-upload-zone:hover, .wtp-upload-zone.wtp-drag-over {
  background: #e0f2fe;
  border-color: #0284C7;
  transform: scale(1.01);
}

.wtp-upload-icon { margin-bottom: 10px; }

.wtp-upload-text {
  font-size: 0.9rem;
  color: #0369a1;
  font-weight: 600;
  line-height: 1.6;
}

.wtp-upload-text span { color: #94a3b8; font-weight: 400; font-size: 0.8rem; }

/* Field Error */
.wtp-field-error {
  font-size: 0.8rem;
  color: #dc2626;
  font-weight: 600;
  margin-top: 8px !important;
  margin-bottom: 0 !important;
  font-family: 'Poppins', sans-serif;
}

/* File Preview */
.wtp-file-preview {
  display: flex;
  align-items: center;
  gap: 14px;
  background: #f0fdf4;
  border: 1.5px solid #86efac;
  border-radius: 12px;
  padding: 14px 16px;
  margin-bottom: 16px;
}

.wtp-file-icon { flex-shrink: 0; }

.wtp-file-info { flex: 1; }

.wtp-file-name {
  font-weight: 700;
  font-size: 0.88rem;
  color: #166534;
  font-family: 'JetBrains Mono', monospace;
  word-break: break-all;
}

.wtp-file-size {
  font-size: 0.75rem;
  color: #4ade80;
  margin-top: 2px;
}

.wtp-remove-btn {
  background: none;
  border: none;
  color: #dc2626;
  font-size: 1rem;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
  transition: background 0.15s;
}

.wtp-remove-btn:hover { background: #fee2e2; }

/* Convert Button */
.wtp-calc-btn {
  width: 100%;
  padding: 17px;
  border-radius: 14px;
  border: none;
  background: #0EA5E9;
  color: #ffffff;
  font-family: 'Montserrat', sans-serif;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.25s;
  box-shadow: 0 6px 22px rgba(14,165,233,0.35);
  box-sizing: border-box;
}

.wtp-calc-btn:hover { background: #0284C7; transform: translateY(-2px); box-shadow: 0 10px 30px rgba(14,165,233,0.4); }
.wtp-calc-btn:active { transform: translateY(0); }

/* Progress */
.wtp-progress { margin-top: 4px; }

.wtp-progress-bar {
  width: 100%;
  height: 10px;
  background: #e2e8f0;
  border-radius: 100px;
  overflow: hidden;
  margin-bottom: 10px;
}

.wtp-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #0EA5E9, #38bdf8);
  border-radius: 100px;
  transition: width 0.6s ease;
  width: 0%;
}

.wtp-progress-text {
  font-size: 0.82rem;
  color: #64748b;
  font-family: 'Poppins', sans-serif;
  text-align: center;
  font-style: italic;
}

/* Result Card */
.wtp-result-card { text-align: center; }

.wtp-result-hero { margin-bottom: 24px; }

.wtp-result-icon {
  font-size: 3rem;
  color: #16a34a;
  margin-bottom: 8px;
}

.wtp-result-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.6rem;
  font-weight: 900;
  color: #0f172a;
  margin-bottom: 6px;
}

.wtp-result-filename {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.85rem;
  color: #64748b;
  word-break: break-all;
}

/* Download Button */
.wtp-download-btn {
  display: block;
  width: 100%;
  padding: 16px;
  border-radius: 14px;
  border: none;
  background: #0EA5E9;
  color: #ffffff;
  font-family: 'Montserrat', sans-serif;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 6px 22px rgba(14,165,233,0.3);
  text-decoration: none;
  box-sizing: border-box;
  margin-bottom: 12px;
}

.wtp-download-btn:hover { background: #0284C7; transform: translateY(-2px); color: #ffffff; text-decoration: none; }

/* Reset */
.wtp-reset-btn {
  display: block;
  width: 100%;
  padding: 12px;
  border-radius: 10px;
  border: 2px solid #0EA5E9;
  background: transparent;
  color: #0EA5E9;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.2s;
  box-sizing: border-box;
}

.wtp-reset-btn:hover { background: #0EA5E9; color: #ffffff; }

/* Features */
.wtp-features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 4px;
}

.wtp-feature {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 20px 14px;
  text-align: center;
  box-shadow: 0 2px 10px rgba(0,0,0,0.04);
  transition: transform 0.2s;
}

.wtp-feature:hover { transform: translateY(-2px); }

.wtp-feat-icon { margin-bottom: 8px; }

.wtp-feat-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.82rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 4px;
}

.wtp-feat-desc {
  font-size: 0.75rem;
  color: #94a3b8;
  font-family: 'Poppins', sans-serif;
  line-height: 1.5;
}

/* Responsive */
@media (max-width: 640px) {
  .wtp-title    { font-size: 1.7rem !important; }
  .wtp-features { grid-template-columns: 1fr 1fr; }
  .wtp-card     { padding: 18px; }
}

/* SVG icon sizing */
.wtp-wrapper svg { max-width: 100%; }
.wtp-upload-icon { width: 48px; height: 48px; margin: 0 auto 10px; }
.wtp-upload-icon svg { width: 48px !important; height: 48px !important; max-width: 48px; max-height: 48px; color: #0ea5e9; display: block; }
.wtp-file-icon { width: 28px; height: 28px; flex-shrink: 0; }
.wtp-file-icon svg { width: 28px !important; height: 28px !important; max-width: 28px; max-height: 28px; color: #0ea5e9; display: block; }
.wtp-remove-btn svg { width: 14px !important; height: 14px !important; max-width: 14px; max-height: 14px; display: block; }
.wtp-feat-icon { width: 32px; height: 32px; margin: 0 auto 8px; }
.wtp-feat-icon svg { width: 32px !important; height: 32px !important; max-width: 32px; max-height: 32px; color: #0ea5e9; display: block; }
.wtp-result-icon svg { width: 36px !important; height: 36px !important; max-width: 36px; max-height: 36px; color: #ffffff; display: block; margin: 0 auto; }
.wtp-calc-btn svg { width: 18px !important; height: 18px !important; max-width: 18px; max-height: 18px; display: inline-block; vertical-align: middle; margin-right: 6px; flex-shrink: 0; }
.wtp-download-btn svg { width: 18px !important; height: 18px !important; max-width: 18px; max-height: 18px; display: inline-block; vertical-align: middle; margin-right: 6px; flex-shrink: 0; }
.wtp-pill svg { width: 13px !important; height: 13px !important; max-width: 13px; max-height: 13px; display: inline-block; vertical-align: middle; margin-right: 3px; flex-shrink: 0; }

/* Dashicons sizing */
.wtp-wrapper .dashicons { font-family: dashicons !important; speak: never; font-style: normal; font-weight: 400; font-variant: normal; text-transform: none; line-height: 1; -webkit-font-smoothing: antialiased; }
.wtp-upload-icon .dashicons { font-size: 52px; width: 52px; height: 52px; color: #0ea5e9; display: block; }
.wtp-file-icon .dashicons { font-size: 28px; width: 28px; height: 28px; color: #0ea5e9; }
.wtp-remove-btn .dashicons { font-size: 18px; width: 18px; height: 18px; }
.wtp-feat-icon .dashicons { font-size: 36px; width: 36px; height: 36px; color: #0ea5e9; display: block; margin: 0 auto; }
.wtp-result-icon .dashicons { font-size: 40px; width: 40px; height: 40px; color: #ffffff; }
.wtp-calc-btn .dashicons { font-size: 18px; width: 18px; height: 18px; vertical-align: middle; margin-right: 4px; }
.wtp-download-btn .dashicons { font-size: 18px; width: 18px; height: 18px; vertical-align: middle; margin-right: 4px; }
.wtp-pill .dashicons { font-size: 14px; width: 14px; height: 14px; vertical-align: middle; margin-right: 3px; }
