
/* Общий контейнер */
.pdf-viewer {
    background: #111;
    padding: 80px 0 40px 0; /* ↑ увеличили верхний отступ */
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    position: relative;
    box-sizing: border-box;
    overflow: hidden;
}

/* Канвас PDF */
.pdf-viewer canvas {
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.6);
    background: #fff;
    max-width: 100%;
    height: auto;
    border-radius: 4px;
}

/* Тулбар */
.pdf-viewer-toolbar {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(30, 30, 30, 0.95);
    padding: 10px 30px;
    border-radius: 8px;
    display: flex;
    flex-wrap: nowrap;
    gap: 15px;
    align-items: center;
    z-index: 10;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    min-width: 360px;
}

/* Кнопки тулбара */
.pdf-viewer-toolbar button {
    background-color: transparent;
    border: none;
    color: #fff;
    cursor: pointer;
    font-size: 18px;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease;
}

.pdf-viewer-toolbar button:hover {
    transform: scale(1.2);
}

/* SVG иконки */
.pdf-viewer-toolbar svg {
    width: 24px;
    height: 24px;
    fill: #fff !important;
    stroke: #fff !important;
    color: #fff !important;
}

/* Страница */
.pdf-viewer-toolbar .pageIndicator {
    color: #ffffff !important;
    font-size: 14px;
    font-family: sans-serif;
    white-space: nowrap;
}
 
/* Спиннер */
.pdf-spinner {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 9;
    border: 4px solid rgba(255,255,255,0.1);
    border-top: 4px solid #00aaff;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    animation: spin 1s linear infinite;
}

.pdf-viewer-toolbar .pageInfo {
    color: #fff !important;
    font-size: 14px;
    font-family: sans-serif;
}


@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}
