/* ===================================
   PDF Viewer Components
   =================================== */

/* PDF Viewer */
.pdf-viewer {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.pdf-toolbar {
    background-color: #002855;
    color: white;
    padding: 10px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
}

.pdf-controls {
    display: flex;
    gap: 10px;
    align-items: center;
}

.pdf-btn {
    background-color: rgba(255, 255, 255, 0.2);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 5px 10px;
    border-radius: 3px;
    cursor: pointer;
    font-size: 12px;
}

.page-input-container {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-left: 15px;
    padding-left: 15px;
    border-left: 1px solid rgba(255, 255, 255, 0.3);
}

.page-input-label {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.8);
    white-space: nowrap;
}

.page-input {
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 4px 6px;
    border-radius: 3px;
    font-size: 12px;
    width: 50px;
    text-align: center;
}

.page-input:focus {
    outline: none;
    background-color: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
}

.page-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
    font-size: 10px;
}

.page-go-btn {
    padding: 4px 8px;
    font-size: 11px;
}

/* Hide page input on very small screens */
@media (max-width: 600px) {
    .page-input-container {
        display: none;
    }
}

.pdf-content {
    flex: 1;
    background-color: #525659;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #aaa;
    padding: 40px;
    text-align: center;
    overflow: auto;
    position: relative;
}

.pdf-canvas-container {
    display: none;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: #525659;
    position: relative;
    padding: 5px;
}

.pdf-canvas-container.show {
    display: block;
}

#pdfCanvas {
    display: block;
    margin: 0 auto;
    background-color: white;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    max-width: 100%;
    height: auto;
}

.pdf-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.pdf-placeholder.hidden {
    display: none;
}
