/**
 * 파일 뷰어 팝업 모달 스타일
 */
.file-viewer-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 99999;
}

.file-viewer-modal.active {
    display: flex !important;
    align-items: center;
    justify-content: center;
}

.file-viewer-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
}

.file-viewer-content {
    position: relative;
    width: 90%;
    height: 90%;
    max-width: 1200px;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.file-viewer-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    border: none;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    font-size: 24px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
}

.file-viewer-close:hover {
    background: rgba(0, 0, 0, 0.8);
}

.file-viewer-body {
    flex: 1;
    overflow: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f5f5f5;
    touch-action: pan-x pan-y pinch-zoom;
}

.file-viewer-body img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.2s ease;
    user-select: none;
    -webkit-user-drag: none;
}

.file-viewer-body iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.file-viewer-controls {
    display: flex;
    justify-content: center;
    gap: 10px;
    padding: 15px;
    background: #fff;
    border-top: 1px solid #eee;
}

.file-viewer-controls button {
    padding: 10px 20px;
    border: 1px solid #ddd;
    background: #fff;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s;
}

.file-viewer-controls button:hover {
    background: #007ee6;
    color: #fff;
    border-color: #007ee6;
}

/* 반응형 */
@media (max-width: 768px) {
    .file-viewer-content {
        width: 100%;
        height: 100%;
        border-radius: 0;
    }

    .file-viewer-controls button {
        padding: 8px 15px;
        font-size: 13px;
    }
}
