/* Custom PDF Viewer Styles */
.pdf-viewer-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: none;
}

.pdf-viewer-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
}

.pdf-viewer-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    max-width: 1400px;
    margin: 0 auto;
}

.pdf-viewer-sidebar {
    width: 320px;
    background: #1a1a1a;
    color: #fff;
    display: flex;
    flex-direction: column;
    padding: 40px 30px;
    box-sizing: border-box;
}

.pdf-viewer-logo {
    display: flex;
    align-items: center;
    margin-bottom: 60px;
}

.pdf-viewer-logo-pic {
    width: 48px;
    height: 20px;
    margin-right: 15px;
}

.pdf-viewer-logo-text {
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    font-weight: 300;
    color: #839E6E;
    text-transform: lowercase;
}

.pdf-viewer-menu {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.pdf-viewer-menu-item {
    display: flex;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 20px;
    border-radius: 12px;
    background: transparent;
}

.pdf-viewer-menu-item:hover,
.pdf-viewer-menu-item.active {
    background: rgba(131, 158, 110, 0.1);
    transform: translateX(10px);
}

.pdf-viewer-menu-icon {
    width: 80px;
    height: 80px;
    border-radius: 12px;
    overflow: hidden;
    margin-right: 20px;
    flex-shrink: 0;
}

.pdf-viewer-menu-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pdf-viewer-menu-text {
    display: flex;
    flex-direction: column;
}

.pdf-viewer-menu-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 18px;
    font-weight: 400;
    color: #fff;
    line-height: 1.2;
    margin-bottom: 5px;
}

.pdf-viewer-menu-subtitle {
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    font-weight: 300;
    color: #839E6E;
    line-height: 1.2;
}

.pdf-viewer-content {
    flex: 1;
    background: #f8f8f8;
    position: relative;
    display: flex;
    flex-direction: column;
}

.pdf-viewer-close {
    position: absolute;
    top: 20px;
    right: 30px;
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 24px;
    font-weight: 300;
    z-index: 10;
    transition: all 0.3s ease;
}

.pdf-viewer-close:hover {
    background: rgba(0, 0, 0, 0.9);
    transform: scale(1.1);
}

#pdf-iframe {
    width: 100%;
    height: 100%;
    border: none;
    background: #fff;
}

/* Responsive */
@media (max-width: 768px) {
    .pdf-viewer-container {
        flex-direction: column;
    }
    
    .pdf-viewer-sidebar {
        width: 100%;
        height: auto;
        max-height: 40vh;
        overflow-y: auto;
        padding: 20px;
    }
    
    .pdf-viewer-menu {
        flex-direction: row;
        overflow-x: auto;
        gap: 15px;
        padding-bottom: 10px;
    }
    
    .pdf-viewer-menu-item {
        min-width: 200px;
        padding: 15px;
    }
    
    .pdf-viewer-menu-icon {
        width: 60px;
        height: 60px;
        margin-right: 15px;
    }
    
    .pdf-viewer-menu-title {
        font-size: 16px;
    }
    
    .pdf-viewer-menu-subtitle {
        font-size: 14px;
    }
    
    .pdf-viewer-content {
        height: 60vh;
    }
}

/* Animation */
.pdf-viewer-modal.show {
    display: flex;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.pdf-viewer-container.show {
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        transform: translateY(30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}
