/* PDF Download Button */
.di-pdf-download-wrapper {
    margin: 40px 0;
    text-align: center;
}

.di-pdf-download-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 32px;
    font-size: 16px;
    font-weight: 600;
    background-color: #1a1a1a;
    color: #ffffff;
    border: 2px solid #1a1a1a;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
}

.di-pdf-download-btn:hover {
    background-color: #ffffff;
    color: #1a1a1a;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.di-pdf-download-btn svg {
    width: 20px;
    height: 20px;
}

/* PDF Popup */
.di-pdf-popup {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    animation: dipdfFadeIn 0.3s;
}

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

.di-pdf-popup.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.di-pdf-popup-content {
    background-color: #ffffff;
    padding: 50px 40px;
    border-radius: 12px;
    max-width: 400px;
    width: 90%;
    position: relative;
    animation: dipdfSlideUp 0.3s;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    text-align: center;
}

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

.di-pdf-generating h3 {
    font-size: 24px;
    margin: 20px 0 15px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
    color: #1a1a1a;
    font-weight: 700;
}

.di-pdf-generating p {
    font-size: 16px;
    color: #666;
    margin: 0;
}

/* Loading Spinner */
.di-pdf-spinner {
    width: 60px;
    height: 60px;
    margin: 0 auto 20px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #1a1a1a;
    border-radius: 50%;
    animation: dipdfSpin 1s linear infinite;
}

@keyframes dipdfSpin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Success Message */
.di-pdf-success {
    display: none;
    text-align: center;
    padding: 20px;
}

.di-pdf-success.active {
    display: block;
}

.di-pdf-success h4 {
    color: #1a1a1a;
    font-size: 22px;
    margin-bottom: 15px;
}

.di-pdf-success p {
    color: #666;
    font-size: 15px;
    margin-bottom: 20px;
}

.di-pdf-success a {
    display: inline-block;
    padding: 14px 28px;
    background-color: #1a1a1a;
    color: #ffffff;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    transition: all 0.3s;
}

.di-pdf-success a:hover {
    background-color: #333;
    transform: translateY(-2px);
}

/* Responsive */
@media (max-width: 768px) {
    .di-pdf-popup-content {
        padding: 30px 20px;
        margin: 20px;
    }
    
    .di-pdf-popup-content h3 {
        font-size: 24px;
    }
    
    .di-pdf-popup-close {
        right: 15px;
        top: 15px;
        font-size: 28px;
    }
    
    .di-pdf-download-btn {
        padding: 14px 24px;
        font-size: 15px;
    }
}