/* Easy HTML to PDF Generator Styles */

.easy-pdf-preview-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.pdf-modal-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
}

.pdf-modal-content {
    position: relative;
    width: 90%;
    max-width: 1000px;
    height: 90%;
    background: white;
    border-radius: 15px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    animation: modalFadeIn 0.3s ease-out;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.pdf-modal-header {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    color: white;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
}

.pdf-modal-header h3 {
    margin: 0;
    font-size: 1.5em;
    font-weight: 600;
}

.pdf-modal-actions {
    display: flex;
    gap: 10px;
}

.pdf-download-btn,
.pdf-close-btn {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 8px 16px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 0.9em;
    font-weight: 500;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.pdf-download-btn:hover {
    background: rgba(40, 167, 69, 0.8);
    border-color: rgba(40, 167, 69, 1);
    transform: translateY(-1px);
}

.pdf-close-btn:hover {
    background: rgba(220, 53, 69, 0.8);
    border-color: rgba(220, 53, 69, 1);
    transform: translateY(-1px);
}

.pdf-modal-body {
    flex: 1;
    padding: 20px;
    overflow: hidden;
}

.pdf-preview-iframe {
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Loading Animation */
.easy-pdf-loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Button States */
.easy-pdf-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 1em;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    outline: none;
}

.easy-pdf-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.easy-pdf-btn:active {
    transform: translateY(0);
}

.easy-pdf-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.easy-pdf-btn-success {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
}

.easy-pdf-btn-success:hover {
    box-shadow: 0 6px 20px rgba(40, 167, 69, 0.4);
}

.easy-pdf-btn-secondary {
    background: linear-gradient(135deg, #6c757d 0%, #5a6268 100%);
    box-shadow: 0 4px 15px rgba(108, 117, 125, 0.3);
}

.easy-pdf-btn-secondary:hover {
    box-shadow: 0 6px 20px rgba(108, 117, 125, 0.4);
}

/* Status Messages */
.easy-pdf-status {
    padding: 12px 16px;
    border-radius: 8px;
    margin: 10px 0;
    font-weight: 500;
    display: none;
}

.easy-pdf-status.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.easy-pdf-status.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.easy-pdf-status.show {
    display: block;
    animation: statusSlideIn 0.3s ease-out;
}

@keyframes statusSlideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .pdf-modal-content {
        width: 95%;
        height: 95%;
        border-radius: 10px;
    }
    
    .pdf-modal-header {
        padding: 15px;
        flex-direction: column;
        gap: 15px;
        align-items: stretch;
    }
    
    .pdf-modal-actions {
        justify-content: center;
    }
    
    .pdf-modal-body {
        padding: 15px;
    }
    
    .pdf-download-btn,
    .pdf-close-btn {
        flex: 1;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .pdf-modal-content {
        width: 98%;
        height: 98%;
    }
    
    .pdf-modal-header h3 {
        font-size: 1.2em;
        text-align: center;
    }
    
    .pdf-modal-actions {
        flex-direction: column;
        gap: 8px;
    }
}

/* Utility Classes */
.easy-pdf-hidden {
    display: none !important;
}

.easy-pdf-loading-text::after {
    content: '';
    animation: dots 2s steps(4, end) infinite;
}

@keyframes dots {
    0%, 20% { content: ''; }
    40% { content: '.'; }
    60% { content: '..'; }
    80%, 100% { content: '...'; }
}

/* Container Styling Hints */
.easy-pdf-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
}

.easy-pdf-container h1,
.easy-pdf-container h2,
.easy-pdf-container h3 {
    color: #2c3e50;
    margin-bottom: 15px;
}

.easy-pdf-container p {
    margin-bottom: 12px;
}

.easy-pdf-container .highlight {
    background: #fff3cd;
    padding: 2px 4px;
    border-radius: 3px;
}