/* Reset & Preview Styles */
.pdf-widget-container-e951e3b8 {
    width: 100%;
    margin-bottom: 20px;
}

.pdf-title-e951e3b8 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 10px;
    text-align: left;
    color: #1e293b;
}

.pdf-preview-box-e951e3b8 {
    position: relative;
    width: 100%;
    overflow: hidden;
    cursor: pointer;
    background-color: #f1f5f9;
    border: 1px solid rgba(0, 0, 0, 0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

.pdf-preview-box-e951e3b8:hover {
    transform: translateY(-2px);
}

.pdf-canvas-preview-e951e3b8 {
    max-width: 100%;
    height: auto !important;
    display: block;
}

/* Hover overlay styling */
.pdf-preview-overlay-e951e3b8 {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(15, 23, 42, 0.65);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.25s ease;
}

.pdf-preview-box-e951e3b8:hover .pdf-preview-overlay-e951e3b8,
.pdf-preview-box-e951e3b8:focus-within .pdf-preview-overlay-e951e3b8 {
    opacity: 1;
}

.pdf-overlay-text-e951e3b8 {
    color: #ffffff;
    font-weight: 500;
    font-size: 0.95rem;
    padding: 8px 16px;
    border: 1px solid #ffffff;
    border-radius: 4px;
}

/* Error design */
.pdf-error-e951e3b8 {
    padding: 15px;
    background-color: #fef2f2;
    border-left: 4px solid #ef4444;
    color: #b91c1c;
    font-size: 0.9rem;
    border-radius: 4px;
}

/* Modal and Reader Styles */
.pdf-modal-e951e3b8 {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
    box-sizing: border-box;
}

/* Offset for WordPress Admin Bar */
body.admin-bar .pdf-modal-e951e3b8 {
    top: var(--wp-admin--admin-bar--height, 32px);
    height: calc(100vh - var(--wp-admin--admin-bar--height, 32px));
}
@media screen and (max-width: 782px) {
    body.admin-bar .pdf-modal-e951e3b8 {
        top: 46px;
        height: calc(100vh - 46px);
    }
}

.pdf-modal-content-e951e3b8 {
    position: relative;
    width: 90vw;
    height: 90vh;
    background-color: #f8fafc;
    border-radius: 8px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* Toolbar styling */
.pdf-toolbar-e951e3b8 {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    flex-shrink: 0;
    flex-wrap: wrap;
    gap: 12px;
}

.pdf-toolbar-section-e951e3b8 {
    display: flex;
    align-items: center;
    gap: 8px;
}

.pdf-doc-title-e951e3b8 {
    font-size: 1rem;
    font-weight: 500;
    color: #ffffff;
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pdf-page-num-indicator-e951e3b8 {
    color: #94a3b8;
    font-size: 0.9rem;
    user-select: none;
    font-weight: 500;
    margin: 0 4px;
}

.pdf-current-page-e951e3b8 {
    color: #ffffff;
}

/* Toolbar Buttons */
.pdf-btn-e951e3b8 {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s, opacity 0.2s;
    text-decoration: none;
}

.pdf-btn-e951e3b8:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.pdf-btn-e951e3b8:focus-visible {
    outline: 2px solid #3b82f6;
    background-color: rgba(255, 255, 255, 0.15);
}

.pdf-btn-e951e3b8 span {
    font-size: 1.1rem;
}

/* Canvas container scrollable area */
.pdf-canvas-container-e951e3b8 {
    flex-grow: 1;
    overflow: auto;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 20px;
    background-color: #0f172a;
}

.pdf-viewer-canvas-e951e3b8 {
    max-width: 100%;
    height: auto !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    background-color: #ffffff;
    display: block;
}

/* Fullscreen adjustments */
.pdf-modal-e951e3b8.fullscreen-mode-e951e3b8 .pdf-modal-content-e951e3b8 {
    width: 100vw;
    height: 100vh;
    border-radius: 0;
}

/* Responsive adjust */
@media (max-width: 768px) {
    .pdf-modal-content-e951e3b8 {
        width: 100vw;
        height: 100vh;
        border-radius: 0;
    }

    .pdf-toolbar-e951e3b8 {
        padding: 8px 12px;
        justify-content: space-around;
    }

    .pdf-doc-title-e951e3b8 {
        display: none;
    }

    .pdf-canvas-container-e951e3b8 {
        padding: 10px;
    }
}
