/* ========================================
   PDF Uploader Widget — sign/stamp PDF
   ======================================== */

.pdfup-widget {
    max-width: 640px;
    margin: 0 auto;
    padding: 1.5rem;
    background: linear-gradient(135deg, #eef2ff 0%, #f0f9ff 100%);
    border-radius: 16px;
    border: 1px solid #e0e7ff;
}

.pdfup-zone {
    border: 2px dashed #c7d2fe;
    border-radius: 12px;
    background: #fff;
    transition: all 0.2s ease;
    cursor: pointer;
}

.pdfup-zone:hover,
.pdfup-zone--dragover {
    border-color: #4f46e5;
    background: #f5f3ff;
}

.pdfup-zone--dragover {
    border-style: solid;
    transform: scale(1.01);
}

.pdfup-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2.5rem 1.5rem;
    cursor: pointer;
    text-align: center;
}

.pdfup-icon {
    width: 56px;
    height: 56px;
    color: #4f46e5;
    margin-bottom: 1rem;
}

.pdfup-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 0.4rem;
}

.pdfup-hint {
    font-size: 0.9375rem;
    color: #475569;
    margin-bottom: 0.4rem;
}

.pdfup-limit {
    font-size: 0.8125rem;
    color: #94a3b8;
}

/* Loading */
.pdfup-loading {
    text-align: center;
    padding: 2.5rem 1.5rem;
}

.pdfup-spinner {
    width: 44px;
    height: 44px;
    border: 4px solid #e0e7ff;
    border-top-color: #4f46e5;
    border-radius: 50%;
    animation: pdfup-spin 0.8s linear infinite;
    margin: 0 auto 1.25rem;
}

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

.pdfup-loading-text {
    font-size: 1rem;
    font-weight: 600;
    color: #1e293b;
    margin: 0;
}

/* Error */
.pdfup-error {
    text-align: center;
    padding: 2rem 1.5rem;
}

.pdfup-error-icon {
    color: #dc2626;
    margin-bottom: 0.75rem;
}

.pdfup-error-text {
    font-size: 1rem;
    color: #475569;
    margin-bottom: 1.25rem;
}

.pdfup-btn {
    display: inline-block;
    padding: 0.625rem 1.25rem;
    border-radius: 8px;
    font-size: 0.9375rem;
    font-weight: 600;
    cursor: pointer;
    border: 1px solid #cbd5e1;
    background: #fff;
    color: #475569;
    transition: all 0.15s ease;
}

.pdfup-btn:hover {
    background: #f8fafc;
    border-color: #94a3b8;
}

@media (max-width: 540px) {
    .pdfup-widget {
        padding: 1rem;
    }
    .pdfup-label {
        padding: 1.75rem 1rem;
    }
    .pdfup-title {
        font-size: 1rem;
    }
}
