/* ═══════════════════════════════════════════════════
   Word to PDF Converter — Stylesheet
   Drop this file into /assets/converter.css
═══════════════════════════════════════════════════ */

/* ── Wrapper ── */
.wtpc-wrap {
    max-width: 620px;
    margin: 40px auto;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: #1e1e2e;
}

/* ── Header ── */
.wtpc-header {
    text-align: center;
    margin-bottom: 32px;
}
.wtpc-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 16px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(79, 70, 229, 0.25);
}
.wtpc-icon svg { display: block; width: 100%; height: 100%; }
.wtpc-title {
    font-size: 28px;
    font-weight: 700;
    margin: 0 0 8px;
    color: #1e1e2e;
    letter-spacing: -0.5px;
}
.wtpc-subtitle {
    font-size: 15px;
    color: #6b7280;
    margin: 0;
    line-height: 1.6;
}

/* ── Upload Drop Zone ── */
.wtpc-upload-zone {
    border: 2.5px dashed #c7d2fe;
    border-radius: 16px;
    background: #f5f7ff;
    padding: 48px 32px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}
.wtpc-upload-zone:hover,
.wtpc-upload-zone.wtpc-drag-over {
    border-color: #4f46e5;
    background: #eef2ff;
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(79, 70, 229, 0.12);
}
.wtpc-upload-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 16px;
}
.wtpc-upload-icon svg { display: block; width: 100%; height: 100%; }
.wtpc-drop-text {
    font-size: 17px;
    font-weight: 600;
    color: #374151;
    margin: 0 0 6px;
}
.wtpc-drop-sub {
    font-size: 13px;
    color: #9ca3af;
    margin: 0 0 14px;
}
.wtpc-browse-btn {
    display: inline-block;
    padding: 10px 36px;
    background: #4f46e5;
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s;
    letter-spacing: 0.2px;
}
.wtpc-browse-btn:hover { background: #4338ca; }
.wtpc-drop-hint {
    font-size: 12px;
    color: #9ca3af;
    margin: 14px 0 0;
}

/* ── File Info Card ── */
.wtpc-file-info {
    display: flex;
    align-items: center;
    gap: 14px;
    background: #fff;
    border: 1.5px solid #e5e7eb;
    border-radius: 12px;
    padding: 14px 18px;
    margin-top: 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.wtpc-file-icon { width: 40px; height: 40px; flex-shrink: 0; }
.wtpc-file-icon svg { display: block; width: 100%; height: 100%; }
.wtpc-file-meta { flex: 1; min-width: 0; }
.wtpc-file-name {
    font-size: 14px;
    font-weight: 600;
    color: #111827;
    margin: 0 0 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.wtpc-file-size {
    font-size: 12px;
    color: #9ca3af;
    margin: 0;
}
.wtpc-remove-btn {
    background: none;
    border: none;
    color: #9ca3af;
    font-size: 18px;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 6px;
    transition: color 0.15s, background 0.15s;
    flex-shrink: 0;
}
.wtpc-remove-btn:hover { color: #ef4444; background: #fef2f2; }

/* ── Convert Button ── */
.wtpc-convert-btn {
    display: block;
    width: 100%;
    margin-top: 18px;
    padding: 15px 0;
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    letter-spacing: 0.3px;
    transition: opacity 0.2s, transform 0.15s;
    box-shadow: 0 4px 16px rgba(79, 70, 229, 0.35);
}
.wtpc-convert-btn:hover {
    opacity: 0.92;
    transform: translateY(-1px);
}
.wtpc-convert-btn:active { transform: translateY(0); }
.wtpc-convert-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* ── Progress ── */
.wtpc-progress {
    margin-top: 20px;
    text-align: center;
}
.wtpc-progress-bar {
    height: 8px;
    background: #e5e7eb;
    border-radius: 99px;
    overflow: hidden;
    margin-bottom: 10px;
}
.wtpc-progress-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #4f46e5, #7c3aed);
    border-radius: 99px;
    transition: width 0.4s ease;
    animation: wtpc-shimmer 1.5s infinite linear;
    background-size: 200% 100%;
}
@keyframes wtpc-shimmer {
    0%   { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}
.wtpc-progress-label {
    font-size: 13px;
    color: #6b7280;
    margin: 0;
}

/* ── Success State ── */
.wtpc-success {
    text-align: center;
    padding: 32px 0 16px;
    animation: wtpc-fadein 0.4s ease;
}
.wtpc-success-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 16px;
}
.wtpc-success-icon svg { display: block; width: 100%; height: 100%; }
.wtpc-success-title {
    font-size: 22px;
    font-weight: 700;
    color: #111827;
    margin: 0 0 6px;
}
.wtpc-success-sub {
    font-size: 14px;
    color: #6b7280;
    margin: 0 0 24px;
}
.wtpc-download-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 32px;
    background: #10b981;
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    border-radius: 10px;
    text-decoration: none;
    transition: background 0.2s, transform 0.15s;
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.3);
}
.wtpc-download-btn:hover {
    background: #059669;
    color: #fff;
    transform: translateY(-1px);
    text-decoration: none;
}
.wtpc-again-btn {
    display: block;
    margin: 14px auto 0;
    background: none;
    border: none;
    color: #4f46e5;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    text-decoration: underline;
    padding: 0;
}
.wtpc-again-btn:hover { color: #4338ca; }

/* ── Error State ── */
.wtpc-error {
    text-align: center;
    padding: 32px 0 16px;
    animation: wtpc-fadein 0.4s ease;
}
.wtpc-error-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 16px;
}
.wtpc-error-icon svg { display: block; width: 100%; height: 100%; }
.wtpc-error-title {
    font-size: 20px;
    font-weight: 700;
    color: #111827;
    margin: 0 0 6px;
}
.wtpc-error-msg {
    font-size: 14px;
    color: #ef4444;
    margin: 0 0 20px;
}
.wtpc-try-again-btn {
    padding: 11px 28px;
    background: #fff;
    color: #4f46e5;
    border: 2px solid #4f46e5;
    font-size: 14px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
}
.wtpc-try-again-btn:hover {
    background: #4f46e5;
    color: #fff;
}

/* ── Features Strip ── */
.wtpc-features {
    display: flex;
    justify-content: center;
    gap: 28px;
    margin-top: 28px;
    padding-top: 20px;
    border-top: 1px solid #f3f4f6;
    flex-wrap: wrap;
}
.wtpc-feature {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 13px;
    color: #6b7280;
}
.wtpc-feature-icon { font-size: 15px; }
.wtpc-feat-secure { color: #4f46e5; }
.wtpc-feat-fast   { color: #f59e0b; }
.wtpc-feat-free   { color: #10b981; font-weight: 700; }

/* ── Animation ── */
@keyframes wtpc-fadein {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ── Responsive ── */
@media (max-width: 480px) {
    .wtpc-title  { font-size: 22px; }
    .wtpc-upload-zone { padding: 32px 16px; }
    .wtpc-features { gap: 16px; }
    .wtpc-convert-btn { font-size: 15px; }
}
