/* Wiz Library Premium PDF Viewer with Annotations Styles */

.wizm-pdf-viewer-container {
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
    border-radius: 2rem;
    overflow: hidden;
}

.wizm-pdf-toolbar {
    background: #090d16;
    border-bottom: 1px solid #1e293b;
    user-select: none;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.wizm-pdf-toolbar button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    outline: none;
    color: #94a3b8;
}

.wizm-pdf-toolbar button:hover {
    color: #ffffff;
    background-color: #1e293b;
}

.wizm-pdf-toolbar button.wizm-active {
    color: #ffffff;
    background-color: #109957 !important;
    box-shadow: 0 0 10px rgba(16, 153, 87, 0.4);
}

.wizm-pdf-viewport {
    background: #020617;
    position: relative;
    overflow: auto;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 550px;
    max-height: 75vh;
    padding: 30px;
    box-shadow: inset 0 10px 30px rgba(0, 0, 0, 0.5);
    scrollbar-width: thin;
    scrollbar-color: #1e293b #020617;
}

/* Scrollbar Customization for Viewport */
.wizm-pdf-viewport::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
.wizm-pdf-viewport::-webkit-scrollbar-track {
    background: #020617;
}
.wizm-pdf-viewport::-webkit-scrollbar-thumb {
    background: #1e293b;
    border-radius: 4px;
}
.wizm-pdf-viewport::-webkit-scrollbar-thumb:hover {
    background: #334155;
}

#wizm-pdf-render-wrapper {
    position: relative;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7);
    background: #ffffff;
    transform-origin: center center;
    transition: transform 0.1s ease-out;
}

#wizm-pdf-canvas {
    display: block;
    max-width: 100%;
    height: auto;
    z-index: 1;
}

#wizm-pdf-annotation-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 5;
    pointer-events: none; /* Prevents canvas from blocking text selection/clicks when drawing is inactive */
    touch-action: none; /* Prevents scroll interference on mobile when drawing */
}

/* Annotation cursor states */
.wizm-pdf-viewer-container.wizm-draw-active #wizm-pdf-annotation-canvas {
    pointer-events: auto !important;
    cursor: crosshair !important;
}

/* Loading Spinner & Animations */
@keyframes wizm-spin {
    to { transform: rotate(360deg); }
}

#wizm-pdf-loading {
    transition: opacity 0.3s ease;
    z-index: 100;
}

/* Fullscreen Lightbox Overlay Mode */
.wizm-pdf-viewer-container.wizm-fullscreen {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    max-height: 100vh !important;
    max-width: 100vw !important;
    z-index: 999999 !important;
    border-radius: 0 !important;
    margin: 0 !important;
    display: flex !important;
    flex-direction: column !important;
}

.wizm-pdf-viewer-container.wizm-fullscreen .wizm-pdf-viewport {
    flex-grow: 1 !important;
    height: calc(100vh - 60px) !important;
    max-height: calc(100vh - 60px) !important;
    border-radius: 0 !important;
}

.wizm-pdf-viewer-container.wizm-fullscreen .wizm-pdf-toolbar {
    border-radius: 0 !important;
    padding-left: 20px !important;
    padding-right: 20px !important;
}
