/**
 * Print PDF Styles
 * Styles for PDF generation functionality
 */

/* PDF Download Button */
.pdf-download-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    margin: 15px 0 10px 0;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.pdf-download-btn:hover {
    background: linear-gradient(135deg, #5a67d8 0%, #6b46c1 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(102, 126, 234, 0.4);
}

.pdf-download-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.pdf-download-btn:disabled {
    background: #cbd5e0;
    color: #a0aec0;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* PDF Loading State */
.pdf-download-btn.loading {
    pointer-events: none;
    opacity: 0.7;
}

.pdf-download-btn.loading::after {
    content: '';
    width: 16px;
    height: 16px;
    border: 2px solid transparent;
    border-top: 2px solid currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-left: 8px;
}

/* PDF Button in different containers */
.price-calculator .pdf-download-btn,
.calculator-form .pdf-download-btn,
#app .pdf-download-btn {
    width: 100%;
    justify-content: center;
}

/* Animation */
@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .pdf-download-btn {
        padding: 10px 16px;
        font-size: 13px;
    }
}

/* PDF Preview styles (if needed for future enhancements) */
.pdf-preview-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.pdf-preview-content {
    background: white;
    padding: 20px;
    border-radius: 8px;
    max-width: 90%;
    max-height: 90%;
    overflow: auto;
}

/* Print styles for better PDF output */
@media print {
    .pdf-download-btn {
        display: none;
    }
    
    body {
        font-family: Arial, sans-serif;
        color: black;
        background: white;
    }
}