.pdf-api-wrapper {
    max-width: 850px;
    margin: 40px auto;
    font-family: 'Inter', -apple-system, sans-serif;
}

.pdf-ui-card {
    background: #fff;
    padding: 50px;
    border-radius: 30px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
    display: none;
    text-align: center;
    animation: slideIn 0.5s ease-out;
}

.pdf-ui-card.active { display: block; }

@keyframes slideIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

.api-badge {
    background: #fff1f2; color: #e11d48;
    padding: 5px 12px; border-radius: 20px;
    font-size: 11px; font-weight: 800; text-transform: uppercase;
}

.pdf-ui-header h2 { font-size: 34px; color: #1e293b; margin: 15px 0 8px; font-weight: 900; }
.pdf-ui-header p { color: #64748b; font-size: 16px; margin-bottom: 40px; }

.pdf-ui-dropzone {
    border: 3px dashed #fda4af;
    padding: 60px 20px;
    border-radius: 24px;
    background: #fffcfc;
    transition: 0.3s;
}

.pdf-ui-dropzone:hover { border-color: #e11d48; background: #fff5f5; }

.pdf-ui-icon { font-size: 50px; margin-bottom: 15px; }

.pdf-ui-btn-select {
    background: #e11d48; color: #white; border: none;
    padding: 14px 30px; border-radius: 12px; font-weight: 700;
    cursor: pointer; margin-top: 20px; transition: 0.3s;
    color: white;
}

.pdf-ui-list { margin-top: 30px; text-align: left; }

.pdf-ui-item {
    display: flex; justify-content: space-between; align-items: center;
    padding: 15px 25px; background: #f8fafc; border-radius: 14px;
    margin-bottom: 10px; border: 1px solid #f1f5f9;
}

.pdf-ui-btn-main {
    width: 100%; max-width: 320px; margin: 40px auto 0;
    padding: 18px; background: #1e293b; color: white;
    border: none; border-radius: 16px; cursor: pointer;
    font-size: 18px; font-weight: 700; transition: 0.3s;
}

.btn-red { background: #e11d48; }
.btn-outline { background: transparent; color: #64748b; border: 2px solid #e2e8f0; margin-top: 15px; }

.pdf-ui-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px; margin: 40px 0;
}

.preview-item {
    background: #ffffff; border: 2px solid #f1f5f9;
    padding: 20px; border-radius: 20px; box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05);
}

.preview-item img { width: 50px; margin-bottom: 15px; }

.size-tag { font-size: 12px; font-weight: 700; color: #64748b; margin-bottom: 15px; }
.size-tag span { color: #059669; background: #ecfdf5; padding: 2px 6px; border-radius: 6px; }

.dl-link {
    display: block; padding: 10px; background: #fff1f2;
    color: #e11d48; text-decoration: none; border-radius: 10px;
    font-size: 14px; font-weight: 700;
}