.wag-pdfdoc-container {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    margin: 20px 0;
}

/* Звездный фон */
.wag-pdfdoc-stars-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.wag-pdfdoc-star {
    position: absolute;
    background: #fff;
    border-radius: 50%;
    filter: blur(0.5px);
    box-shadow: 0 0 6px rgba(255, 255, 255, 0.8);
    animation: wag-pdfdoc-twinkle 3s infinite alternate;
}

@keyframes wag-pdfdoc-twinkle {
    0% { opacity: 0.3; transform: scale(0.8); }
    100% { opacity: 1; transform: scale(1.1); }
}

/* Заголовок */
.wag-pdfdoc-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    position: relative;
    z-index: 2;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(114, 154, 169, 0.3);
}

.wag-pdfdoc-title {
    font-size: 28px;
    font-weight: 700;
    color: #fff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.wag-pdfdoc-filename {
    font-size: 16px;
    color: #729aa9;
    margin-top: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.wag-pdfdoc-icon {
    font-size: 20px;
}

/* Панель инструментов */
.wag-pdfdoc-toolbar {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    position: relative;
    z-index: 2;
}

.wag-pdfdoc-toolbtn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(114, 154, 169, 0.25);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-family: 'Montserrat Alternates', sans-serif;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.wag-pdfdoc-toolbtn:hover {
    background: rgba(114, 154, 169, 0.4);
    transform: translateY(-2px);
}

.wag-pdfdoc-toolbtn i {
    font-size: 16px;
}

/* Область просмотра PDF */
.wag-pdfdoc-viewer {
    background: #2a414a;
    border-radius: 12px;
    min-height: 500px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
    margin-bottom: 20px;
    box-shadow: inset 0 0 25px rgba(0, 0, 0, 0.6);
    z-index: 2;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.wag-pdfdoc-page-container {
    width: 100%;
    height: 100%;
    overflow: auto;
    display: flex;
    justify-content: center;
    padding: 20px;
}

.wag-pdfdoc-canvas-container {
    position: relative;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.6);
}

.wag-pdfdoc-page-controls {
    position: absolute;
    bottom: 10px;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 10px;
}

.wag-pdfdoc-page-btn {
    background: rgba(114, 154, 169, 0.8);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    font-size: 18px;
}

/* Навигация */
.wag-pdfdoc-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    position: relative;
    z-index: 2;
}

.wag-pdfdoc-navbtn {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    background: linear-gradient(135deg, #729aa9, #5a7d8a);
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    color: white;
    font-size: 22px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.wag-pdfdoc-navbtn:hover {
    background: linear-gradient(135deg, #7ea7b8, #648b9a);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
    z-index: 10;
}

.wag-pdfdoc-navbtn:active {
    transform: translateY(0);
}

.wag-pdfdoc-pageinfo {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.wag-pdfdoc-pagetext {
    font-size: 16px;
    color: #bdc3c7;
}

.wag-pdfdoc-pageindicator {
    font-size: 18px;
    color: #fff;
    background: linear-gradient(135deg, #729aa9, #5a7d8a);
    padding: 10px 25px;
    border-radius: 25px;
    font-weight: 600;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Ползунок навигации */
.wag-pdfdoc-slider-container {
    width: 100%;
    margin-bottom: 25px;
    position: relative;
    z-index: 2;
}

.wag-pdfdoc-slider {
    width: 100%;
    height: 8px;
    -webkit-appearance: none;
    appearance: none;
    background: rgba(114, 154, 169, 0.3);
    outline: none;
    border-radius: 10px;
}

.wag-pdfdoc-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #729aa9;
    cursor: pointer;
    box-shadow: 0 0 10px rgba(114, 154, 169, 0.8);
}

/* Область скачивания */
.wag-pdfdoc-download-section {
    display: flex;
    justify-content: center;
    position: relative;
    z-index: 2;
}

.wag-pdfdoc-download-btn {
    display: flex;
    align-items: center;
    gap: 15px;
    background: linear-gradient(to right, #729aa9, #5a7d8a);
    color: white;
    border: none;
    padding: 16px 40px;
    border-radius: 35px;
    font-family: 'Montserrat Alternates', sans-serif;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.wag-pdfdoc-download-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
    background: linear-gradient(to right, #7ea7b8, #648b9a);
}

.wag-pdfdoc-download-btn:active {
    transform: translateY(0);
}

.wag-pdfdoc-download-icon {
    font-size: 22px;
}

/* Анимация загрузки */
.wag-pdfdoc-loading {
    display: none;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top: 3px solid #fff;
    animation: wag-pdfdoc-spin 1s linear infinite;
}

@keyframes wag-pdfdoc-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Адаптивность */
@media (max-width: 900px) {
    .wag-pdfdoc-navbtn {
        width: 50px;
        height: 50px;
    }
}

@media (max-width: 600px) {
    .wag-pdfdoc-container {
        padding: 20px;
    }

    .wag-pdfdoc-viewer {
        height: 400px;
    }

    .wag-pdfdoc-toolbar {
        flex-wrap: wrap;
        justify-content: center;
    }

    .wag-pdfdoc-navbtn {
        width: 45px;
        height: 45px;
        font-size: 18px;
    }

    .wag-pdfdoc-pageindicator {
        font-size: 16px;
        padding: 8px 20px;
    }

    .wag-pdfdoc-download-btn {
        padding: 14px 30px;
        font-size: 16px;
    }
}

/* Полноэкранный режим */
body.wag-pdfdoc-fullscreen-mode {
    padding: 0;
    display: block;
    overflow: hidden;
    background: #2a414a;
}

body.wag-pdfdoc-fullscreen-mode .wag-pdfdoc-container {
    display: none;
}

.wag-pdfdoc-fullscreen-page {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: white;
    z-index: 1000;
    display: none;
    flex-direction: column;
    overflow: hidden;
}

.wag-pdfdoc-fullscreen-container {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: auto;
    padding: 60px 20px 100px;
}

.wag-pdfdoc-fullscreen-controls {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    z-index: 1001;
    padding: 20px;
    background: rgba(42, 65, 74, 0.9);
}

.wag-pdfdoc-fullscreen-navbtn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #729aa9, #5a7d8a);
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    color: white;
    font-size: 24px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.wag-pdfdoc-fullscreen-navbtn:hover {
    background: linear-gradient(135deg, #7ea7b8, #648b9a);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.wag-pdfdoc-fullscreen-pageinfo {
    font-size: 20px;
    color: #fff;
    background: linear-gradient(135deg, #729aa9, #5a7d8a);
    padding: 12px 30px;
    border-radius: 25px;
    font-weight: 600;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    margin: 0 20px;
}

.wag-pdfdoc-fullscreen-btn {
    position: absolute;
    top: 30px;
    right: 30px;
    background: rgba(114, 154, 169, 0.25);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    font-size: 20px;
    z-index: 3;
    transition: all 0.3s ease;
}

.wag-pdfdoc-fullscreen-btn:hover {
    background: rgba(114, 154, 169, 0.4);
    transform: scale(1.1);
}

.wag-pdfdoc-fullscreen-close {
    position: fixed;
    top: 20px;
    right: 20px;
    background: rgba(114, 154, 169, 0.8);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    font-size: 20px;
    z-index: 1001;
    transition: all 0.3s ease;
}

.wag-pdfdoc-fullscreen-close:hover {
    background: rgba(114, 154, 169, 1);
    transform: scale(1.1);
}


/* Сообщение о загрузке */
.wag-pdfdoc-loading-message {
    color: white;
    font-size: 18px;
    text-align: center;
}