/* Background overlay */
#pdf-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.75);
    z-index: 999999;
    opacity: 0;
    transition: opacity 0.25s ease-in-out;
}

/* Modal box */
#pdf-modal-box {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 85%;
    height: 85%;
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    transform: translate(-50%, -50%) scale(0.7);
    transition: transform 0.25s ease-out;
    box-shadow: 0 0 25px rgba(0,0,0,0.4);
}

/* Header section */
#pdf-modal-header {
    height: 45px;
    background: #f2f2f2;
    padding: 10px 15px;
    font-size: 16px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #ddd;
}

/* Title text */
#pdf-modal-title {
    color: #000;
    font-size: 16px;
}

/* Close icon */
#pdf-modal-close {
    font-size: 26px;
    cursor: pointer;
    color: #333;
    font-weight: bold;
}

/* PDF iframe */
#pdf-modal-iframe {
    width: 100%;
    height: calc(100% - 45px);
    border: none;
}

/* Active states (shown modal) */
#pdf-modal-overlay.active {
    display: block;
    opacity: 1;
}

#pdf-modal-overlay.active #pdf-modal-box {
    transform: translate(-50%, -50%) scale(1);
}

