/* Fluent Forms Printable PDF Extension - Frontend Styles */

.ff-print-button-wrapper {
    margin-bottom: 20px;
    text-align: center;
}

.ff-print-pdf-button {
    padding: 12px 24px;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 200px;
}

.ff-print-pdf-button:hover {
    background-color: #45a049;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.ff-print-pdf-button:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.ff-print-pdf-button:disabled {
    background-color: #cccccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.ff-print-pdf-button .dashicons {
    vertical-align: middle;
    margin-right: 8px;
    font-size: 20px;
    width: 20px;
    height: 20px;
}

.ff-pdf-loading {
    margin-top: 10px;
    color: #666;
    font-size: 14px;
    display: none;
}

.ff-pdf-loading:before {
    content: "";
    display: inline-block;
    width: 16px;
    height: 16px;
    margin-right: 8px;
    vertical-align: middle;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #4CAF50;
    border-radius: 50%;
    animation: ff-spin 1s linear infinite;
}

@keyframes ff-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive styles */
@media (max-width: 768px) {
    .ff-print-pdf-button {
        padding: 10px 20px;
        font-size: 14px;
        min-width: 180px;
    }
    
    .ff-print-pdf-button .dashicons {
        font-size: 18px;
        width: 18px;
        height: 18px;
    }
}

/* Print styles for the generated PDF/HTML */
@media print {
    .ff-print-button-wrapper,
    .ff-print-pdf-button,
    .ff-pdf-loading {
        display: none !important;
    }
    
    body {
        font-family: Arial, sans-serif;
        margin: 40px;
        color: #000;
    }
    
    h1 {
        color: #333;
        border-bottom: 2px solid #333;
        padding-bottom: 10px;
    }
    
    hr {
        border: 1px solid #ddd;
        margin: 20px 0;
    }
    
    p {
        margin: 10px 0;
        line-height: 1.6;
    }
    
    strong {
        font-weight: bold;
        color: #333;
    }
}