/* JPG to PDF Converter Styles */

.upload-area {
    border: 2px dotted #3b82f6; 
    padding: 2rem; 
    border-radius: 0.75rem;
    margin-bottom: 1.5rem; 
    text-align: center; 
    position: relative;
    cursor: pointer; 
    transition: all 0.3s ease-in-out;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
}

.upload-area.drag-over { 
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%); 
    border-color: #1d4ed8; 
    transform: scale(1.02);
}

.image-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.image-card {
    background: white;
    border-radius: 0.75rem;
    border: 2px solid #e5e7eb;
    padding: 1rem;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
}

.image-card:hover {
    border-color: #3b82f6;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.image-preview {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 0.5rem;
    margin-bottom: 0.5rem;
    border: 1px solid #e5e7eb;
}

.remove-btn {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #ef4444;
    color: white;
    border: none;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    transition: all 0.2s;
}

.remove-btn:hover {
    background: #dc2626;
    transform: scale(1.1);
}

.drag-handle {
    cursor: move;
    color: #6b7280;
    margin-right: 0.5rem;
}

.sortable-ghost {
    opacity: 0.5;
}

.processing-animation {
    animation: processing 2s infinite;
}

@keyframes processing {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.hidden { 
    display: none; 
}
