/* CSS to hide all download and print buttons/controls in PDF.js */
#download,
#print,
button[data-l10n-id="download"],
button[data-l10n-id="print"],
.download,
.print,
.openFile,
[title*="Print"],
[aria-label*="Print"],
[title*="Download"],
[aria-label*="Download"],
.printButton,
.downloadButton,
.toolbarButton.print,
.toolbarButton.download,
[data-toolbar-item="print"],
[data-toolbar-item="download"],
.menuItem[data-l10n-id*="download"],
.menuItem[data-l10n-id*="print"],
#secondaryDownload,
#secondaryPrint,
#secondaryToolbarButton-print,
#secondaryToolbarButton-download {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
    position: absolute !important;
    left: -9999px !important;
    width: 0 !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
}

/* Ensure PDF content remains scrollable */
#viewerContainer {
    overflow: auto !important;
}

/* Disable any download-related UI in the viewer */
/* Hide the context menu */
.contextMenu {
    display: none !important;
}

/* PDF container with hover state for fullscreen button */
.pdf-container {
    position: relative;
}

/* Improved fullscreen button style for our custom button */
.fullscreen-btn {
    position: absolute;
    bottom: 10px;
    right: 10px;
    z-index: 9999;
    background: rgba(57, 73, 171, 0.5);
    color: white;
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    font-size: 16px;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.5;
    /* Make button semi-transparent initially */
    backdrop-filter: blur(1px);
}

/* Show button clearly on container hover */
.pdf-container:hover .fullscreen-btn {
    opacity: 0.9;
}

.fullscreen-btn:hover {
    background: rgba(57, 73, 171, 0.9);
    transform: scale(1.05);
    opacity: 1;
}

.fullscreen-btn:focus {
    outline: 2px solid #3949ab;
    outline-offset: 2px;
    opacity: 1;
}

.fullscreen-btn:active {
    transform: scale(0.95);
}

.fullscreen-btn i {
    font-size: 16px;
}

/* Make fullscreen button responsive */
@media (max-width: 768px) {
    .fullscreen-btn {
        width: 32px;
        height: 32px;
        font-size: 12px;
        bottom: 8px;
        right: 8px;
    }
    
    .fullscreen-btn i {
        font-size: 14px;
    }
}

/* Hide print dialog */
@media print {
    body {
        display: none !important;
    }
} 