﻿.pdf-viewer-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 500px;
    background: #f8fafc;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}
.pdf-viewer-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    color: #64748b;
}
.pdf-spinner {
    width: 48px;
    height: 48px;
    border: 4px solid #e2e8f0;
    border-top-color: #007fff;
    border-radius: 50%;
    animation: pdf-spin 0.8s linear infinite;
}
@keyframes pdf-spin {
    to { transform: rotate(360deg); }
}
.pdf-canvas {
    max-width: 100%;
    height: auto;
    display: block;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}
.pdf-controls {
    position: absolute;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.25rem;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 50px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    z-index: 10;
}
.pdf-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: none;
    background: transparent;
    color: #1e293b;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s ease;
}
.pdf-btn:hover:not(:disabled) {
    background: #007fff;
    color: #ffffff;
    transform: scale(1.1);
}
.pdf-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}
.pdf-page-info {
    font-size: 0.875rem;
    font-weight: 600;
    color: #1e293b;
    min-width: 60px;
    text-align: center;
}
.pdf-current-page {
    color: #007fff;
}
@media (max-width: 768px) {
    .pdf-viewer-wrapper {
        min-height: 400px;
    }
    .pdf-controls {
        bottom: 1rem;
        padding: 0.5rem 1rem;
        gap: 0.5rem;
    }
    .pdf-btn {
        width: 36px;
        height: 36px;
    }
    .pdf-page-info {
        font-size: 0.8125rem;
        min-width: 50px;
    }
}
.certificate-pdf-viewer,
.catalog-pdf-viewer {
    min-height: 600px;
}
@media (max-width: 768px) {
    .certificate-pdf-viewer,
    .catalog-pdf-viewer {
        min-height: 500px;
    }
}
