/* GISPreviewPdf.css - Preview PDF Modal */

#preview-pdf {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1051;
    box-sizing: border-box;
}

.preview-wrapper {
    position: relative;
}

.preview-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    cursor: pointer;
}

.preview-card {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    height: 90%;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
}

.preview-close {
    font-family: sans-serif;
    position: absolute;
    top: 8px;
    right: 8px;
    width: 50px;
    height: 50px;
    border: none;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    font-size: 30px;
    cursor: pointer;
    line-height: 1;
}

.preview-iframe {
    flex: 1;
    border: none;
}

@media (max-width: 768px) {
    .preview-card {
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        width: 100%;
        height: 100%;
        border-radius: 0;
        box-shadow: none;
        transform: none;
    }

    .preview-close {
        top: auto;
        bottom: 12px;
        right: 12px;
    }
}