/* =================================================================
   PDF Previewer — Frontend Styles v2.2.0 | Premium Edition
   ================================================================= */

/* ── Preview Button ── */
.ppwlg-preview-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 26px;
    border: none;
    cursor: pointer;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-weight: 600;
    font-size: 15px;
    letter-spacing: 0.2px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}
.ppwlg-preview-btn::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0);
    transition: background 0.2s;
}
.ppwlg-preview-btn:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(0,0,0,0.22) !important; }
.ppwlg-preview-btn:hover::after { background: rgba(255,255,255,0.1); }
.ppwlg-preview-btn:active { transform: translateY(0); }

/* ── Modal Overlay ── */
.ppwlg-modal-overlay {
    display: none;
    justify-content: center;
    align-items: center;
    position: fixed;
    z-index: 999999;
    inset: 0;
    background: rgba(9, 13, 24, 0.9);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    animation: ppwlg-fade 0.22s ease;
}
@keyframes ppwlg-fade { from { opacity: 0; } to { opacity: 1; } }

/* ── Modal Content ── */
.ppwlg-modal-content {
    background: #fff;
    width: 95%;
    max-width: 940px;
    height: 88vh;
    border-radius: 18px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    position: relative;
    box-shadow:
        0 0 0 1px rgba(255,255,255,0.06),
        0 24px 80px rgba(0,0,0,0.65),
        0 8px 24px rgba(0,0,0,0.3);
    animation: ppwlg-up 0.28s cubic-bezier(0.34, 1.36, 0.64, 1);
}
@keyframes ppwlg-up {
    from { opacity: 0; transform: scale(0.93) translateY(24px); }
    to   { opacity: 1; transform: scale(1)    translateY(0);    }
}

/* ── Close Button ── */
.ppwlg-modal-close {
    position: absolute;
    top: 12px;
    right: 14px;
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(0,0,0,0.07);
    color: #6b7280;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    transition: all 0.2s;
    font-weight: 400;
    z-index: 1000;
}
.ppwlg-modal-close:hover {
    background: rgba(239,68,68,0.12);
    color: #ef4444;
    transform: rotate(90deg) scale(1.1);
}

/* ── Canvas Container ── */
.ppwlg-canvas-container {
    flex-grow: 1;
    overflow: hidden;
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    width: 100%;
    height: 100%;
    position: relative;
}

/* ── Loader ── */
.ppwlg-global-loader {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: rgba(255,255,255,0.85);
    font-size: 13px;
    font-family: 'Inter', -apple-system, sans-serif;
    font-weight: 500;
    letter-spacing: 0.3px;
    z-index: 10;
}
.ppwlg-spinner {
    width: 42px;
    height: 42px;
    border: 3px solid rgba(255,255,255,0.1);
    border-radius: 50%;
    border-top-color: #6366f1;
    animation: ppwlg-spin 0.75s linear infinite;
}
@keyframes ppwlg-spin { to { transform: rotate(360deg); } }

/* ── Mobile ── */
@media (max-width: 768px) {
    .ppwlg-modal-content {
        width: 100%;
        height: 100%;
        max-width: 100%;
        border-radius: 0;
    }
}
