/* Merge PDF Specific Styles */

.file-list-note {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(59, 130, 246, 0.1);
    color: var(--primary-color);
    padding: 1rem;
    border-radius: var(--radius-lg);
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    font-weight: 500;
}

.file-item {
    cursor: move;
    transition: all 0.3s ease;
    position: relative;
}

.file-item:hover {
    transform: translateX(5px);
    box-shadow: var(--shadow-md);
}

.file-item.dragging {
    opacity: 0.5;
    transform: rotate(5deg);
}

.file-item.drag-over {
    border-color: var(--primary-color);
    background: rgba(59, 130, 246, 0.05);
}

.file-order {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    font-weight: 600;
    font-size: 0.9rem;
    margin-right: 1rem;
}

.drag-handle {
    color: var(--text-tertiary);
    cursor: move;
    padding: 0.5rem;
    margin-left: 1rem;
    transition: color 0.3s ease;
}

.drag-handle:hover {
    color: var(--primary-color);
}

.file-item .file-info {
    flex: 1;
}

.file-thumbnail {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--danger-color), #dc2626);
    border-radius: var(--radius-base);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 0.8rem;
}

.drop-indicator {
    height: 2px;
    background: var(--primary-color);
    margin: 0.25rem 0;
    border-radius: 1px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.drop-indicator.active {
    opacity: 1;
}

/* Merge specific animations */
@keyframes mergeAnimation {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.merging {
    animation: mergeAnimation 1s ease-in-out infinite;
}

/* Mobile adjustments for merge */
@media (max-width: 768px) {
    .file-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
        cursor: default;
    }
    
    .drag-handle {
        display: none;
    }
    
    .file-order {
        position: absolute;
        top: 1rem;
        right: 1rem;
    }
}
