body:not(.FullPreview) .LandingHeader{
    height:230px;
    padding:20px;
    z-index:1;
}
@media screen and /*(min-width: 600px) and*/ (min-width: 768px) and (max-width: 992px) {
    body.FullPreview{
        padding-top:70px !important;
    }
}



body.FullPreview .LandingHeader{
    padding: 20px 20px 20px;
    height: 240px;
    z-index: 1;
}


.BookContent{
    background-color:white;
}


.BookDate{
    text-decoration:none;
}


.BookCard{
    text-decoration: none !important;
}
/*.BookDate::after,.BookDate::before {
    display: none !important;
    content: none !important;
}


.BookDate,
.BookDate:hover,
.BookDate:focus,
.BookDate:active,
.BookDate:visited {
    text-decoration: none !important;
}
*/




























/* Loggedin User */
html[dir="rtl"] body.FullPreview .AppContainer{
    
}

/* NOn-Loggedin User */
html[dir="rtl"] body:not(.FullPreview) .AppContainer,html body:not(.FullPreview) .AppContainer{
    padding:70px 0px 0px 0px;
}
@media screen and (min-width: 600px) and (max-width: 768px) {
    html[dir="rtl"] body:not(.FullPreview) .AppContainer,html body:not(.FullPreview) .AppContainer {
        padding: 0;
    }
}
@media screen and (max-width: 600px) {
    html[dir="rtl"] body:not(.FullPreview) .AppContainer,body:not(.FullPreview) .AppContainer {
        padding: 0;
    }
}








.MainContent{
    padding-right:0 !important;
    padding-left:0 !important;
    padding-top:70px !important;
}
@media (min-width: 768px) {
    .MainContent{
        padding-top: 0px !important;
    }
}












.AppContainerPDF {
    display: flex;
    height: calc(100vh - 70px);
    height: calc(var(--vh, 1vh) * 100 - 70px);
    position: relative;
}



@media (min-width: 768px) {
    body.FullPreview .AppContainerPDF{
        height: calc(var(--vh, 1vh) * 100);
    }
}




/* Sidebar Styles */
.PDFSidebar {
    width: 320px;
    background: #ffffff;
    border-right: 1px solid #e0e0e0;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 9;
    position: relative;
}

.PDFSidebarHeader {
    padding: 20px 24px;
    background: linear-gradient(135deg, var(--PrimaryBGColor) 0%, var(--SecondaryBGColor) 100%);
    border-bottom: 1px solid #e0e0e0;
}
.PDFSidebarHeader h1 {
    font-size: 18px;
    margin-bottom: 8px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--PrimaryTextColor);
}
.UserInfo {
    font-size: 0.85rem;
    opacity: 0.9;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    color: var(--PrimaryTextColor);
}
.UserBadge {
    background: rgba(255, 255, 255, 0.2);
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
}
.FileListContainer {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
}
.FileListContainer::-webkit-scrollbar {
    width: 8px;
}
.FileListContainer::-webkit-scrollbar-track {
    background: #ffffff;
}
.FileListContainer::-webkit-scrollbar-thumb {
    background: #d0d0d0;
    border-radius: 4px;
}
.FileListContainer::-webkit-scrollbar-thumb:hover {
    background: #b0b0b0;
}
.FileItem {
    background: #f8f8f8;
    padding: 12px 14px;
    margin-bottom: 10px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 2px solid transparent;
    display: flex;
    align-items: center;
    gap: 12px;
}
.FileItem:hover {
    background: #f0f0f0;
    transform: translateX(4px);
    border-color: var(--PrimaryBGColor);
    box-shadow: 0 4px 12px var(--PrimaryBGColorOpac40);
}
.FileItem.Active {
    background: linear-gradient(135deg, var(--PrimaryBGColor) 0%, var(--SecondaryBGColor) 100%);
    border-color: var(--PrimaryBGColor);
    box-shadow: 0 4px 16px var(--PrimaryBGColorOpac40);
}
.FileIcon {
    width: 36px;
    height: 36px;
    background: var(--PrimaryBGColorOpac30);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}
.FileItem.Active .FileIcon {
    background: rgba(255, 255, 255, 0.2);
}
.FileName {
    flex: 1;
    font-size: 0.9rem;
    font-weight: 500;
    word-break: break-word;
    line-height: 1.4;
    color: #333;
}

.FileItem.Active .FileName {
    color:white;
}


.FileItem.Active .SVGOrigIcon{
    stroke:white;
}





/* Main Viewer Styles */
.MainViewer {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: #f5f5f5;
    min-width: 0;
    width:100%;
    position: relative;
}
.ViewerTopBar {
    background: #ffffff;
    border-bottom: 1px solid #e0e0e0;
    padding: 14px 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    min-height: 64px;
}
.ToggleSidebarButton {
    background: var(--SecondaryBGColor);
    background:#efefef;
    color: var(--SecondaryTextColor);
    border: none;
    padding: 10px 14px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1.3rem;
    transition: all 0.2s ease;

    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    display:none;
}
.ToggleSidebarButton:hover {
    background: var(--SecondaryBGColorHover);
    background:#dfdfdf;
    transform: scale(1.05);
}
.ToggleSidebarButton:active {
    transform: scale(0.95);
}
.CurrentFileName {
    flex: 1;
    font-size: 1rem;
    font-weight: 600;
    color: var(--PrimaryBGColor);
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
}
.ControlsBar {
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    position: absolute;
    top: 0;left:0;
    width: 100%;
    height:100%;
    
    top:calc(60px);
    height:calc(100% - 60px);
    justify-content: space-between;
    
    /*background: #ffffff;
    border-bottom: 1px solid #e0e0e0;
    justify-content: center;*/
}
.ControlButton {
    background: var(--SecondaryBGColor);
    color: var(--SecondaryTextColor);
    border: none;
    padding: 10px 18px;
    padding: 10px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}
