/* PDF Modal Styles */
.pdf-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    z-index: 9999;
    overflow-y: auto;
    padding: 20px;
    box-sizing: border-box;
}

.pdf-modal-overlay.active {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.pdf-modal-header {
    width: 100%;
    max-width: 900px;
    display: flex;
    justify-content: flex-end;
    margin-bottom: 10px;
    position: sticky;
    top: 0;
    z-index: 10000;
}

.pdf-modal-close {
    background: #ff4757;
    color: white;
    border: none;
    padding: 10px 20px;
    font-size: 16px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.pdf-modal-close:hover {
    background: #ff6b81;
}

#pdf-render-container {
    width: 100%;
    max-width: 900px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

#pdf-render-container canvas {
    max-width: 100%;
    height: auto;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    background: white;
}

.pdf-loading {
    color: white;
    font-size: 1.2rem;
    margin-top: 50px;
}

/* Prevent printing of the modal/PDF */
@media print {
    .pdf-modal-overlay {
        display: none !important;
    }
}
