/* Category PDF Widget Styles */
.aelab-category-pdf-widget {
    text-align: center;
    padding: 25px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 12px;
    border: 2px solid #e5e5e5;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    margin: 20px 0;
}

.aelab-category-pdf-widget:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border-color: #0073aa;
}

.aelab-pdf-title {
    margin: 0 0 20px 0;
    font-size: 20px;
    font-weight: 700;
    color: #2c3e50;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.aelab-pdf-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.aelab-pdf-category,
.aelab-pdf-size {
    margin: 0;
    font-size: 14px;
    color: #6c757d;
    background: rgba(255, 255, 255, 0.8);
    padding: 8px 16px;
    border-radius: 20px;
    border: 1px solid #dee2e6;
}

.aelab-pdf-category strong,
.aelab-pdf-size strong {
    color: #495057;
    font-weight: 600;
}

.aelab-pdf-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    padding: 15px 30px;
    background: linear-gradient(135deg, #0073aa 0%, #005a87 100%);
    color: #ffffff;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 115, 170, 0.3);
    position: relative;
    overflow: hidden;
}

.aelab-pdf-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.aelab-pdf-button:hover::before {
    left: 100%;
}

.aelab-pdf-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 115, 170, 0.4);
    background: linear-gradient(135deg, #005a87 0%, #004466 100%);
}

.aelab-pdf-button:active {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(0, 115, 170, 0.3);
}

.aelab-pdf-icon {
    display: inline-flex;
    align-items: center;
    font-size: 18px;
}

.aelab-pdf-icon i,
.aelab-pdf-icon svg {
    width: 20px;
    height: 20px;
}

.aelab-pdf-text {
    display: inline-block;
    font-size: 16px;
    font-weight: 600;
}

.aelab-pdf-widget-notice {
    padding: 20px;
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
    border: 2px solid #ffc107;
    border-radius: 8px;
    color: #856404;
    text-align: center;
    font-weight: 500;
    box-shadow: 0 2px 10px rgba(255, 193, 7, 0.2);
}

/* Responsive Design */
@media (max-width: 768px) {
    .aelab-category-pdf-widget {
        padding: 20px 15px;
        margin: 15px 0;
    }
    
    .aelab-pdf-title {
        font-size: 18px;
        margin-bottom: 15px;
    }
    
    .aelab-pdf-button {
        padding: 12px 24px;
        font-size: 14px;
        flex-direction: column;
        gap: 8px;
    }
    
    .aelab-pdf-icon {
        font-size: 16px;
    }
    
    .aelab-pdf-text {
        font-size: 14px;
    }
    
    .aelab-pdf-category,
    .aelab-pdf-size {
        font-size: 13px;
        padding: 6px 12px;
    }
}

@media (max-width: 480px) {
    .aelab-category-pdf-widget {
        padding: 15px 10px;
    }
    
    .aelab-pdf-title {
        font-size: 16px;
    }
    
    .aelab-pdf-button {
        padding: 10px 20px;
        font-size: 13px;
    }
    
    .aelab-pdf-icon {
        font-size: 14px;
    }
    
    .aelab-pdf-text {
        font-size: 13px;
    }
}

/* Animation for loading state */
.aelab-pdf-button.loading {
    pointer-events: none;
    opacity: 0.7;
}

.aelab-pdf-button.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid transparent;
    border-top: 2px solid #ffffff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Success animation */
.aelab-pdf-button.success {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    animation: successPulse 0.6s ease-in-out;
}

@keyframes successPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* Error state */
.aelab-pdf-widget-error {
    padding: 20px;
    background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
    border: 2px solid #dc3545;
    border-radius: 8px;
    color: #721c24;
    text-align: center;
    font-weight: 500;
    box-shadow: 0 2px 10px rgba(220, 53, 69, 0.2);
} 