.ControlButton:hover:not(:disabled) {
    background: var(--SecondaryBGColorHover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px var(--SecondaryBGColorOpac40);
}
.ControlButton:active:not(:disabled) {
    transform: translateY(0);
}
.ControlButton:disabled {
    color: #999;
    cursor: not-allowed;
    transform: none;
    opacity:0.3;
}

.ControlButton .Chevron.Next::before, .ControlButton .Chevron.Next::after, .ControlButton .Chevron.Prev::before, .ControlButton .Chevron.Prev::after{
    background-color:white;
}
.PageInfo {
    color: #fff;
    font-weight: 600;
    font-size: 0.95rem;
    background: var(--SecondaryBGColorOpac40);
    background:#00000070;
    border-radius: 8px;
    white-space: nowrap;
    border: 1px solid var(--SecondaryBGColorOpac30);
    
    padding: 10px 16px;
    padding: 7px 24px;
    width: 100px;
    text-align:center;
    
    position:absolute;
    bottom:10px;
    left:50%;
    transform: translateX(-50%);

}
.ZoomControls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
.PdfViewerContainer {
    flex: 1;
    overflow: auto;
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #f5f5f5;
}
.PdfViewerContainer::-webkit-scrollbar {
    width: 12px;
    height: 12px;
}
.PdfViewerContainer::-webkit-scrollbar-track {
    background: #f5f5f5;
}
.PdfViewerContainer::-webkit-scrollbar-thumb {
    background: var(--SecondaryBGColor);
    border-radius: 6px;
}
.PdfViewerContainer::-webkit-scrollbar-thumb:hover {
    background: var(--SecondaryBGColorHover);
}
.CanvasWrapper {
    display: flex;
    justify-content: center;
    width: 100%;
}
.PdfCanvas {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    max-width: 100%;
    height: auto;
    background: #fff;
    display: block;
    border: 2px solid var(--SecondaryBGColorOpac20);
}
.WelcomeMessage {
    text-align: center;
    padding: 60px 20px;
    color: #666;
    max-width: 600px;
}
.WelcomeMessage h2 {
    font-size: 1.8rem;
    margin-bottom: 16px;
    background: linear-gradient(135deg, var(--PrimaryBGColor) 0%, var(--SecondaryBGColor) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.WelcomeMessage p {
    font-size: 1rem;
    line-height: 1.6;
}
.LoadingOverlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.95);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    gap: 20px;
}
.LoadingSpinner {
    width: 60px;
    height: 60px;
    border: 4px solid #e0e0e0;
    border-top-color: var(--PrimaryBGColor);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}
.LoadingText {
    color: var(--PrimaryBGColor);
    font-size: 1.1rem;
    font-weight: 500;
}
@keyframes spin {
    to { transform: rotate(360deg); }
}
.ErrorMessage {
    background: #fff5f5;
    border: 2px solid #dc3545;
    color: #dc3545;
    padding: 24px;
    border-radius: 12px;
    margin: 20px;
    text-align: center;
    font-size: 1rem;
    max-width: 500px;
    line-height: 1.6;
}
/* Mobile Responsive Styles */
@media (max-width: 768px) {
    
    
    .PDFSidebar.Hidden {
        transform: translateX(-100%);
    }
    html[dir="rtl"] .PDFSidebar.Hidden {
        transform: translateX(100%);
    }
    

    .ToggleSidebarButton{
        display: flex;
    }
    .PDFSidebar {
        position: absolute;
        height: 100%;
        left: 0;
        top: 0;
        z-index: 8;
        box-shadow: 2px 0 15px rgba(0, 0, 0, 0.1);
    }
    html[dir="rtl"] .PDFSidebar {
        left: unset;
        right: 0;
    }
    .ViewerTopBar {
        padding: 10px 12px;
    }
    .CurrentFileName {
        font-size: 0.85rem;
    }
    .ControlsBar {
        padding: 10px 8px;
        gap: 8px;
    }
    .ControlButton {
        padding: 8px 12px;
        padding: 8px;
        font-size: 0.85rem;
    }
    .PageInfo {
        padding: 8px 12px;
        font-size: 0.85rem;
    }
    .PdfViewerContainer {
        padding: 16px 8px;
    }
    .ZoomControls {
        width: 100%;
        justify-content: center;
    }
}
@media (max-width: 480px) {
    .PDFSidebar {
        width: 280px;
    }
    /*.ControlsBar {
        flex-direction: column;
        align-items: stretch;
    }
    .ControlButton {
        justify-content: center;
    }*/
    .ZoomControls {
        width: 100%;
    }
    
    .PageInfo {
        text-align: center;
    }
}
/* Overlay for mobile when sidebar is open */
.PDFSidebarOverlay {
    display: none;
    position: absolute;
    width:100%;
    height:100%;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 7;
    cursor:pointer;
}
.PDFSidebarOverlay.Active {
    display: block;
}
@media (min-width: 769px) {
    .PDFSidebarOverlay {
        display: none !important;
    }
}















.ImageWrapper{
    width:100%;
    height:100%;
    display: flex; 
    justify-content: center; 
    align-items: center; 
}

.ImageWrapper img{
    width:100%;
    height:100%;
    object-fit:contain;
    -moz-object-fit:contain;
    -webkit-object-fit:contain;
    /*box-shadow: rgba(0, 0, 0, 0.1) 0px 2px 8px;*/
    opacity: 1;
}