/* css/pdf-window.css */

/* Inherits base styles from .finder-window in window-frame.css */

.pdf-window {
    width: 650px; /* Reduced from 800px for better document ratio */
    height: 750px; /* Increased from 600px for A4-like portrait ratio */
    min-width: 600px; /* Reduced from 700px */
    min-height: 700px; /* Increased from 500px */
    background-color: #fff; /* Override base window background */
    backdrop-filter: none; /* Remove inherited blur */
    -webkit-backdrop-filter: none;
}

/* Specific styles for the PDF window content */
.pdf-window .window-content {
    padding: 0; /* Remove padding to maximize PDF viewing area */
    background-color: #fff;
    overflow: hidden; /* Hide scrollbars; PDF viewer provides its own */
    display: flex;
    flex-direction: column;
}

/* Embed and iframe styles */
.pdf-content embed,
.pdf-content iframe,
.pdf-content object {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

/* Custom PDF.js viewer container, if used */
.pdf-viewer-container {
    width: 100%;
    height: 100%;
    background-color: #f9f9f9; /* Neutral background */
    display: flex;
    flex-direction: column;
}

/* PDF loading state */
.pdf-loading {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: #555;
    font-size: 14px;
}

/* Ensure the title text behaves consistently with other windows */
.pdf-window .title-text {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: calc(100% - 92px); /* Same as in window-frame.css */
    display: inline-block;
    vertical-align: middle;
} 