/* PDF Viewer Component Styles */
.modern-pdf-viewer {
    background: linear-gradient(135deg, #F5DEB3 0%, rgba(75, 0, 130, 0.05) 100%);
    border: 1px solid rgba(184, 134, 11, 0.1);
    display: flex;
    flex-direction: column;
    box-shadow: 0 8px 32px rgba(184, 134, 11, 0.15);
}
.pdf-viewer-header {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(245, 222, 179, 0.3) 100%);
    backdrop-filter: blur(15px);
    border-bottom: 2px solid rgba(184, 134, 11, 0.2);
}
.pdf-viewer-icon {
    background: linear-gradient(135deg, #B8860B, #DAA520);
    border-radius: 16px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(184, 134, 11, 0.3);
}
.pdf-viewer-title {
    color: #8B0000;
    font-family: 'Crimson Text', serif;
    font-size: 1.1rem;
    line-height: 1.3;
}
.pdf-viewer-tag {
    background: rgba(139, 0, 0, 0.1);
    color: #8B0000;
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
}
.pdf-download-btn {
    background: linear-gradient(135deg, #B8860B, #DAA520);
    border: none;
    box-shadow: 0 4px 12px rgba(184, 134, 11, 0.3);
    font-size: 0.875rem;
    white-space: nowrap;
    color: #fff;
}
.pdf-download-btn:hover {
    background: linear-gradient(135deg, #DAA520, #B8860B);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(184, 134, 11, 0.4);
}
.pdf-controls {
    background: linear-gradient(135deg, rgba(248, 249, 250, 0.95) 0%, rgba(245, 222, 179, 0.1) 100%);
    backdrop-filter: blur(10px);
    gap: 8px;
    border-bottom: 1px solid rgba(184, 134, 11, 0.1);
}
.pdf-nav-btn {
    min-width: 44px;
    height: 44px;
    border-color: rgba(184, 134, 11, 0.3);
    color: #8B0000;
    border-radius: 12px;
}
.pdf-nav-btn:hover {
    background: rgba(139, 0, 0, 0.1);
    border-color: rgba(139, 0, 0, 0.4);
    color: #8B0000;
}
.pdf-page-indicator {
    background: rgba(139, 0, 0, 0.1);
    color: #8B0000;
    font-weight: 600;
    min-width: 80px;
    text-align: center;
    padding: 0.25rem 0.5rem;
    border-radius: 999px;
}
.pdf-zoom-btn {
    min-width: 40px;
    height: 40px;
    border-radius: 10px;
    color: #4B0082;
}
.pdf-zoom-btn:hover {
    background: rgba(75, 0, 130, 0.1);
    border-color: rgba(75, 0, 130, 0.3);
    color: #4B0082;
}
.pdf-zoom-level {
    background: rgba(75, 0, 130, 0.1);
    color: #4B0082;
    font-weight: 500;
    min-width: 50px;
    text-align: center;
    padding: 0.25rem 0.5rem;
    border-radius: 999px;
    font-size: 0.875rem;
}
.pdf-overlay {
    background: rgba(255, 255, 255, 0.9);
    z-index: 10;
}
#pdf-canvas-container canvas {
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
    border-radius: 4px;
}
/* Mobile optimizations */
@media (max-width: 576px) {
    .pdf-controls {
        padding: 0.5rem !important;
    }
    .pdf-nav-btn {
        min-width: 40px;
        height: 40px;
    }
    .pdf-zoom-btn {
        min-width: 36px;
        height: 36px;
    }
    #pdf-canvas-container {
        padding: 0.5rem !important;
    }
}
/* Sticky mobile actions - show on mobile only */
.sticky-actions-mobile {
    display: none;
}
@media (max-width: 991.98px) {
    .sticky-actions-mobile {
        display: block;
        position: sticky;
        bottom: 0;
        left: 0;
        right: 0;
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.12);
        padding: 1rem;
        z-index: 1000;
        border-top: 1px solid rgba(221, 153, 51, 0.2);
        background: rgba(255, 255, 255, 0.95);
    }
}
/* PDF metadata icons */
.pdf-meta-icon {
    font-size: 1.1rem;
}
.section-icon {
    font-size: 1.25rem;
}
/* PDF reader trigger */
.pdf-reader-trigger {
    min-height: 520px;
    background: linear-gradient(135deg, rgba(248, 249, 250, 0.97) 0%, rgba(245, 222, 179, 0.18) 100%);
}
.pdf-reader-icon {
    font-size: 5rem;
    color: rgba(139, 0, 0, 0.75);
}
.pdf-reader-title {
    color: #8B0000;
    font-size: 1.35rem;
}
.pdf-reader-desc {
    font-size: 0.9rem;
    max-width: 280px;
    margin: 0 auto;
}
.pdf-open-btn {
    background: linear-gradient(135deg, #8B0000, #B22222);
    border: none;
    box-shadow: 0 4px 16px rgba(139, 0, 0, 0.25);
    font-size: 1rem;
}
.pdf-open-btn:hover {
    background: linear-gradient(135deg, #B22222, #8B0000);
    box-shadow: 0 6px 20px rgba(139, 0, 0, 0.35);
    transform: translateY(-2px);
}
/* Summary and TOC boxes */
.pdf-download-icon {
    font-size: 1.2rem;
}
.pdf-info-box-golden {
    background: rgba(221, 153, 51, 0.08);
    border-left: 4px solid var(--color-golden-ochre);
}
.pdf-info-box-maroon {
    background: rgba(128, 0, 0, 0.06);
    border-left: 4px solid var(--color-maroon);
}
.text-regular {
    font-size: 1.05rem;
}
.text-muted-secondary {
    font-size: 1.05rem;
    color: #555;
}
