/* Стили для кнопок доступности PDF */
.pdf-accessibility-btn {
    display: inline-block;
    margin-left: 8px;
    padding: 6px 12px;
    background: linear-gradient(135deg, #007cba 0%, #005a87 100%);
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    vertical-align: middle;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 124, 186, 0.3);
    position: relative;
    min-width: 32px;
    height: 32px;
    line-height: 1;
}

.pdf-accessibility-btn:hover {
    background: linear-gradient(135deg, #005a87 0%, #004066 100%);
    color: white;
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 124, 186, 0.4);
}

.pdf-accessibility-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0, 124, 186, 0.3);
}

.pdf-accessibility-btn i {
    font-size: 16px;
    display: block;
    text-align: center;
}

/* Добавляем псевдоэлемент для иконки очков если иконка не загружена */
.pdf-accessibility-btn:before {
    content: "";
    width: 16px;
    height: 16px;
    background-image: url('/resources/images/icons/view.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    display: block;
    margin: 0 auto;
}

.pdf-accessibility-btn i + .pdf-accessibility-btn:before {
    display: none;
}

/* Стили для попапов */
.pdf-accessibility-popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10000;
    justify-content: center;
    align-items: center;
}

.pdf-popup-content {
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    max-width: 1000px;
    width: 90%;
    max-height: 80vh;
    overflow: hidden;
    position: relative;
}

.pdf-popup-header {
    background: #007cba;
    color: white;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.pdf-popup-header h4 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
}

.pdf-popup-close {
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.3s ease;
}

.pdf-popup-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.pdf-popup-body {
    padding: 20px;
    max-height: 60vh;
    overflow-y: auto;
}

.pdf-popup-text {
    line-height: 1.6;
    color: #333;
    font-size: 14px;
}

/* Адаптивность */
@media (max-width: 768px) {
    .pdf-popup-content {
        width: 95%;
        margin: 20px;
    }
    
    .pdf-popup-header {
        padding: 12px 15px;
    }
    
    .pdf-popup-header h4 {
        font-size: 16px;
    }
    
    .pdf-popup-body {
        padding: 15px;
    }
    
    .pdf-accessibility-btn {
        padding: 3px 8px;
        font-size: 11px;
    }

} 